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
Duncan
482971710d
Apply code style to context functions
2022-11-06 21:49:07 +01:00
Gymnasiast
d5f6a5b285
Replace context_load_park_from_file() with object equivalent
2022-10-08 20:12:35 +02:00
Duncan
5dba30778d
Code style: Remove more snakes from the park, maphelper, scenery. ( #18222 )
2022-10-08 06:56:17 -03: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
Hielke Morsink
7f29e4e39c
Make `rct_windowclass` strong type `WindowClass`
...
This already revealed some places where implicit conversions were done, including some where its use was nonsense (MouseInput.cpp).
The changes to the Intent class were necessary to keep things working, and this splits things up more neatly.
2022-08-21 18:38:25 +02:00
Hielke Morsink
43a98680ac
Fix: Fallback when selecting RCT1 titles while it's not installed
2022-07-03 16:39:27 +02:00
Hielke Morsink
6a017ac761
use std::decay helper type
2022-06-28 21:57:28 +02:00
Hielke Morsink
0e5cfce073
Maintain centre view position when screen resizes
2022-06-28 21:57:28 +02:00
Hielke Morsink
3da305b82f
Implement follow entity command
2022-06-28 21:57:27 +02:00
Hielke Morsink
1fc2312abd
Move most command logic from sequence player
...
This commit also moves everything related to the OpenRCT2::Title namespace.
Can be compiled with ENABLE_SCRIPTING disabled.
2022-06-28 21:57:26 +02:00
germanaizek
0045aed7f9
Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors
2022-05-07 16:05:38 +02:00
Ted John
9f96b0df33
Separate map.change and map.changed events
...
Also fix network plugin logic.
2022-03-21 23:09:40 +00:00
Ted John
84fdd44e6a
Add map changed hook
2022-03-21 21:42:30 +00:00
ζeh Matt
52047805db
Use correct type for EntityId and fix issues
2022-02-16 18:56:43 +02:00
ζeh Matt
d7f5003943
Introduce EntityId and refactor everything
2022-02-16 18:56:39 +02:00
Hielke Morsink
4494eb3949
Ensure parks are not paused in title sequence
2022-01-09 22:11:09 +01:00
ζeh Matt
20ef683744
Use Timer and cleanup some code in Context
2021-12-13 19:04:48 +02:00
Hielke Morsink
53d9bfa8b4
Update implicit zoom conversions
2021-12-01 00:08:35 +01:00
ζeh Matt
03fb9b390f
Rename Sprite to EntityRegistry
2021-11-24 17:04:12 +02:00
ζeh Matt
7c726e2a0c
Fix includes
2021-11-24 16:48:33 +02:00
ζeh Matt
c6242fd310
More renaming
2021-11-24 15:50:18 +02:00
Gymnasiast
bdab3219cb
Modify object loading for JSON-only objects
2021-09-15 11:28:39 +02:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
Kevin Singh
3feefb09b1
Close #12443 : Refactor TITLE_SCRIPT to use strong enum ( #13540 )
...
Close #12443 : Refactor TITLE_SCRIPT to use strong enum
2020-12-10 08:01:54 -03:00
Gymnasiast
eb2f40f35c
Fix typo in WC_EDITOR_OBJECTIVE_OPTIONS
2020-10-11 19:28:25 +02:00
Matt
f765ed2f94
Use unique_ptr for TitleSequenceParkHandle Stream
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:23:28 +03:00
Matt
17bff41e82
Use std::unique_ptr for TitleSequenceParkHandle
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:22:44 +03:00
Matt
464545b907
Cleanup remnants
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:22:35 +03:00
Matt
f586981cd3
Use std::string for TitleSequence names
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:22:12 +03:00
Matt
612249bd74
Use vector for TitleSequence commands
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:21:58 +03:00
Matt
7245f23422
Use vector for TitleSequence saves
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:21:42 +03:00
Matt
ccb6eb06f8
Use unique_ptr for TitleSequence instances
...
Co-authored-by: Gabriel Guedes <gabriel.guedesaz@gmail.com>
2020-09-29 23:21:27 +03:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
83355e35cc
Move IStream, MemoryStream, FileStream into OpenRCT2 namespace
2020-08-05 16:29:36 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
pizza2004
d217dfa9b9
Refactor NewsItem into namespace and Pascal Case ( #12511 )
2020-08-02 23:14:00 -03:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
frutiemax
f49149222e
Close #12245 : Use coords objects for SetLocation (Window_internal.h)
2020-07-16 23:01:42 +02:00
Michał Janiszewski
5bfc41f49e
openrct2-ui cast fixes ( #11348 )
2020-04-19 14:08:22 +02:00
Tulio Leao
b0e12ebc8f
Use named casts on openrct2-ui/title
2020-03-28 17:04:33 -03:00
Gymnasiast
bdf681f440
Clean up many other coordinates
2020-03-13 12:03:43 +01:00
Tulio Leao
1b3f0e9a44
Create ScreenCoordsXY gSavedView from separate x,y variables
2020-02-22 16:01:21 -03:00
Tulio Leao
47025c45b4
Make setMainView() use ScreenCoordsXY
2020-02-22 16:01:21 -03:00
Michael Steenbeek
d7f23bc5bf
Close #6898 : Remove LOADMM and LOADRCT1 commands ( #10546 )
2020-01-12 14:26:33 +01:00
duncanspumpkin
c6452095ca
Refactor tile_element_height to use CoordsXY
2019-08-19 20:04:57 +01:00
Matt
b046d45c01
Refactor window_set_location to use rct_window::SetLocation
2019-08-11 17:21:56 +02:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Matt
04928d4b84
Refactor reference over std::shared_ptr.
2018-08-31 07:18:48 +02:00
Linus Unnebäck
fd07be587a
Remove Math::Clamp in favour of std::clamp
2018-08-12 16:47:12 +01:00