Enum.lua:Lua可用的枚举 源码
枚举 Lua的不可变枚举类型。 用法 local Enum = require " enum " -- Enums can be created like so: local Number = Enum ( " Zero " , " One " , " Two " , " Three " ) -- To control the starting value of an enum, the first value can be set. local States = Enum ({ [ " Paused " ] = - 1 , -- Our enum will now start at
文件列表
Enum_lua-master.zip
(预估有个4文件)
Enum.lua-master
enum.lua
6KB
test.lua
4KB
LICENSE
1KB
README.md
4KB
暂无评论