local Base = require("Battle/Logic/AI/Decision/Decision_Base") local Decision_SendLevelMessage = class("Decision_SendLevelMessage", Base) local EventSystem = require('Event/EventSystem') --[[ 初始化 --]] function Decision_SendLevelMessage:initialize(entity) --类型 self.Type = LuaConst.DecisionType.SendLevelMessage --瞬时 self.IsOnce = true end --[[ 输出指令 --]] function Decision_SendLevelMessage:SetCommand(entity, decisionData, command) command.DecisionID = decisionData.ID return command end --[[ 执行 --]] function Decision_SendLevelMessage:Handle(entity, decisionData, stateType, animName) local id = decisionData.IntParam1 EventSystem.Dispatch(entity.Event_EntityAIMessage,entity, id) return LuaConst.StateType.None,nil end return Decision_SendLevelMessage