| 248 | } |
| 249 | |
| 250 | void LevelHandler::OnInitialized() |
| 251 | { |
| 252 | auto& resolver = ContentResolver::Get(); |
| 253 | _commonResources = resolver.RequestMetadata("Common/Scenery"_s); |
| 254 | resolver.PreloadMetadataAsync("Common/Explosions"_s); |
| 255 | |
| 256 | _eventMap->PreloadEventsAsync(); |
| 257 | |
| 258 | InitializeRumbleEffects(); |
| 259 | UpdateRichPresence(); |
| 260 | |
| 261 | _console->OnInitialized(); |
| 262 | |
| 263 | #if defined(WITH_ANGELSCRIPT) |
| 264 | if (_scripts != nullptr) { |
| 265 | _scripts->OnLevelLoad(); |
| 266 | } |
| 267 | #endif |
| 268 | } |
| 269 | |
| 270 | Events::EventSpawner* LevelHandler::EventSpawner() |
| 271 | { |
nothing calls this directly
no test coverage detected