* Use assets.json as single source of truth for OpenRCT2 assets
This ensures there's single source of truth for all downloadable assets.
I figured the "version" information is actually redundant because we can
embed the whole URL as the "zipversion", therefore this is dropped now.
The newly-introdcued MSBuild task uses Roslyn-based code and I updated
`DownloadDependency` task to RoslynCodeTaskFactory as well.
* Rename OpenMSX to OpenMusic
Corrupted RCT1/RCT2 save files may contain entities with duplicate or invalid EntityIndex values and when importing these saves, CreateEntityAt returns nullptr for duplicate indices, causing a null pointer dereference crash in ImportEntityCommonProperties, this sanitises each entity's (entities?) EntityIndex to match its array position, so that CreateEntityAt always succeeds. Added unit tests too for just this case, with a crashing save file.
The Map, Track Design List, Track Design Placement, Install Track, and Park Preview windows all shared a single SPR_TEMP sprite ID for rendering dynamic preview images. In OpenGL mode, this caused them to overwrite each other's textures when multiple windows were open simultaneously. To fix it I added separate temp sprite IDs for each window that needs one, with an array of G1Elements to store each separetely
This targets initial gradle task which takes over a minute in CI:
> `Calculating task graph as no cached configuration is available for tasks: app:assembleRelease`
Background jobs in PreloaderScene call OpenProgress/SetProgress/CloseProgress which modify gWindowList. Meanwhile, Tick() was iterating gWindowList viaContextHandleInput() and InvalidateAll(), causing iterator invalidation whenthe vector reallocates.
This commit fixes it by skipping window iteration while background jobs are running, which is safe because the progress window has no interactive elements during loading (close button is hidden, viewport inhibited)
This putts all mini golf track motion, flag handling, collision detection, and hole measurement logic into Vehicle.MiniGolf.cpp. Two static helper functions (GetAccelerationDecrease2 and PitchAndRollStart) are hole in ...two'd (duped) since they're also used by the main Vehicle.cpp
This commit departs Synchronised departure, loading/waiting, departing, travelling, and arriving functions. They're now are now stationed in Vehicle.Station.cpp
This moves the flat ride operating logic like the swinging, ferris wheel, rotating, simulator, haunted house, top spin, circus, etc etc, swing/spin car physics, and the vehicle animation system for the steam locomotive, swan boat, multi-dimension, animal flying, etc etc etc to Vehicle.Animation.cpp. Animates vehicleBreakdown from static to extern to allow shared access across translation units
Part of #25951
This moves vehicle sound logic like UpdateSound, scream and friction sound handling, lift hill sounds and Claxon to Vehicle.Sound.cpp. Also, it promotes SoundIdVolume struct definition from Vehicle.cpp to Vehicle.h to allow shared access across translation units. Music to my ears. Except.. not really.
Part of #25951
This moves all crash and collision functions from Vehicle.cpp into a dedicated Vehicle.Crash.cpp file. Functions are moved intact with
no logic changes. Also, ride_get_train_index_from_vehicle is made non static and it's now declared in Vehicle.h as it's now needed across translation units
Part of #25951
Moved all boat hire functions from Vehicle.cpp into a dedicatedVehicle.BoatHire.cpp file. Functions are moved intact with nologic changes.
Moved functions:
- UpdateTravellingBoatHireSetup
- UpdateDepartingBoatHire
- UpdateTravellingBoat
- TryReconnectBoatToTrack
- UpdateMotionBoatHire
- UpdateBoatLocation
- vehicle_boat_is_location_accessible