private static void DoAction(ICharaBattle battleInfo, FightEffectInfo effect, uint userId = 0, Vector3 dir = default(Vector3), object takeParam = null) { SkillCommand skill = takeParam as SkillCommand; if (null != skill && null != battleInfo) { battleInfo.SkillCommand(skill); } }
private void DoCommand(FightCommandBase command) { uint battleId = command.BattleId; if (_charaDic.ContainsKey(battleId)) { ICharaBattle info = GetCharaById(battleId) as ICharaBattle; if (null == info) { return; } switch (command.CommandType) { case COMMAND_TYPE.MOVE: info.MoveCommand(command as MoveCommand); break; case COMMAND_TYPE.SKILL: info.SkillCommand(command as SkillCommand); break; } } }