Commit Graph
336 Commits
Author SHA1 Message Date
Gymnasiast 5ffee91c8a Rename members of GameActions::Status 2025-12-12 11:41:49 +01:00
Kirill Gusev b1103708ea Show error message when issuing replay_start with a nonexistent file 2025-12-09 08:56:08 +01:00
Gymnasiast 8e7bc2bc43 Close #21375: extend to allow loading JSON objects 2025-10-25 13:43:36 +02:00
Gymnasiast e3d9cc1c96 Unwrap long if 2025-10-25 13:43:36 +02:00
Gymnasiast 890b8137ba Rename members of FormatToken 2025-10-07 20:27:03 +02:00
Gymnasiast daa4fe8ac3 Rename field of all config categories 2025-10-07 20:21:32 +02:00
Gymnasiast 8f399dfbdd Rename members of EntityType 2025-10-05 14:58:57 +02:00
Gymnasiast ee67a827c0 Rename members of AnimationPeepType 2025-10-05 01:10:06 +02:00
Gymnasiast 4158ddfe11 Change CheatType to lowerCamelCase 2025-10-01 20:34:54 +02:00
Gymnasiast a662c5ef8e Change WindowClass members to use lowerCamelCase 2025-09-17 23:18:52 +02:00
Gymnasiast 3a803e13e2 Change window functions to use lowerCamelCase 2025-09-17 20:10:12 +02:00
Gymnasiast b6e09bbc7e Change code style of enums in Viewport.h 2025-09-17 20:10:11 +02:00
matheusvb3 2ad4d4be72 Add isEntertainer method to Staff class, small cleanup 2025-09-15 23:00:13 +02:00
Aaron van Geffen 531cb68727 RideManager: use explicit game state rather than using implicit global 2025-09-11 13:42:18 +02:00
Aaron van Geffen 4446ff9f6f Pass game state ref as parameter to game actions (#25065) 2025-09-08 16:21:29 +02:00
Aaron van Geffen 5a4cc7d00d Remove Network function name prefixes given namespace qualifiers 2025-08-31 16:02:43 +02:00
Aaron van Geffen 12ab9195b6 Rework EntityRegistry into class 2025-08-31 14:29:36 +02:00
Aaron van Geffen 5b8fedd5b2 Rework Map.h includes (remove transitive header includes) 2025-09-04 22:16:53 +02:00
Aaron van Geffen abe58f6439 Move ClearAction, GameAction, ScenarioSetSettingAction into GameActions (#25045) 2025-08-29 06:32:05 -03:00
Aaron van Geffen 45ad3ec683 Move RideEntranceExit{Place/Remove}/FreezeRating/SetAppearance/SetColourScheme 2025-08-27 10:55:37 +02:00
Aaron van Geffen 1bcee698a9 Move RideSetName/Price/Setting actions into GameActions namespace 2025-08-27 10:47:34 +02:00
Aaron van Geffen a052437d12 Move Park game actions to GameActions namespace 2025-08-26 20:52:46 +02:00
Aaron van Geffen 620c1f40ef Move Staff game actions into GameActions namespace 2025-08-26 18:34:31 +02:00
Aaron van Geffen 1e059d18d0 Move Guest and Land game actions into GameActions namespace 2025-08-26 15:10:05 +02:00
Aaron van Geffen e8ef3897df Rework more game actions into GameActions namespace 2025-08-26 14:22:58 +02:00
Aaron van Geffen 19dd05c32f Move landPrice/constructionRightsPrice into Scenario::Options 2025-08-22 16:10:12 +02:00
Aaron van Geffen aa35ec07cd Introduce Scenario::Options struct; move cash and guest options 2025-08-22 15:57:33 +02:00
Gymnasiast 9c810d9e32 Update ParkData fields to new code style 2025-08-21 22:12:41 +02:00
Tulio Leao 80b5187da9 Rename ride_rating to RideRating_t 2025-08-17 08:49:03 -03:00
Aaron van Geffen a053a84486 Move all object units into OpenRCT2 namespace (#24980)
* Move all object units into OpenRCT2 namespace

* Dealing with fallout, part 1

* Dealing with fallout, part 2

* Dealing with fallout, part 3

* Apply clang-format in a few more places

* Remove redundant 'virtual' keyword
2025-08-17 06:46:03 -03:00
Aaron van Geffen e300ca8277 Move .maxBankLoan into ParkData struct 2025-08-13 22:29:25 +02:00
Aaron van Geffen 68a4991971 Move .bankLoan into ParkData struct 2025-08-13 21:24:06 +02:00
Aaron van Geffen 94f40e46ef Move .companyValue into ParkData struct 2025-08-13 21:08:00 +02:00
Aaron van Geffen b842537616 Move .cash, .cashHistory into ParkData struct 2025-08-13 20:23:14 +02:00
Joel Teichroeb a146f38194 Fix #24173: Allow all game speeds between 1 and 8 if developer mode is on (#24270) 2025-08-07 12:10:24 +02:00
Michał Janiszewski f6292b4c13 Use clang-format 20 (#24861)
https://clang.llvm.org/docs/ClangFormatStyleOptions.html
2025-07-31 11:01:48 +02:00
Gymnasiast d2615beb6e Change News enums to use lowerCamelCase 2025-05-24 23:47:18 +02:00
Tulio Leao b04348c56b Make error message on console set command more descriptive
Previously when using `set variable something` you would always get the non-helpful message: "set variable command failed, likely due to permissions."

Since all of these are going through game actions, we can use the GameActionResult to return something more meaningful. For example, trying to do `set game_speed 5`:
Before:
![image](https://github.com/user-attachments/assets/7e52143b-ca5d-461c-8475-408ba6346350)

After:
![image](https://github.com/user-attachments/assets/44160ceb-954b-41f6-80e3-fe581403b404)
2025-05-23 15:44:16 +02:00
Gymnasiast b68b177737 Change MAX_BANNERS to kMaxBanners 2025-05-20 22:57:03 +02:00
Matt 42df41efdb Remove the use of shared_ptr for the Context (#24404)
* Replace shared_ptr with unique_ptr for Context systems, return refs

* Fix all the users

* clang-format fix

* Fix linux builds
2025-05-15 22:46:06 +03:00
ζeh Matt 12063aa884 Rename SetLocation to SetViewportLocation, this is less confusing 2025-04-25 17:48:39 +03:00
ζeh Matt e3062985c0 Fix code calling ViewportUpdatePosition this is incorrect 2025-04-25 17:48:37 +03:00
Aaron van Geffen 807a2fa7c9 Merge objective options into scenario options 2025-03-13 13:57:03 +01:00
DuncanandMichael Steenbeek d5de6c2b49 Start Simplifying CMake code (#24177)
* Use generator expressions

* Update cmake minimum

* Move options and remove project name

* Use further generator expressions

* Try upgrading to CMake 3.25 on Ubuntu 22.04 CI

Install software-properties-common

* Standardise with DISABLE_TTF for disable defines

* Set X64 var differently due to unknown reasons

---------

Co-authored-by: Michael Steenbeek <1478678+Gymnasiast@users.noreply.github.com>
2025-04-11 16:09:52 +01:00
Aaron van Geffen 99836faeff Rename Window_internal unit to WindowBase for consistency (#24163) 2025-04-06 17:43:36 +02:00
Gymnasiast 14b881e22b Rename DIRID and its members 2025-03-25 23:39:27 +01:00
Gymnasiast 622a8dc525 Rename DIRBASE and its members 2025-03-25 22:47:09 +01:00
Gymnasiast 4badffcdb6 Change GameState_t members to lowerCamelCase 2025-03-20 23:05:57 +01:00
Aaron van Geffen 2ce206ed03 Move item temperature thresholds to climate objects 2025-03-07 18:57:00 +01:00
Aaron van Geffen 69d7488b8b Drop climate variable from in-game console 2025-02-01 17:30:20 +01:00