OpenRCT2/src/openrct2
Michael Steenbeek 7344b7fbfd
Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411)
* Replace RIDE_ENTRY_INDEX_NULL with OBJECT_ENTRY_INDEX_NULL

Ride entries are objects like any other, so there is little point having separate constants.

* Use ride_id_t in many more places

* Change RIDE_ID_NULL to 0xFFFF

* Increment network version

* Update replays

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2021-04-01 16:02:57 +01:00
..
actions Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
audio Fix #14295: Assertion hit in Audio.cpp 2021-03-19 11:58:50 +01:00
cmdline Address review comments for benchsimulate 2021-01-10 13:34:14 +01:00
config Fix #11829: Glitches when using mismatched csg1/csg1i 2021-03-17 13:40:45 +01:00
core Merge pull request #13444 from tupaschoal/extract-ifdefed-functions 2021-03-27 10:00:01 -03:00
drawing Remove raw coords gfx_fill_rect_inset overload 2021-03-29 09:34:11 -03:00
interface Remove hardcoded terrain style constants from RCT1 and MapGen 2021-03-27 17:34:10 +01:00
localisation Add Vietnamese language 2021-03-31 14:26:31 +02:00
management Use entity list size rather than distance (#14343) 2021-03-17 08:55:10 +00:00
network Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
object Apply review requests 2021-03-31 19:15:33 +02:00
paint Remove hardcoded terrain style constants from RCT1 and MapGen 2021-03-27 17:34:10 +01:00
peep Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
platform Extract RequireNewWindow to Platform 2021-03-26 23:17:01 -03:00
rct1 Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
rct2 Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
rct12 Entity type5: Remove peep assigned type (#14380) 2021-03-24 08:54:05 +00:00
ride Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
scenario Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
scripting Add plugin hook for guest generation (#14107) 2021-03-26 05:49:24 +00:00
title Close #14253: Replace font size tokens with adjusted DrawText calls 2021-03-27 14:40:17 +01:00
ui Remove old shortcut code and fix issues 2021-02-21 03:14:18 +00:00
util Cleanup variables usage and initialize them 2021-01-06 22:29:40 +01:00
windows Use the RTD instead of ride_type_has_flag() 2021-02-24 14:10:30 +01:00
world Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
CMakeLists.txt fix static library name for PkgConfig 2021-02-28 15:48:30 -07:00
Cheats.cpp Split actions hpp files into separate h and cpp files (#13548) 2020-12-10 06:39:10 +00:00
Cheats.h Remove built-in explode guests cheat 2020-11-16 22:07:52 +01:00
CmdlineSprite.cpp Remove hardcoded terrain style constants from RCT1 and MapGen 2021-03-27 17:34:10 +01:00
CmdlineSprite.h Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Context.cpp Add missing call to gfx_unload_csg() 2021-03-30 22:49:00 +02:00
Context.h Fix REPL write line on Linux 2021-02-16 20:24:51 +00:00
Date.cpp Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Date.h Update copyright year to 2020 2020-07-21 15:04:34 +02:00
Diagnostic.cpp Fix REPL write line on Linux 2021-02-16 20:24:51 +00:00
Diagnostic.h Close #12452: Refactor DIAGNOSTIC_LEVEL to use strong enum (#12549) 2020-08-02 07:51:02 +01:00
Editor.cpp Use entity list rather than MAX_ENTITIES loop (#14384) 2021-03-25 08:08:26 +00:00
Editor.h Close #12453: Refactor RCT2_EDITOR_STEP to strong enum 2020-12-23 20:07:53 -03:00
EditorObjectSelectionSession.cpp Use 16-bit ride_id_t thoughout and raise RIDE_ID_NULL (#14411) 2021-04-01 16:02:57 +01:00
EditorObjectSelectionSession.h Create ObjectEntryDescriptor to properly handle mixed DAT and JSON 2020-12-02 17:17:25 +01:00
FileClassifier.cpp Refactor IStream::ReadArray to return unique_ptr 2021-02-12 19:30:53 +02:00
FileClassifier.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
Game.cpp Entity type 2: Remove sprite_identifier (#14334) 2021-03-17 08:04:41 +00:00
Game.h Fix #13842: News is imported incorrectly 2021-01-20 12:35:11 +01:00
GameState.cpp Reduce inclusion of world/Sprite.h 2021-02-25 10:56:27 +01:00
GameState.h Address review comments for benchsimulate 2021-01-10 13:34:14 +01:00
GameStateSnapshots.cpp Entity type5: Remove peep assigned type (#14380) 2021-03-24 08:54:05 +00:00
GameStateSnapshots.h Entity type 2: Remove sprite_identifier (#14334) 2021-03-17 08:04:41 +00:00
Input.cpp Close #13625: Refactor TOOL_IDX to use strong enum 2020-12-23 20:07:54 -03:00
Input.h Close #13625: Refactor TOOL_IDX to use strong enum 2020-12-23 20:07:54 -03:00
Intro.cpp Allow passing ImageId into gfx_draw_sprite() 2021-03-23 11:58:09 +01:00
Intro.h Close #12457: Rename INTRO_STATE to use PascalCase 2020-07-26 09:32:53 -04:00
OpenRCT2.cpp Close #12412: Refactor PROMPT_MODE to use strong enum (#13076) 2020-10-02 23:04:59 -03:00
OpenRCT2.h Close #12412: Refactor PROMPT_MODE to use strong enum (#13076) 2020-10-02 23:04:59 -03:00
ParkImporter.cpp Add .sea support to New Scenario list and extension handling 2020-09-28 21:17:28 +02:00
ParkImporter.h Refactor to avoid unnecessary copies (#13736) 2021-01-11 18:14:15 -03:00
PlatformEnvironment.cpp Read legacy shortcuts and move to constants 2021-02-21 03:14:17 +00:00
PlatformEnvironment.h Read legacy shortcuts and move to constants 2021-02-21 03:14:17 +00:00
ReplayManager.cpp Reduce inclusion of world/Sprite.h 2021-02-25 10:56:27 +01:00
ReplayManager.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
TrackImporter.cpp Update copyright year to 2020 2020-07-21 15:04:34 +02:00
TrackImporter.h Remove the use of INTERFACE macro and macro its self 2020-08-05 16:30:44 +02:00
Version.cpp Rename GameActionResult and use GameActions namespace instead (#13184) 2020-10-14 22:04:39 -03:00
Version.h Release v0.3.3 2021-03-13 12:17:05 +01:00
common.h Move SPRITE_INDEX_NULL, MAX_SPRITES to their new homes 2021-02-25 10:56:27 +01:00
libopenrct2.vcxproj Implement train view and remove linked_list_index (#13956) 2021-03-15 08:13:00 +00:00
readme.md Use named casts instead of old-style casts 2020-04-22 17:09:29 +02:00
sprites.h Add eye icon for tab 2021-02-21 03:14:18 +00:00

readme.md

Source directory structure

  • actions

    Handles player actions and queues pending actions.

  • audio

    Contains files for mixing and playing music and sound.

  • cmdline

    Code specific to command line (arguments).

  • config

    Code concerning game configuration.

  • core

    Provides core functionality such as string operations, encryption, and compression.

  • drawing

    Low level drawing logic and palette tables.

  • interface

    Window and widget logic, includes high level drawing and input.

  • localisation

    String IDs, currency and date logic.

  • management

    Park management logic such as finance, marketing and research.

  • network

    Network and multiplayer logic, includes management of network games and downloading / uploading of content.

  • object

    Code relating to objects (rides, shops, scenery, etc).

  • paint

    Prepares objects' sprites to be drawn.

  • peep

    Guest and staff definitions and logic such as action management and pathfinding.

  • platform

    Compiler and operating system specific code such as type definitions, message handling and file input / output.

  • rct1

    Code specific only to RCT1 (vanilla).

  • rct2

    Code specific only to RCT2 (vanilla).

  • rct12

    Code specific to vanilla RCT, either RCT 1 or RCT 2.

  • ride

    Data and logic for rides, vehicles and track.

  • scenario

    Code relating to game scenarios.

  • title

    Code for loading and updating title screen sequence.

  • util

    Utility and helper functions.

  • windows

    Definitions and logic for all the windows in the game.

  • world

    World objects and mechanics such as the climate, landscape, sprites and park.