MCPcopy Create free account
hub / github.com/DruidMech/MultiplayerCourseBlasterGame / Logout

Method Logout

Source/Blaster/GameMode/TeamsGameMode.cpp:39–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void 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
57void ATeamsGameMode::HandleMatchHasStarted()
58{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected