Harry-Hopkinson
74513374d1
Rename MAX_SERVER_DESCRIPTION_LENGTH to kMaxServerDescriptionLength
2024-04-26 17:56:20 +01:00
Harry-Hopkinson
7aed4d18f2
Rename NETWORK_LAN_BROADCAST_MSG to kNetworkLanBroadcastMsg
2024-04-26 17:55:23 +01:00
Harry-Hopkinson
82c31b80d4
Rename NETWORK_LAN_BROADCAST_PORT to kNetworkLanBroadcastPort
2024-04-26 17:55:23 +01:00
Harry-Hopkinson
5ef115941d
Rename NETWORK_DEFAULT_PORT to kNetworkDefaultPort
2024-04-26 17:55:23 +01: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
Hielke Morsink
37caebdde9
Fix #20737 : Spent money underflows when getting refunds ( #20765 )
2023-09-07 08:19:27 +02:00
Michael Steenbeek
dd624f9bff
Replace remaining usages of money16, money32 ( #19469 )
...
* Use money64 for ride prices and shop items
* Use money64 for park entrance fee
* Use money64 for gGuestInitialCash
* Use money64 for upkeep costs
* Use money64 for ride value
* Use money64 for marketing campaign cost
* Use money64 for object prices
* Use money64 for land prices
* Use money64 for guest expenditure
* Replace remaining occurrences of money32 with money64
* Update replays
* Bump network version
---------
Co-authored-by: duncanspumpkin <duncans_pumpkin@hotmail.co.uk>
2023-03-02 21:55:42 +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
2c224cfd53
Rename snake_case functions in OpenRCT2/network folder ( #19203 )
2023-01-18 06:05:53 +00:00
Gymnasiast
24247e9c6b
Migrate server setting getters to u8string
2023-01-08 16:19:18 +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
Fruitsalad
f17b1a970e
Remove headless servers from the player list UI
2022-09-06 23:28:33 +02:00
Fruitsalad
5bdcd06dec
Remove headless servers from the server list player count
2022-09-06 23:26:27 +02:00
Gymnasiast
d3fd31c611
Rename rct_string_id to StringId
2022-07-31 22:30:13 +02:00
ζeh Matt
83b911b193
#15634 : Refactor passing GameActions::Result by copy ( #15951 )
...
* Refactor to result GameActions::Result as copy instead of unique_ptr
* Remove alias GameActions::Result::Ptr
* Remove MakeResult wrapper
* Remove type forwarder in TileInspector
2021-11-24 07:35:08 +00:00
ζeh Matt
96e2641d0d
Remove macro for registration and cleanup
2021-11-10 19:42:23 +02:00
ζeh Matt
2529568bfc
Use std::string_view where appropriate in network code
...
Co-authored-by: Ted John <ted@brambles.org>
2021-09-18 00:14:28 +03:00
ζeh Matt
0be585024f
Merge pull request #15232 from ZehMatt/refactor/gNetwork
...
Move network instance to Context
2021-08-30 14:17:15 -07:00
Hielke Morsink
956e77f4c3
Use [[nodiscard]] for allocator and RAII functions ( #15244 )
2021-08-23 20:09:43 +02:00
ZehMatt
4ece997ff3
Remove unused function network_close
2021-08-17 06:33:50 +03:00
ZehMatt
0960413927
Remove unused function network_send_map
2021-08-17 06:31:12 +03:00
ZehMatt
b8a81ae1c7
Remove unused declarations
2021-08-17 06:30:16 +03:00
ZehMatt
e440942c54
Remove SetEnvironment from NetworkBase and all its other wrappers
2021-08-17 06:25:47 +03:00
Mike Jones
4e991beb8d
Closes #12419 : Merge MISC_COMMAND and GAME_COMMAND into strong enum ( #13103 )
...
Merge MISC_COMMAND and GAME_COMMAND enums
Cleanup
2020-12-22 20:53:37 -03:00
ζeh Matt
645289f4ec
Rename GameActionResult and use GameActions namespace instead ( #13184 )
2020-10-14 22:04:39 -03:00
Simon Jarrett
134371f03c
Change includes of nlohmann/json_fwd.hpp to new core/JsonFwd.hpp
2020-10-06 00:16:21 +02:00
Simon Jarrett
9c5e9f8dbc
Replace includes of Json.hpp in header files with json_fwd.hpp
2020-10-02 11:31:20 +01:00
Simon Jarrett
f1bcf20050
Refactor NetworkBase to use new JSON library
2020-09-16 20:18:52 +01:00
ju-pinheiro
214620951f
Close #12421 : Refactor NETWORK_AUTH to use strong enum
...
Replacing enum NETWORK_AUTH with enum class NetworkAuth.
2020-09-10 19:32:28 -03:00
ju-pinheiro
20a8bbc322
Close #12420 : Refactor NETWORK_PERMISSION to use strong enum
...
First approach, instead of a bigger refactor to avoid the need of "static_cast".
2020-09-10 19:32:27 -03:00
Matt
0dc43d66e4
Remove the use of INTERFACE macro and macro its self
2020-08-05 16:30:44 +02:00
Matt
30376085cf
Include missing headers
2020-08-05 16:29:29 +02:00
Aaron van Geffen
7b5087f057
Update copyright year to 2020
2020-07-21 15:04:34 +02:00
Ted John
297fe537b6
Implement network.sendMessage(msg, players)
2020-04-28 22:02:14 +01:00
Ted John
ecce4da6e8
Add ipAddress and publicHashKey properties to player API
2020-04-27 20:50:56 +01:00
Tulio Leao
181eaf768d
Receive CoordsXYZ by const ref instead of copy
2020-02-29 01:14:05 -03:00
Duncan
3be7d824ac
Merge pull request #10397 from duncanspumpkin/refactor_gcommand
...
Remove gCommandPosition. Use GameActionRes instead.
2019-12-19 20:48:20 +00:00
duncanspumpkin
2d75c01882
Unnetwork game commands
...
Only track designs still use game commands and they cannot be networked so remove dead code
2019-06-23 18:50:35 +01:00
duncanspumpkin
e72195d16e
Make suggested changes
2019-05-14 21:58:55 +02:00
duncanspumpkin
1eb7f4d8c6
Implement Modify Group and Kick Player Actions.
...
Further work on the Game Actions porting
2019-05-14 21:58:55 +02:00
Ted John
6a4791e39e
Only reply to broadcasts with correct message
2019-05-12 00:51:33 +01:00
Ted John
04c04d197e
Refactor broadcasting code and logging
2019-05-12 00:51:33 +01:00
Ted John
123a8eacad
Get the server list showing LAN servers
2019-05-12 00:51:33 +01:00
ζeh Matt
c8f822ea70
Gamestate snapshots ( #8819 )
...
* Add initial interface.
* Implement move operator in MemoryStream
* Add pod array serialisation traits.
* Add push_back with move semantics to CircularBuffer
* Initial implementation of GameStateSnapshots
* Add GameStateSnapshots to Context.
* Add mp_desync console command.
* Compare sprite data and fill change list.
* Minor changes.
* Proof of concept.
* Calculate offset instead of using offsetof
* Implement game state difference detection
* Update mp_desync console command.
* Fix identification of sprite remove/add.
* Fix crash when only one peep in park when using mp_desync
* Output state differences into user directory desync folder.
* Add desync debugging as an option.
* Add information to network status when a desync report was created.
* Cast to proper type for %llu.
* Update xcode project
* Add more information to the diffed data.
* Remove client-only relevant fields.
* Cleanup.
* Add better name output for misc sprites
* Add srand0 and tick information to the output
* Bump up network version
* Cleanup
* Set desync_debugging to false as default
* Apply suggestions
2019-05-11 21:31:34 +02:00
Xkeeper
bc8ecd8e67
Add "Reconnect" option under the multiplayer button
2019-05-02 00:26:37 +02:00
Xkeeper
d614fb4035
add network indicators for desync/player count
2019-05-02 00:22:03 +02:00
Duncan
1e1d263dae
PlayerSetGroupAction ( #9072 )
...
* First pass at action.
* Version 2. Do all the work in Network.cpp
* Mark game command as complete
* Make requested changes
* Increment of network version
2019-05-01 16:54:12 +01:00
Aaron van Geffen
2af13904c5
Update copyright notices for 2019. ( #8903 )
2019-03-17 07:16:15 +00:00
Ted John
cdec457abd
Refactor peep struct
2019-02-28 20:28:58 +01:00