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

13 lines
336 B
Lua
Raw Normal View History

2020-05-09 13:31:21 +08:00
--- 触发战斗
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