Пример #1
0
 public void RemoveMarkTrigger(Fighter master, MarkTrigger mark)
 {
     TryStartSequence(master.ContextualId,3);
     Marks.Remove(mark);
     MarkInteractions.RemoveAll(x => x.Mark == mark);
     Send(new GameActionFightUnmarkCellsMessage(310, master.ContextualId,mark.Id));
     TryEndSequence(3, 0);
 }
Пример #2
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);
 }