diff options
author | chai <chaifix@163.com> | 2018-08-08 21:42:33 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-08 21:42:33 +0800 |
commit | a03a35b6cfe6399ceaff86a1cc035f1131427955 (patch) | |
tree | ef20b98e6d74ca8a7c2d612b0ef8ad56f1f74a3b /bin/EventMsgCenter/Events.lua | |
parent | c302ed889e01dcca8fd15ccca34e9f23972c8704 (diff) |
*update
Diffstat (limited to 'bin/EventMsgCenter/Events.lua')
-rw-r--r-- | bin/EventMsgCenter/Events.lua | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/bin/EventMsgCenter/Events.lua b/bin/EventMsgCenter/Events.lua new file mode 100644 index 0000000..3803fd4 --- /dev/null +++ b/bin/EventMsgCenter/Events.lua @@ -0,0 +1,21 @@ +local events = { + + "Player_Move", + "Player_Change", + "Player_Spawn", + "Player_Kick", + + "" + +} + +function CreatEnumTable(tbl, index) + local enumtbl = {} + local enumindex = index or 0 + for i, v in ipairs(tbl) do + enumtbl[v] = enumindex + i + end + return enumtbl +end + +return CreatEnumTable(events)
\ No newline at end of file |