예제 #1
0
 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);
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public static void HandleGameActionFightMarkCellsMessage(Bot bot, GameActionFightMarkCellsMessage message)
 {
 }