Michael Steenbeek
be9f27e4f9
Mass rename constants ( #23656 )
2025-01-19 15:59:45 +00:00
Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Aaron van Geffen
35e117aca2
Rename String methods to use lowerCamelCase
2024-12-11 22:49:37 +01:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
mrmbernardi
903460ff52
Fix #22231 : Invalid object version can cause a crash ( #22675 )
2024-09-03 04:21:49 +10:00
Harry Hopkinson
4744c7416d
Refactor object and network constants to kCamelCase
2024-08-11 20:21:24 +00:00
Aaron van Geffen
8cef18cd2f
Include cassert as needed at unit level
2024-07-09 16:43:03 +02:00
Aaron van Geffen
51873dc0f6
Include Diagnostic.h at unit level
2024-07-09 16:23:31 +02:00
Michał Janiszewski
3c35558f3f
Fix compilation on Arch Linux with GCC 14 ( #22031 )
...
Fixes #22029
2024-05-13 22:09:00 +00:00
Michał Janiszewski
7b12667ddb
Reduce <algorithm> include ( #21947 )
2024-05-01 13:47:27 +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
Matthias Moninger
b291c87d51
Merge pull request #20271 from duncanspumpkin/objDescriptor
...
Rework Object Identifier callers
2023-06-26 16:11:45 +03:00
duncanspumpkin
b58a17c731
Remove localisation object overrides
2023-05-22 08:50:19 +01:00
Ted John
cbd4c78cf6
Handle legacy objects correctly
2023-05-02 20:28:14 +01:00
Ted John
58dc3f193b
Use simple identifiers
2023-05-02 20:27:57 +01:00
Duncan
383642a812
Fix #19916 . Crash when changing language ( #19945 )
...
Issue caused by the unload image function not resetting the image id back to invalid. Also noticed that water wasn't correctly cleaning up.
Fix #19918 , #19926 , #19927 , #19928 , #19929 , #19931
2023-04-15 21:11:01 +00:00
Nikolas Parshook
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
Gymnasiast
af167552fb
Add flag to mark an object as a compatibility object
2023-03-25 14:40:03 +01:00
Michael Steenbeek
be52b55980
Remove some unused stuff ( #19474 )
...
* Remove unused symbols
* Remove unused SceneryObject.cpp
* Remove GetScgWallsHeader() and GetScgPiratHeader()
2023-02-23 22:27:21 +00: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
Hielke Morsink
6b7dc8fcdb
Rename snake_case functions in openrct2/src folder
...
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk >
2023-01-17 13:24:51 +01:00
Michael Steenbeek
b4480b344e
Rename snake_case functions from localisation folder
2023-01-16 23:12:35 +00:00
spacek531
c82c4ca3a3
Load object version into a tuple
2023-01-07 23:25:39 +01: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
a07daae770
Remove some unused symbols ( #17808 )
2022-08-13 21:24:15 +00:00
Hielke Morsink
8e509d9669
Remove ObjectType++ operator, ensure ObjectTypes size
2022-06-30 23:13:40 +02:00
Ted John
2012488956
Fix issues with file finding on Linux
2022-05-23 22:24:56 +01:00
Ted John
a2e6691ac2
Add new audio objects for loading sounds
2022-05-23 22:24:56 +01:00
Gymnasiast
fcd704ed47
Create fallback system for csg1 images
2021-12-08 16:18:33 +01:00
duncanspumpkin
6d28b94c05
Revert style change
2021-11-21 22:43:22 +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
Duncan
50118ae039
Move function for NSF use
2021-09-27 22:54:41 +02:00
Hielke Morsink
4b4b3333d6
Remove unnecessary else blocks
2021-09-16 18:31:12 +02:00
Gymnasiast
bdab3219cb
Modify object loading for JSON-only objects
2021-09-15 11:28:39 +02:00
ζeh Matt
59a6c34db4
Make use of std::optional strict
2021-09-13 20:02:32 +03:00
ζeh Matt
2daa356fbf
Move ZipStream into new header
2021-09-11 19:06:17 +03:00
Silent
95388cfbb1
Add File::GetSize to get object size in a simpler way
...
Drastically reduces startup speed because of the
optimization applied to ObjectAsset::GetSize - now the file
size is obtained without reading the entire file into memory.
2021-05-21 19:55:42 +02:00
Gymnasiast
b627dbd3a4
Apply review requests
2021-03-31 19:15:33 +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
Ted John
28f4ec2b43
Implement code review suggestions
2021-01-27 18:45:28 +00:00
Ted John
d9b8413ec4
Use IStream for zip streaming
2021-01-27 18:45:27 +00:00
Ted John
2f39442d25
Implement ride music objects and refactor
2021-01-27 18:45:27 +00:00
skdltmxn
7ef4d7762f
Refactor to avoid unnecessary copies ( #13736 )
...
* Refactor to avoid unnecessary copies
* Fix dangling references
2021-01-11 18:14:15 -03:00
skdltmxn
c093a50f3f
Refactor to use string_view more properly
2021-01-07 01:52:10 +09:00
Łukasz Pękalski
fc4ad82ac1
resolve: integrated changes from comments
2020-11-11 16:08:39 +01:00
Łukasz Pękalski
6e5105ab3b
refactor: ObjectType to use strong enum
...
enum renaming complete
2020-11-11 16:07:01 +01:00
Haven Kim
8a4df108ba
Close #12428 : Refactor OBJECT_SOURCE_GAME to use strong enum
2020-10-17 22:27:02 +02:00
Simon Jarrett
5f17554c25
Refactor ObjectJsonHelpers
...
Move functions in ObjectJsonHelpers to their relevant namespaces and classes
- Move ParseColour to Colour::FromString
- Move ParseCursor to Cursor::FromString
- Move LoadStrings to StringTable::ReadJson
- Move LoadImages to ImageTable::ReadJson
- Move ParseObjectEntry to Object::ParseObjectEntry
- Move GetString, etc. to Json::GetString, etc.
- Delete ObjectJsonHelpers .cpp and .h files
2020-09-16 20:18:53 +01:00