MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / CanEventDisappear

Method CanEventDisappear

Sources/Jazz2/Multiplayer/MpLevelHandler.cpp:150–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148 }
149
150 bool MpLevelHandler::CanEventDisappear(EventType eventType) const
151 {
152 if (eventType == EventType::Gem) {
153 const auto& serverConfig = _networkManager->GetServerConfiguration();
154 if (serverConfig.GameMode == MpGameMode::TreasureHunt || serverConfig.GameMode == MpGameMode::TeamTreasureHunt) {
155 return false;
156 }
157 }
158
159 return true;
160 }
161
162 float MpLevelHandler::GetHurtInvulnerableTime() const
163 {

Callers 2

OnActivatedAsyncMethod · 0.45
OnActivatedAsyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected