GameEndResult struct
Result of IGameMode::
Public static functions
- static auto None() -> GameEndResult
- Returns a result meaning "the round does not end".
- static auto Draw() -> GameEndResult
- Returns a result meaning "the round ends in a draw".
-
static auto PlayerWins(Actors::
Player* winner) -> GameEndResult - Returns a result meaning "the round ends with the specified player as the winner".
-
static auto TeamWins(std::
uint8_t team) -> GameEndResult - Returns a result meaning "the round ends with the specified team as the winner".
- static auto Overtime() -> GameEndResult
- Returns a result meaning "the round goes into overtime".
Public variables
- bool ShouldEnd
- Whether the round should end now.
- bool WithTeam
- Whether WinnerTeam decides the winner instead of Winner.
-
Actors::
Player* Winner - Winning player (may be
nullptr) when WithTeam isfalse. -
std::
uint8_t WinnerTeam - Winning team when WithTeam is
true. - bool StartOvertime
- Whether the round goes into overtime instead of ending (only from IGameMode::
OnTimeOut).