summaryrefslogtreecommitdiff
path: root/EventMsgCenter/Events.lua
blob: 5c45f2e5bd196e73d3277930a858d9c8ccc35d7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local events = {
	
    "Player_Move", 
	"Player_Change", 
	"Player_Spawn",
	"Player_Kick", 

    ""

} 

function CreatEnumTable(tbl, index) 
    assert(IsTable(tbl)) 
    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)