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

Method OnInitialized

Sources/Jazz2/LevelHandler.cpp:250–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

PreloadEventsAsyncMethod · 0.80
OnLevelLoadMethod · 0.80
RequestMetadataMethod · 0.45
PreloadMetadataAsyncMethod · 0.45

Tested by

no test coverage detected