Yi 是为了 Lua 项目对模块的组织更加清晰做设计的。
运行测试,在终端下运行:lua main.lua,运行前请确保你已经安装了 lua 环境
输出:
[Info]
app start
Testing RoleActor
csv data: {
1 = {
1 = "Andy",
2 = "male",
3 = "22",
},
2 = {
1 = "Yufi",
2 = "female",
3 = "20",
},
3 = {
1 = "Kelly",
2 = "femle",
3 = "1",
},
}
role pane say hello
view call me
hero pane say hello
Hello, Andy!