miduo_client/Assets/ManagedResources/~Lua/Modules/Mission/Behaviour/BHBattle.lua

12 lines
332 B
Lua

--- 触发战斗
local BHBattle = {}
local this = BHBattle
function this.Excute(arg, nextFunc, doneFunc)
local monsterID = arg.monsterID
MapManager.MapBattleExecute(monsterID, nil, function (result)
if doneFunc then doneFunc(result.eventId) end
if nextFunc then nextFunc(result) end
end)
end
return this