forked from endernon/PGRData
18 lines
No EOL
535 B
Lua
18 lines
No EOL
535 B
Lua
XFubenUrgentEventConfig = XFubenUrgentEventConfig or {}
|
|
|
|
local UrgentEventCfg = {}
|
|
|
|
local TABLE_URGENT_EVENT = "Share/Fuben/UrgentEvent/UrgentEvent.tab"
|
|
|
|
function XFubenUrgentEventConfig.Init()
|
|
UrgentEventCfg = XTableManager.ReadByIntKey(TABLE_URGENT_EVENT, XTable.XTableUrgentEvent, "Id")
|
|
end
|
|
function XFubenUrgentEventConfig.GetUrgentEventCfg()
|
|
return UrgentEventCfg
|
|
end
|
|
|
|
function XFubenUrgentEventConfig.GetUrgentEventCfgById(urgentId)
|
|
if UrgentEventCfg[urgentId] then
|
|
return UrgentEventCfg[urgentId]
|
|
end
|
|
end |