| 37 | } |
| 38 | |
| 39 | void ATeamsGameMode::Logout(AController* Exiting) |
| 40 | { |
| 41 | ABlasterGameState* BGameState = Cast<ABlasterGameState>(UGameplayStatics::GetGameState(this)); |
| 42 | ABlasterPlayerState* BPState = Exiting->GetPlayerState<ABlasterPlayerState>(); |
| 43 | if (BGameState && BPState) |
| 44 | { |
| 45 | if (BGameState->RedTeam.Contains(BPState)) |
| 46 | { |
| 47 | BGameState->RedTeam.Remove(BPState); |
| 48 | } |
| 49 | if (BGameState->BlueTeam.Contains(BPState)) |
| 50 | { |
| 51 | BGameState->BlueTeam.Remove(BPState); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | } |
| 56 | |
| 57 | void ATeamsGameMode::HandleMatchHasStarted() |
| 58 | { |
nothing calls this directly
no outgoing calls
no test coverage detected