Exemple #1
0
 internal RoundNode(string JSON)
     : base(JSON)
 {
     Phase   = GetEnum <RoundPhase>("phase");
     Bomb    = GetEnum <BombState>("bomb");
     WinTeam = GetEnum <RoundWinTeam>("win_team");
 }
Exemple #2
0
 internal RoundNode(string JSON)
     : base(JSON)
 {
     Phase = GetEnum<RoundPhase>("phase");
     Bomb = GetEnum<BombState>("bomb");
     WinTeam = GetEnum<RoundWinTeam>("win_team");
 }
        /// <summary>
        /// Initializes a new <see cref="RoundEndEventArgs"/> instance from the given <see cref="GameState"/>.
        /// </summary>
        /// <param name="gameState">The <see cref="GameState"/> that should be used to initialize this instance.</param>
        public RoundEndEventArgs(GameState gameState)
        {
            Winner = gameState.Round.WinTeam;

            //relying on the fact that the rounds are listed in the correct order...
            Reason = gameState.Map.RoundWins.RoundWinReasons.LastOrDefault();
        }
 public RoundEndEventArgs(GameState gameState)
 {
     Winner = gameState.Round.WinTeam;
 }
Exemple #5
0
 internal RoundNode(string json)
     : base(json)
 {
     Phase   = GetEnum <RoundPhase>("phase");
     WinTeam = GetEnum <RoundWinTeam>("win_team");
 }