Exemple #1
0
 public bool CanJoinSpectator()
 {
     return(myState == Fights.FightState.PLAYING && !myTeam1.IsToggle(ToggleType.SPECTATOR) && !myTeam2.IsToggle(ToggleType.SPECTATOR));
 }
Exemple #2
0
 public string FormatFlagOption(ToggleType type, FightTeam team)
 {
     return(new StringBuilder("Go").Append(team.IsToggle(type) ? '+' : '-').Append(type == ToggleType.LOCK ? 'A' : (char)type).Append(team.ID).ToString());
 }