Kane
e134be9538
Implement more options
...
- Invisible guests
- Invisible staff
- See-through trees
- Invisible trees
- Strings/Ids
2022-03-14 21:38:46 +00:00
Ted John
dff1d730da
Implement #13620 : [Plugin] Add support for patrol areas to Staff
2022-03-13 19:30:50 +00:00
Ted John
27ed19002a
Merge pull request #16740 from IntelOrca/precise-patrol-areas
...
Allow patrol areas to be single tiles.
2022-03-13 15:20:33 +00:00
Gymnasiast
dfa58470cf
Apply simplification
2022-03-11 21:10:10 +01:00
Ted John
97dfe3cb73
Refactor std::lower_bound to binary_find
2022-03-11 18:39:05 +00:00
Ted John
0aa6ceb2aa
Refactor similar loop in s4 and s6 import
2022-03-11 18:39:04 +00:00
Ted John
90718ca81c
Refactor patrol area class to new file
2022-03-11 18:39:04 +00:00
Ted John
566bc4d311
Allow patrol areas to be single tiles
...
Change the patrol areas to be stored as a sorted list of points grouped in fixed cells for each staff entity. The complexity will be a mixed O(1) and O(log n) search.
2022-03-11 18:39:04 +00:00
duncanspumpkin
a5a00517ea
Apply regex on PaintAddImageAsParentRotated2
2022-03-11 13:45:00 +00:00
Hielke Morsink
ba85cf4873
Close #15896 : Refactor out the ZoomLevel operators
2022-02-26 23:14:59 +01:00
Hielke Morsink
ad0a2a8f96
Remove entrance/exit location functions
2022-02-18 23:28:17 +02:00
Hielke Morsink
f06645d2f7
Make stations a private std::array and use getters for access
2022-02-18 23:21:35 +02:00
Hielke Morsink
f47c1b9f96
Close #16468 : Use TIdentifier for StationIndex
2022-02-18 23:11:07 +02:00
ζeh Matt
52047805db
Use correct type for EntityId and fix issues
2022-02-16 18:56:43 +02:00
ζeh Matt
ff1eb583fc
Make clang-format happy
2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
skdltmxn
9cd502a9f7
Fix staff statistics overflow
2022-02-14 07:42:18 +00:00
ζ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