MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GameInit

Function GameInit

test/tests/S6ImportExportTests.cpp:56–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56static void GameInit(bool retainSpatialIndices)
57{
58 auto& gameState = getGameState();
59 if (!retainSpatialIndices)
60 gameState.entities.ResetEntitySpatialIndices();
61
62 ResetAllSpriteQuadrantPlacements();
63 LoadPalette();
64 EntityTweener::Get().Reset();
65 MapAnimations::MarkAllTiles();
66 FixInvalidVehicleSpriteSizes();
67
68 gGameSpeed = 1;
69}
70
71static bool ImportS6(MemoryStream& stream, std::unique_ptr<IContext>& context, bool retainSpatialIndices)
72{

Callers 2

ImportS6Function · 0.85
ImportParkFunction · 0.85

Calls 5

LoadPaletteFunction · 0.85
ResetMethod · 0.45

Tested by

no test coverage detected