public void AddMarkTrigger(Fighter fighter, MarkTrigger mark,FightTeam team = null) { var message= new GameActionFightMarkCellsMessage(0, fighter.ContextualId, mark.GetMark()); if (team == null) Send(message); else team.Send(message); mark.Intitialize(this, mark.GetType()); Marks.Add(mark); }
public void HandleGameActionFightMarkCellsMessage(Bot bot, GameActionFightMarkCellsMessage message) { if (bot == null || bot.Character == null || bot.Character.Fight == null) { logger.Error("Fight is not properly initialized."); return; // Can't handle the message } foreach (var cellSet in message.mark.cells) { bot.Character.Fight.SetTrap(message.mark.markId, cellSet.cellId, cellSet.zoneSize); } }
public static void HandleGameActionFightMarkCellsMessage(Bot bot, GameActionFightMarkCellsMessage message) { }