Matt
d2e3430df2
Add the ability to temporarily load objects without registering them ( #24521 )
2025-05-27 22:13:42 +00:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
80b63a5ae7
Add line breaks after template declarations ( #23086 )
...
* Add line breaks after template declarations
* Additional clang-format patches
2024-10-29 16:54:01 +01:00
Michael Steenbeek
8fe2d7de1f
Rename Object and TileElement type constant ( #23030 )
...
* Rename Object::objectType to Object::kObjectType
* Rename TileElement::ElementType to TileElement::kElementType
2024-10-20 07:10:55 +01:00
Michael Steenbeek
8063c5caa7
Reduce casting for objects
2024-10-16 14:12:25 +02:00
Aaron van Geffen
a5054c68d1
Add progress reporting to loading required objects
2024-07-16 18:14:44 +02:00
Aaron van Geffen
b5ef2693b0
Remove common.h include from all units
2024-07-09 16:45:19 +02:00
Aaron van Geffen
db17fc6dad
Remove pseudo-keyword 'abstract'
2024-07-09 15:17:07 +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
Ted John
069a2b3192
Implement object manager for plugins
2023-05-02 20:28:14 +01:00
Duncan
9deed6d98a
Replace snakes in Class names OpenRCT2/N*-P* ( #19227 )
...
* Replace snakes in Class names OpenRCT2/N*-P*
* Rename PODDate (and TimeOfDay for good measure)
Co-authored-by: Gymnasiast <m.o.steenbeek@gmail.com >
2023-01-20 05:24:44 +00:00
Michael Steenbeek
bb55c6ce66
Remove loadsasnakes ( #19192 )
...
* Rename snake_case methods in scenario folder
* Rename snake_case methods in title folder
* Rename snake_case methods in object folder
* Rename snake_case methods in platform folder
* Rename snake_case methods in windows folder
* Rename tile_inspector.h to TileInspectorGlobals.h
* Rename snake_case methods in ui/windows folder
2023-01-17 19:46: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
Michael Steenbeek
d9e23e9dfa
Use ride_type_t instead of uint8_t in more places ( #17803 )
...
Part of preparation for making ride types into objects.
2022-08-13 21:49:19 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
Hielke Morsink
e2da19f0f7
Add missing includes
2022-07-29 18:45:10 +02:00
Ted John
a2e6691ac2
Add new audio objects for loading sounds
2022-05-23 22:24:56 +01:00
IntelOrca
34128dc262
Add new .park save format
...
Co-authored-by: Gymnasiast <Gymnasiast@users.noreply.github.com >
Co-authored-by: duncanspumpkin <duncanspumpkin@users.noreply.github.com >
Co-authored-by: ZehMatt <Zehmatt@users.noreply.github.com >
Co-authored-by: Broxzier <Broxzier@users.noreply.github.com >
2021-11-21 22:43:22 +01:00
Gymnasiast
bdab3219cb
Modify object loading for JSON-only objects
2021-09-15 11:28:39 +02:00
ζeh Matt
5868071fbc
Merge pull request #15335 from ZehMatt/refactor/object-load
...
Fix ownership of loaded object data
2021-09-04 09:13:45 -07:00
ζeh Matt
cf0425d953
Fix building
2021-09-03 14:45:48 +03:00
ζeh Matt
a118b16912
Remove unused functions
2021-09-03 14:45:47 +03:00
Ted John
3c451a4af4
Use music objects instead of IDs
2021-09-01 10:26:23 +02:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Gymnasiast
b3bbdcbfd5
Remove hardcoded terrain style constants from RCT1 and MapGen
2021-03-27 17:34:10 +01:00
Michael Steenbeek
f0dc28e9fc
Update objects to v1.0.21
2021-03-12 11:04:04 +01:00
Łukasz Pękalski
832fd69822
refactor: changed ObjectType enum to strong enum
...
code does not compile yet
2020-11-11 16:07:01 +01:00
Gymnasiast
ce15e20c94
Use plain std::string_view instead of const &
2020-11-06 11:40:52 +01:00
Gymnasiast
bafafa6805
Create functions to load objects by JSON id
2020-11-05 21:24:43 +01:00
Haven Kim
8a4df108ba
Close #12428 : Refactor OBJECT_SOURCE_GAME to use strong enum
2020-10-17 22:27:02 +02:00
Vinicius Sa
711dd00cde
Close #13000 : Refactor ObjectFactory to use unique_ptr
...
Employs the smart pointer unique_ptr for safer memory management.
Classes involved:
- ObjectRepository
- ObjectManager
2020-10-14 21:56:48 +02:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
77d02c5e2b
Close #12290 : Refactor of object_manager_unload_objects ( #12291 )
2020-07-17 05:25:35 +01:00
rdbaris
a2493af9ce
Part of #11159 (purge malloc() & free()) ( #11893 )
...
* Used smart pointers
* Changed functions to take vector as input
2020-07-16 22:35:30 +01:00
Michael Steenbeek
c519512cfe
Create ObjectEntryIndex ( #10980 )
2020-03-20 19:28:39 +01:00
Ted John
c89cecb2b5
Refactor the ride type to entry map ( #10967 )
...
Use C++ vectors and allow larger ride entry indices (> 256)
2020-03-20 18:07:31 +01:00
Michael Steenbeek
d86dce17e8
Prepare object indices for uint16_t (part 2) ( #10966 )
2020-03-18 21:27:53 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
837c0a9e7f
Use std::unique_ptr for ObjectManager and ObjectRepository
2018-08-31 07:18:49 +02:00
Michael Steenbeek
2a64ec7aff
Use sourceGame parameter in JSON files instead of originalId
2018-07-30 21:39:27 +02:00
clang-format
a6a12af1ec
clang-format object
2018-07-23 16:00:06 +02:00
Michael Steenbeek
1b08fb4e69
Replace our own integer types with standard ones
2018-06-20 17:30:40 +02:00
Hielke Morsink
0cf256ac9e
Ready copyright notice for clang-format
...
Clang-format sees the text behind `#pragma region` as code and formats it. Instead of stating the copyright and date there, it's now in the comment block right below it. The text "Copyright" is left in the `#pragma region` line, as clang-format sees it as a single identifier.
I took the opportunity to normalize the dates, and add the copyright notice to the source files where it was missing them (except for third-party and the generated resources.h file).
2018-06-15 14:07:34 +02:00
Ted John
fbe0f5d04f
Throw object load exception if unable to load any objects
2018-05-29 18:39:12 +01:00
Ted John
f8271e93b0
Refactor code base to allow easy addition of new object types
2018-05-15 00:32:36 +01:00
Ted John
529c744276
Use unique_ptr and shared_ptr for services in Context
2018-05-13 00:43:50 +01:00
Hielke Morsink
dc673a64d8
Give context the ownership of repositories and the object manager ( #7340 )
...
This makes them no longer a singleton, which fixes annoying behaviour when launching multiple contexts in one game session.
2018-04-10 13:19:23 +01:00