
Lua
树袋趴趴熊
这个作者很懒,什么都没留下…
展开
-
Lua-可变参数...与select()方法
local test = {}function test:selectFunc1( ... ) print(select("#",...)) print(#{...}) -- print(unpack({...})) print(...) print(select(1,...)) print(select(-1,...)) print(select(-2,...))endtest:selectFunc1(1,"test",{})结果:331 test t...原创 2020-07-06 10:43:14 · 403 阅读 · 0 评论 -
tolua集成lua-protobuf库,解析protobuf3
https://github.com/wangshucheng/tolua已经重新编译好tolua库,可运行TestLuaProtobuf场景进行测试参考:tolua集成lua-protobuf库tolua中使用protobuf3—集成lua-protobuftolua_runtime 集成 lua-protobuf 第三方pb3解析库...原创 2020-04-23 10:04:22 · 2474 阅读 · 2 评论 -
tolua学习笔记之一
LuaState生命周期获取使用lua方法获取表和元表使用协程使用线程使用lua创建C#对象LuaState生命周期LuaState lua = new LuaState();lua.Start();string hello = @" print('hello tolua#') ";lua.DoString(hello原创 2017-06-10 16:52:09 · 1236 阅读 · 0 评论