Esempio n. 1
0
 public RoundStateChange(
     MultiplayerRoundState roundState,
     long stateStartTimeInTicks,
     int remainingTimeOnPreviousState)
 {
     this.RoundState = roundState;
     this.StateStartTimeInSeconds      = (float)stateStartTimeInTicks / 1E+07f;
     this.RemainingTimeOnPreviousState = remainingTimeOnPreviousState;
 }
        public static bool StateHasVisualTimer(this MultiplayerRoundState roundState)
        {
            switch (roundState)
            {
            case MultiplayerRoundState.Preparation:
            case MultiplayerRoundState.InProgress:
                return(true);

            default:
                return(false);
            }
        }