Fork me on GitHub

随笔分类 -  xlua

xlua tips
摘要:1. LuaCallCSharp a. 标签(该方式方便,但在il2cpp下会增加不少的代码量,不建议使用) [LuaCallCSharp] public class A { } b. 静态列表(有时我们无法直接给一个类型打标签,比如系统api,没源码的库,或者实例化的泛化类型,这时你可以在一个静态 阅读全文

posted @ 2020-03-31 09:58 pengyingh

lua coroutine
摘要:local co = coroutine.create( function (input) print("input : "..input) local param1, param2 = coroutine.yield("yield") print("param1 is : "..param1) p 阅读全文

posted @ 2020-03-30 20:11 pengyingh

xlua object this[int index]{ get; set; }
摘要:从代码比较容易读,但仔细阅读,还是发现有两点疑问 1.ICalc的object this[int index] { get; set; }如何和calc_mt的get_Item和set_Item联系上了的? 实际上是xLua的规则,如果你定义了 this[int index] { get; set; 阅读全文

posted @ 2020-03-30 15:39 pengyingh

导航