ζeh Matt
06e430157f
Use RideId::GetNull and RideId::IsNull over constant
2022-02-12 18:11:18 +02:00
ζeh Matt
4554d6d883
Fix all uses of RideId
2022-02-12 18:11:18 +02:00
ζeh Matt
a2470c0573
Rename ride_id_t to RideId
2022-02-12 18:11:18 +02:00
Duncan
5157b57a15
OpenRCT2 Limits ( #16088 )
...
* Move over max rides to limits file
* Move max stations to limits file
* Move over max inversions, golf holes, helices, custhistsize
* Move over max trains per ride
* Bring over Max cars per train and max circuits per ride
* Port over NumColourSchemes and max vehicle colours
* Fix compilation
* Move over max awards
* Move over max peep spawns and park entrances
* Fix rebase issues
* Remove future work
* Switch style
* Update copyright
2022-02-01 20:59:48 +00:00
ζeh Matt
269673e3aa
Profiler update ( #16463 )
...
* Add more functions to be profiled
* Add isEnabled method to Profiler scripting interface
* Bump up scripting version
* Apply review suggestions
2022-01-29 15:29:08 +02:00
Gymnasiast
2cf380f7fe
Rename NotNice to Overbearing
2022-01-19 13:25:24 +01:00
Gymnasiast
92f38c566a
Fix music style check for ‘niceness’
2022-01-19 13:25:00 +01:00
ζeh Matt
993b168bfd
Implement profiler ( #16194 )
...
* Implement profiling API
* Add console commands for the profiler
* Remove accidental line
* Correct csv output
* Add copyright notice
* Add missing override
* Add default virtual destructor
* Explicitly pass template argument
* Use static
* Add plugin API for profiler
* Add more profile calls
* Workaround for GCC hopefully
* Add missing static keyword
* Use uint64 for call count
* Reduce name length see if CI passes
* Improve handling of function names
* Work around (broken) static inline variables
* Fix missing include
* Disable profiler for clang 5 and older
* Update copyright date
* Profile UpdateAllMiscEntities
* Apply review suggestions
Co-authored-by: Ted John <ted@brambles.org >
2022-01-18 20:21:20 +02:00
Michael Steenbeek
3faa0ebc4b
Fix #16346 : Crash in Staff::UpdateWatering()
2022-01-01 15:07:55 +01:00
frutiemax
adb692b74e
Forward declare Formatter
2021-12-30 12:17:51 -05:00
Michael Steenbeek
25cb49f8ce
Pass paint_session as reference
2021-12-19 14:48:00 +00:00
ζeh Matt
e405658f6a
Code style and cleanup
2021-12-13 16:00:51 +02:00
ζeh Matt
16635b9192
Implement custom BitSet and replace std::bitset
2021-12-12 23:47:17 +02:00
Gymnasiast
7559354d25
Move ride_update_popularity() to method
2021-12-12 12:30:22 +01:00
Gymnasiast
6df7c1e3b0
Move ride_update_satisfaction() to method
2021-12-12 12:30:22 +01:00
Michael Steenbeek
27cbb6c6ae
Merge pull request #16190 from Gymnasiast/refactor/normalised-tile-element-type-3
...
Part of #15485 : normalise all OpenRCT2 tile element types
2021-12-12 09:53:09 +01:00
Michael Steenbeek
b83f7c3859
Merge pull request #16150 from IntelOrca/refactor/imageid-ui
...
Refactor footpath, scenery, terrain and mapgen windows to use ImageId
2021-12-11 23:21:19 +01:00
Duncan
56c4240d77
Make Parkfile Pathfinding Deterministic ( #16147 )
...
* Rename path find functions and use sub function
* Modify leaving park logic to not use park entrance index
* Remove ChosenParkEntrance from peep struct
* Refactor GetNearestParkEntrance
Removed the index as its pointless. Fixed function to use CoordsXY
* Increment network version
* Update replays
2021-12-11 16:03:59 +00:00
Gymnasiast
aa34f0f760
Drop the N postfix
2021-12-11 00:39:39 +01:00
Gymnasiast
fc3ce3294c
Move over switches to normalised tile element types
2021-12-11 00:30:59 +01:00
Michael Steenbeek
2d1af0ec42
Replace many GetType() calls with GetTypeN()
2021-12-10 22:43:17 +01:00
Ted John
2108322806
Use ImageId for picked up peep
2021-12-07 20:17:22 +00:00
ζeh Matt
a79e2a375a
Move staff_set_name to Staff
2021-12-03 17:40:27 +02:00
ζeh Matt
a6870a97d4
Move staff hiring logic into StaffList
2021-12-03 17:37:39 +02:00
Hielke Morsink
53d9bfa8b4
Update implicit zoom conversions
2021-12-01 00:08:35 +01:00
Duncan
cc22b584fd
Introduce RCT2 namespace ( #16037 )
...
* Introduce RCT2 namespace
* Drop RCT2:: prefix where possible
* Drop RCT2 from structure names
* Reduce header includes
2021-11-28 16:51:38 +00:00
ζeh Matt
7a0fb048f8
Move reorganize structure of Paint.Sprite
2021-11-27 16:16:10 +02:00
ζeh Matt
d2bf07a9ce
Fix mistake
2021-11-27 16:08:29 +02:00
ζeh Matt
a1ea1dc4fb
Move painting to Litter entity
2021-11-27 15:55:24 +02:00
ζeh Matt
95a2967b75
Move painting into Peep entity
2021-11-27 15:51:54 +02:00
ζeh Matt
53e4bf1bbf
Move painting for MoneyEffect entity
2021-11-27 15:47:05 +02:00
ζeh Matt
686e15fd1a
Move painting for SteamParticle entity
2021-11-27 15:43:39 +02:00
ζeh Matt
effddb4a1f
Move painting for VehicleCrashParticle entity
2021-11-27 15:42:16 +02:00
ζeh Matt
3db8ef1a75
Move painting for ExplosionCloud entity
2021-11-27 15:39:48 +02:00
ζeh Matt
0e1dbf7cf1
Move painting for SplashCrash entity
2021-11-27 15:38:58 +02:00
ζeh Matt
4ba2314eba
Move painting for explosion flare entity
2021-11-27 15:37:32 +02:00
ζeh Matt
bbd95f1910
Move painting for Fountain entity
2021-11-27 15:37:12 +02:00
ζeh Matt
30349f80f5
Move painting for Balloon entity
2021-11-27 15:29:33 +02:00
ζeh Matt
eaff0a343d
Move painting for Duck entity
2021-11-27 15:27:41 +02:00
ζeh Matt
a9f76712b5
Add paint function to entities
2021-11-27 15:20:17 +02:00
ζeh Matt
496fdfd3eb
Move remaining EntityBase functions to EntityBase.cpp
2021-11-27 15:12:57 +02:00
ζeh Matt
bcb527d331
Fix truncation of coordinates ( #16004 )
2021-11-27 07:26:52 +00:00
ζeh Matt
c4ad5fcd15
Adjust includes
2021-11-26 21:01:44 +02:00
ζeh Matt
d12d538d84
Rename Entity.cpp to EntityBase.cpp
2021-11-26 19:41:39 +02:00
ζeh Matt
cb76165448
Move code from Entity.h into EntityRegistry.h
2021-11-26 19:41:36 +02:00
ζeh Matt
9f23449ffb
Move Staff/Guest/Peep to entity
2021-11-26 18:26:19 +02:00
ζeh Matt
e3f8ff78b8
Move entity serialisation functions ( #16003 )
2021-11-26 07:25:04 +00:00
ζeh Matt
860fb77da4
Apply review suggestions
2021-11-24 19:03:41 +02:00
ζeh Matt
213064e312
Revert old storage until the complex member types are gone
2021-11-24 18:25:43 +02:00
ζeh Matt
0024252328
Fix includes
2021-11-24 17:19:52 +02:00