Aaron van Geffen
fa06a49302
Update copyright year to 2025 ( #23514 )
2024-12-31 20:30:04 +01:00
Michael Steenbeek
7baae607ac
Use ride_type_t in more places
2024-12-22 19:59:36 +01:00
Aaron van Geffen
3eb50bb303
Raise max number of park entrance objects to 255 ( #23413 )
...
* Raise max number of park entrance objects to 255
* Implement EditorParkEntrance::OnScrollGetSize
* Allow resizing the entrance selection window
* Amend changelog
* Bump PARK_FILE_CURRENT_VERSION
2024-12-19 20:04:57 +01:00
Aaron van Geffen
6ee798337a
Introduce EnumUtils header ( #23407 )
2024-12-15 17:39:52 +01:00
Aaron van Geffen
35e117aca2
Rename String methods to use lowerCamelCase
2024-12-11 22:49:37 +01:00
mrmbernardi
c2b3f6c54c
Avoid pointer arithmetic with null pointer ( #23332 )
2024-12-06 11:34:20 +01:00
Aaron van Geffen
b3aa852a8d
Consolidate util/Math.hpp into core/Numerics.hpp ( #23319 )
...
* Consolidate util/Math.hpp into core/Numerics.hpp
* Remove branching; replace isPowerOf2 with std::has_single_bit
* Add templated types to floor2 and ceil2
2024-12-04 21:00:26 +00:00
Aaron van Geffen
a55a690db3
Introduce const ObjectList::FindLegacy ( #23315 )
2024-12-04 09:50:48 +01:00
Aaron van Geffen
2f450212a5
ImageTable: make parsing ranges more robust ( #23316 )
2024-12-04 07:38:30 +01:00
Aaron van Geffen
3685d1a24b
clang-format: change IndentPPDirectives to BeforeHash ( #23287 )
2024-11-29 12:04:56 +09:00
Gymnasiast
d722eddd90
Handle missing STEX without crashing
2024-10-30 22:58:47 +01:00
Aaron van Geffen
263b73cb31
Use ScenarioTextObject for indexing scenarios
2024-10-30 20:45:18 +01:00
Aaron van Geffen
f7ae40bac8
Re-introduce basic scenario text objects
2024-10-30 20:45:18 +01:00
Michael Steenbeek
4ea3e334f6
Fix #22908 : Crash when passing through invalid wall door
2024-10-30 19:44:08 +01:00
Aaron van Geffen
f40da09ab8
Move SawyerCoding from util into core, and into its own namespace
2024-10-29 21:59:28 +01:00
Aaron van Geffen
d2e01dde4e
Remove a bunch of Util.h includes
2024-10-29 13:12:52 +01:00
Aaron van Geffen
9436a9501e
Move bitScanForward from Util.h to Numerics.hpp
2024-10-29 11:08:39 +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
Duncan
75d06c8b89
Fix #23023 : Incorrect large scenery clearance calculation
2024-10-21 21:58:25 +02: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
Duncan
236f4afbd7
Fix default supports for large scenery ( #23014 )
2024-10-17 20:19:06 +00: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
Michael Steenbeek
0ec76e09d4
Remove unused IStream::ReadString() function and fix includes
2024-10-15 17:39:54 +02:00
Michael Bernardi
f110ea14f5
Apply check-code-formatting changes
2024-10-03 10:49:25 +10:00
Aaron van Geffen
931f0705ce
Introduce PeepNamesObjects for 'real' names of peeps ( #22758 )
...
* Add initial PeepNamesObject implementation
* Add peep names object to default objects
* Append peep names object to object list for older saves
* Deduplicate AppendRequiredObjects functions
* Remove built-in 'real name' tables
* Increment park version; introduce kPeepNamesObjectsVersion
* Update objects dependency to v1.4.8
2024-09-29 15:05:55 +02:00
Harry Hopkinson
0b77287370
Refactor SceneryGroupObject.cpp constants
2024-09-24 20:42:13 +00:00
Michael Steenbeek
066e5a557b
Close #17025 : Do not change ride type of JSON ride objects ( #22765 )
2024-09-21 22:44:53 +02:00
Aaron van Geffen
cf516db6dc
Split StringTypes.h off from String.hpp; adjust header includes
2024-09-10 23:55:53 +02:00
mrmbernardi
903460ff52
Fix #22231 : Invalid object version can cause a crash ( #22675 )
2024-09-03 04:21:49 +10:00
Michael Steenbeek
47800cddcf
Change RTD flags to a strong enum
2024-08-13 20:20:25 +00:00
Harry Hopkinson
4744c7416d
Refactor object and network constants to kCamelCase
2024-08-11 20:21:24 +00:00
Greg
dae5b00f05
Close #22509 : Refactor SPR_NONE to ImageIndex ( #22517 )
...
* ImageIndex typedef moved from ImageId.hpp to new file ImageIndexType.h.
* SPR_NONE redefined as ImageIndex type in ImageIndexType.h.
* SPR_NONE renamed to kSpriteIdNull
* Remove casts and enum all sprites as ImageIndex
* Remove sprites.h include from LandTool.h, RideData.h
* Ensure all RTD headers include sprites.h
---------
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2024-08-11 09:58:28 +00:00
Michael Steenbeek
e813532efb
Close #15750 : Multiple park entrance types in one park ( #21909 )
...
* Add new park entrance placement window
* Start entrance tool as soon as window opens;
* Rename constants to conform to current code standards
* Increment PARK_FILE_CURRENT_VERSION
* Increment kNetworkStreamVersion
Co-authored-by: Aaron van Geffen <aaron@aaronweb.net >
2024-08-04 23:02:16 +00:00
Aaron van Geffen
d574946c1a
Remove includes of Cursors.h in object header files
2024-08-03 20:46:58 +02:00
Duncan
a07b56a655
Move Viewport functions into Ui ( #22454 )
...
* Move viewport functions into ui
* Move footpath function to ui
* Don't include viewport in footpath.h
* Include missing includes
2024-08-02 06:01:31 +01:00
ζeh Matt
fed107b008
Make forceRedraw implicit when we are on the main thread
2024-08-01 23:48:54 +03:00
Aaron van Geffen
51816d2bd5
Disambiguate calls to UtilBitScanForward ( #22402 )
2024-07-28 18:44:59 +02:00
Aaron van Geffen
05e56517ab
Adopt existing namespaces into OpenRCT2 namespace ( #22368 )
...
* Put all of TitleSequenceManager into the same namespace
* Move RideConstructionState into the OpenRCT2 namespace
* Adopt existing namespaces into OpenRCT2 namespace
This adds `using namespace OpenRCT2` to compilation units where appropriate,
as a means to get the codebase to compile until these units have been placed
in a namespace of their own.
2024-07-26 09:59:58 +02:00
Aaron van Geffen
e645fc7ac4
Widen progress range for object loading proces
2024-07-16 19:30:48 +02:00
Aaron van Geffen
a5054c68d1
Add progress reporting to loading required objects
2024-07-16 18:14:44 +02:00
Aaron van Geffen
faac0ebeb5
Rewrite ObjectManager::LoadObjects to use a JobPool
2024-07-16 18:14:23 +02:00
Aaron van Geffen
3d5c19de08
Drop Localisation.h include where not required
2024-07-13 13:33:32 +02:00
Aaron van Geffen
229df6d66d
Move CSStringConverter from localisation to rct12 folder ( #22280 )
2024-07-12 20:37:00 +00:00
Aaron van Geffen
b5ef2693b0
Remove common.h include from all units
2024-07-09 16:45:19 +02: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
Aaron van Geffen
f9dcc21f05
Replace assert_struct_size macro with static_assert
2024-07-09 15:23:20 +02:00
Aaron van Geffen
db17fc6dad
Remove pseudo-keyword 'abstract'
2024-07-09 15:17:07 +02:00