PGRData/Script/matrix/xconfig/XAutoFightConfig.lua

13 lines
343 B
Lua
Raw Normal View History

XAutoFightConfig = XAutoFightConfig or {}
local AutoFightCfgs = {}
local TABLE_AUTO_FIGHT = "Share/Fuben/AutoFight.tab"
function XAutoFightConfig.Init()
AutoFightCfgs = XTableManager.ReadByIntKey(TABLE_AUTO_FIGHT, XTable.XTableAutoFight, "Id")
end
function XAutoFightConfig.GetCfg(autoFightId)
return AutoFightCfgs[autoFightId]
end