summaryrefslogtreecommitdiff
path: root/EventMsgCenter/Events.lua
blob: 3803fd4f27d5c4e8c4a1b01e4912ed0e48fbf606 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)