Commit Graph
43 Commits
Author SHA1 Message Date
16cd1c07ff Swap Duktape for quickjs-ng
Co-authored-by: Basssiiie <Basssiiie@users.noreply.github.com>
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2026-04-01 02:18:36 +11:00
matheusvb3 c6f505e718 Convert small scenery entry flags into a FlagHolder (#26181)
Update Staff.cpp
2026-03-12 21:40:08 +00:00
matheusvb3 c5904e1138 Convert RideEntry flags into a FlagHolder (#25957) 2026-02-08 10:36:17 +01:00
matheusvb3 20f8339963 Convert car entry flags into a FlagHolder (#25784) 2026-01-29 22:00:03 +01:00
matheusvb3 a08ebdb18e Rename variables in ScObject.hpp (#25827) 2026-01-16 13:27:00 +01:00
Aaron van Geffen 40aaf97c07 Update copyright years to 2026 (#25741) 2026-01-05 13:42:59 +00:00
Gymnasiast be23fbc98c Rename fields of SpriteBounds 2025-10-05 01:20:49 +02:00
Gymnasiast d4a0bca091 Rename Window fields 2025-09-17 20:10:12 +02:00
Michael Steenbeek b77aa9a956 Small cleanup of sound range parameters 2025-07-04 18:52:58 +02:00
Aaron van Geffen 0a3e9fdfd9 Update object manager API to access new object types (#24009)
* Update object manager API to access new object types

* Use separate mapping for scripting due to different type names

* Amend changelog
2025-03-20 00:16:08 +01:00
Aaron van Geffen bb94ee8bc0 Rename ObjectType enum to follow recent code style (#23810) 2025-02-13 23:07:55 +01:00
Aaron van Geffen fa06a49302 Update copyright year to 2025 (#23514) 2024-12-31 20:30:04 +01:00
Aaron van Geffen 3685d1a24b clang-format: change IndentPPDirectives to BeforeHash (#23287) 2024-11-29 12:04:56 +09:00
Duncan f6582647f5 Large scenery tiles 2 (#22888)
* Use std::span for tiles

* Add an index helper parameter

* Use coordsxyz

* Split up corners and walls

* Use bools for the two flags

* Apply coding style

* Refer only to LargeSceneryObject where required

* Address comments
2024-10-16 22:35:29 +01:00
Michael Steenbeek 8063c5caa7 Reduce casting for objects 2024-10-16 14:12:25 +02:00
Duncan 5934dc6380 Remove void* obj from RideEntry 2024-10-16 10:50:38 +02:00
DuncanandTulio Leao e157a843f0 Large scenery object tiles for scripting (#22842)
Co-authored-by: Tulio Leao <tupaschoal@gmail.com>
2024-10-01 21:02:46 -03:00
Aaron van Geffen b5ef2693b0 Remove common.h include from all units 2024-07-09 16:45:19 +02:00
Stephan Spengler 71a8eee5c6 Fix #21987: API cannot handle negative removal prices 2024-06-06 12:01:51 +02:00
James103 1d8dc111f1 Replace 2023 with 2024 in copyright headers (#21139)
Replace all instances of the year 2023 with 2024 in all copyright headers
2024-01-01 12:52:28 +01:00
ζeh Matt 62c0bc2cf5 Remove 13k dynamic initializer by changing SpriteGroupNames type 2023-11-25 16:22:45 +02:00
Ted John cbd4c78cf6 Handle legacy objects correctly 2023-05-02 20:28:14 +01:00
Ted John f95472c70a Add API for installed objects 2023-05-02 20:28:14 +01:00
Ted John f1ac4363ce Fix openrct2.d.ts 2023-05-02 20:28:14 +01:00
Ted John 58dc3f193b Use simple identifiers 2023-05-02 20:27:57 +01:00
Ted John bf3c6964be Remove scenery from object type names 2023-05-02 20:27:56 +01:00
Ted John 74fc4d3666 Revert re order of small scenery function 2023-05-02 20:27:56 +01:00
Ted John 1a73a0be68 Implement other scenery objects 2023-05-02 20:27:56 +01:00
Ted John 2729956cef Add scenery group object interface 2023-05-02 20:27:56 +01:00
Nikolas ParshookandDuncan ef35dfa40a Expose obj image offset and num images to plugins (#17567)
Co-authored-by: Duncan <duncans_pumpkin@hotmail.co.uk>
2023-04-13 19:09:15 +00:00
spacek531 fdbc3d29bb steam position modifier and animation speed properties (#11269)
* Add speed and frame properties

* add steam position modifier

* copy code from OpenLoco

* update sin and cos

* add computation function

* finalize locomotion code

* fix formatting

* refine code

* refactor things slightly

* manually fix formatting

* use PascalCase and rename

* fix copyright notice

* fix name again

* rename function, move outt  of namespace

* fix rebase issues

* remove pitch table derived from physics

* rename some stuff

* flip vertical component sign to make sense

* change json structure

* create steam particles based on number of animation frames

* fix formatting

* add slope for spiral lift hill down

* fix formatting again

* parens around bitwise and

* make animations separate functions

* rename MultiDimCoaster to MultiDimension

* use EnumValue method

* rework multidim frame count

* bump network to be safe

* fix formatting

* move array out of function

* make table const

* move struct into RideObject.cpp

* try new method to fix numbers in multidim

* implement ZehMatt modulo

* add documentation to new function

* include Yaw.hpp

* rename src/ride/SteamPosition.hpp to src/math/Trigonometry.hpp

* actually add src/math/Trigonometry.hpp

* move ComputeSteamOffset to Vehicle.cpp

* use static asserts on arrays

* fix changelog grammar

* add more static asserts
2023-03-09 15:45:45 +02:00
Duncan 7d08372c80 Remove snake_case from Class names OpenRCT2/Ride*-S* (#19232)
* Remove snake_case from Class names OpenRCT2/Ride*-S*

* Clang format
2023-01-20 20:58:55 +00:00
James103 73738bbdc8 Replace 2022 with 2023 in copyright headers
Replace all instances of the year 2022 with 2023 in all copyright headers
2023-01-01 11:58:01 +01:00
73 b9e677945d Replace 20XX with 2022 (#18158)
* Replace 2020 with 2022

Replace all 2020 headers with 2022

* replace other years with 2022

add missing years
2022-10-01 08:42:14 +01:00
Hielke Morsink e2da19f0f7 Add missing includes 2022-07-29 18:45:10 +02:00
Michael Steenbeek 3fae2413db Use “car” instead of the ambiguous “vehicle”, part 1
Currently, the word “vehicle” is used for both “train” and “car”. This is a first effort towards disambiguation.
2022-06-07 20:36:20 +00:00
spacek531andduncanspumpkin 673ec0fa10 Frames rotation count part 1 (#17106)
Refactor vehicle sprite groups

rename rotationType to spriteGroup

remove numframes getters from scobject

add sprite groups getters

add documentation to plugin

Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2022-06-03 23:03:02 +01:00
spacek531 5659d43f46 Cleanup vehicle drawing code part 3 (#16968)
* Cleanup vehicle drawing code part 3

* Create functions to convert between rotation amounts

* Add regions to ease code navigation
2022-04-30 07:56:23 +01:00
Ivan 9c04024537 Close #16933: Rename car_visual to PaintStyle (#16969) 2022-04-11 23:18:18 -03:00
spacek531 5ecb7a6c6a Cleanup vehicle drawing code part 2 (#16960) (#16960)
* Rename assembly variable names

* Repurpose unused rct_ride_entry_vehicle field for NumRotationFrames
2022-04-10 21:26:00 +01:00
Michael Steenbeekandζeh Matt 5d039a5f55 Use std::string_view instead of C string
Co-authored-by: ζeh Matt <5415177+ZehMatt@users.noreply.github.com>
2021-09-12 18:45:53 +02:00
Gymnasiast 3e1544aac8 Add missing object types to ObjectTypeToString() 2021-09-12 18:31:21 +02:00
ZehMatt adf5829cd6 Re-arrange structure of scripting 2021-08-11 22:15:34 +03:00