diff --git a/src/openrct2/actions/GameActionRegistry.cpp b/src/openrct2/actions/GameActionRegistry.cpp index 34fc696c6c..860c441745 100644 --- a/src/openrct2/actions/GameActionRegistry.cpp +++ b/src/openrct2/actions/GameActionRegistry.cpp @@ -105,14 +105,14 @@ namespace OpenRCT2::GameActions const char* name{}; }; - using GameActionRegistry = std::array; + using GameActionRegistry = std::array; template static constexpr void Register(GameActionRegistry& registry, GameActionFactory factory, const char* name) { constexpr auto idx = static_cast(TId); - static_assert(idx < EnumValue(GameCommand::Count)); + static_assert(idx < EnumValue(GameCommand::count)); registry[idx] = { factory, name }; } diff --git a/src/openrct2/actions/GameActionRunner.cpp b/src/openrct2/actions/GameActionRunner.cpp index fb419fff11..b986fbe010 100644 --- a/src/openrct2/actions/GameActionRunner.cpp +++ b/src/openrct2/actions/GameActionRunner.cpp @@ -122,10 +122,10 @@ namespace OpenRCT2::GameActions // Remove ghost scenery so it doesn't interfere with incoming network command switch (queued.action->GetType()) { - case GameCommand::PlaceWall: - case GameCommand::PlaceLargeScenery: - case GameCommand::PlaceBanner: - case GameCommand::PlaceScenery: + case GameCommand::placeWall: + case GameCommand::placeLargeScenery: + case GameCommand::placeBanner: + case GameCommand::placeScenery: SceneryRemoveGhostToolPlacement(); break; default: diff --git a/src/openrct2/actions/GameCommand.h b/src/openrct2/actions/GameCommand.h index 9cab835b28..2c045dcc78 100644 --- a/src/openrct2/actions/GameCommand.h +++ b/src/openrct2/actions/GameCommand.h @@ -15,91 +15,91 @@ namespace OpenRCT2 { enum class GameCommand : int32_t { - SetRideAppearance, - SetLandHeight, - TogglePause, - PlaceTrack, - RemoveTrack, - LoadOrQuit, - CreateRide, - DemolishRide, - SetRideStatus, - SetRideVehicles, - SetRideName, - SetRideSetting, - PlaceRideEntranceOrExit, - RemoveRideEntranceOrExit, - RemoveScenery, - PlaceScenery, - SetWaterHeight, - PlacePath, - PlacePathLayout, - RemovePath, - ChangeSurfaceStyle, - SetRidePrice, - SetGuestName, - SetStaffName, - RaiseLand, - LowerLand, - EditLandSmooth, - RaiseWater, - LowerWater, - SetBrakesSpeed, - HireNewStaffMember, - SetStaffPatrol, - FireStaffMember, - SetStaffOrders, - SetParkName, - SetParkOpen, - BuyLandRights, - PlaceParkEntrance, - RemoveParkEntrance, - SetMazeTrack, - SetParkEntranceFee, - SetStaffColour, - PlaceWall, - RemoveWall, - PlaceLargeScenery, - RemoveLargeScenery, - SetCurrentLoan, - SetResearchFunding, - PlaceTrackDesign, - StartMarketingCampaign, - PlaceMazeDesign, - PlaceBanner, - RemoveBanner, - SetSceneryColour, - SetWallColour, - SetLargeSceneryColour, - SetBannerColour, - SetLandOwnership, - ClearScenery, - SetBannerName, - SetSignName, - SetBannerStyle, - SetSignStyle, - SetPlayerGroup, - ModifyGroups, - KickPlayer, - Cheat, - PickupGuest, - PickupStaff, - BalloonPress, - ModifyTile, - EditScenarioOptions, - PlacePeepSpawn, - SetColourScheme, - SetStaffCostume, - PlaceFootpathAddition, - RemoveFootpathAddition, - GuestSetFlags, - SetDate, - Custom, - ChangeMapSize, - FreezeRideRating, - SetGameSpeed, - SetRestrictedScenery, + setRideAppearance, + setLandHeight, + togglePause, + placeTrack, + removeTrack, + loadOrQuit, + createRide, + demolishRide, + setRideStatus, + setRideVehicles, + setRideName, + setRideSetting, + placeRideEntranceOrExit, + removeRideEntranceOrExit, + removeScenery, + placeScenery, + setWaterHeight, + placePath, + placePathLayout, + removePath, + changeSurfaceStyle, + setRidePrice, + setGuestName, + setStaffName, + raiseLand, + lowerLand, + editLandSmooth, + raiseWater, + lowerWater, + setBrakesSpeed, + hireNewStaffMember, + setStaffPatrol, + fireStaffMember, + setStaffOrders, + setParkName, + setParkOpen, + buyLandRights, + placeParkEntrance, + removeParkEntrance, + setMazeTrack, + setParkEntranceFee, + setStaffColour, + placeWall, + removeWall, + placeLargeScenery, + removeLargeScenery, + setCurrentLoan, + setResearchFunding, + placeTrackDesign, + startMarketingCampaign, + placeMazeDesign, + placeBanner, + removeBanner, + setSceneryColour, + setWallColour, + setLargeSceneryColour, + setBannerColour, + setLandOwnership, + clearScenery, + setBannerName, + setSignName, + setBannerStyle, + setSignStyle, + setPlayerGroup, + modifyGroups, + kickPlayer, + cheat, + pickupGuest, + pickupStaff, + balloonPress, + modifyTile, + editScenarioOptions, + placePeepSpawn, + setColourScheme, + setStaffCostume, + placeFootpathAddition, + removeFootpathAddition, + guestSetFlags, + setDate, + custom, + changeMapSize, + freezeRideRating, + setGameSpeed, + setRestrictedScenery, setRideVisibility, - Count, + count, }; } diff --git a/src/openrct2/actions/cheats/CheatSetAction.h b/src/openrct2/actions/cheats/CheatSetAction.h index 2dd4f9b192..e5a3263811 100644 --- a/src/openrct2/actions/cheats/CheatSetAction.h +++ b/src/openrct2/actions/cheats/CheatSetAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class CheatSetAction final : public GameActionBase + class CheatSetAction final : public GameActionBase { using ParametersRange = std::pair, std::pair>; diff --git a/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.h b/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.h index 0c21e032e4..f615d91358 100644 --- a/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.h +++ b/src/openrct2/actions/footpath/FootpathAdditionPlaceAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class FootpathAdditionPlaceAction final : public GameActionBase + class FootpathAdditionPlaceAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/footpath/FootpathAdditionRemoveAction.h b/src/openrct2/actions/footpath/FootpathAdditionRemoveAction.h index 02e78c6225..b66d3c5775 100644 --- a/src/openrct2/actions/footpath/FootpathAdditionRemoveAction.h +++ b/src/openrct2/actions/footpath/FootpathAdditionRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class FootpathAdditionRemoveAction final : public GameActionBase + class FootpathAdditionRemoveAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.h b/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.h index 6d6319ab7b..c24b35c1ba 100644 --- a/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.h +++ b/src/openrct2/actions/footpath/FootpathLayoutPlaceAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class FootpathLayoutPlaceAction final : public GameActionBase + class FootpathLayoutPlaceAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/footpath/FootpathPlaceAction.h b/src/openrct2/actions/footpath/FootpathPlaceAction.h index 33775a2f1c..071c4f3466 100644 --- a/src/openrct2/actions/footpath/FootpathPlaceAction.h +++ b/src/openrct2/actions/footpath/FootpathPlaceAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class FootpathPlaceAction final : public GameActionBase + class FootpathPlaceAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/footpath/FootpathRemoveAction.h b/src/openrct2/actions/footpath/FootpathRemoveAction.h index 1900eda0dc..5717d94e3c 100644 --- a/src/openrct2/actions/footpath/FootpathRemoveAction.h +++ b/src/openrct2/actions/footpath/FootpathRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class FootpathRemoveAction final : public GameActionBase + class FootpathRemoveAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/general/BalloonPressAction.h b/src/openrct2/actions/general/BalloonPressAction.h index fd3519e696..d2ad91374f 100644 --- a/src/openrct2/actions/general/BalloonPressAction.h +++ b/src/openrct2/actions/general/BalloonPressAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class BalloonPressAction final : public GameActionBase + class BalloonPressAction final : public GameActionBase { EntityId _spriteIndex{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/general/CustomAction.h b/src/openrct2/actions/general/CustomAction.h index e49cf1a86c..ec0738bda4 100644 --- a/src/openrct2/actions/general/CustomAction.h +++ b/src/openrct2/actions/general/CustomAction.h @@ -15,7 +15,7 @@ namespace OpenRCT2::GameActions { - class CustomAction final : public GameActionBase + class CustomAction final : public GameActionBase { private: std::string _id; diff --git a/src/openrct2/actions/general/GameSetSpeedAction.h b/src/openrct2/actions/general/GameSetSpeedAction.h index becbd27d1f..ff89f8a2c7 100644 --- a/src/openrct2/actions/general/GameSetSpeedAction.h +++ b/src/openrct2/actions/general/GameSetSpeedAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class GameSetSpeedAction final : public GameActionBase + class GameSetSpeedAction final : public GameActionBase { private: uint8_t _speed{ 1 }; diff --git a/src/openrct2/actions/general/LoadOrQuitAction.h b/src/openrct2/actions/general/LoadOrQuitAction.h index 764af3183c..9fac2ab87b 100644 --- a/src/openrct2/actions/general/LoadOrQuitAction.h +++ b/src/openrct2/actions/general/LoadOrQuitAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions closeSavePrompt }; - class LoadOrQuitAction final : public GameActionBase + class LoadOrQuitAction final : public GameActionBase { private: LoadOrQuitModes _mode{}; diff --git a/src/openrct2/actions/general/MapChangeSizeAction.h b/src/openrct2/actions/general/MapChangeSizeAction.h index 8b2d473cd5..beedcaa3eb 100644 --- a/src/openrct2/actions/general/MapChangeSizeAction.h +++ b/src/openrct2/actions/general/MapChangeSizeAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class MapChangeSizeAction final : public GameActionBase + class MapChangeSizeAction final : public GameActionBase { public: MapChangeSizeAction() = default; diff --git a/src/openrct2/actions/general/PauseToggleAction.h b/src/openrct2/actions/general/PauseToggleAction.h index 242821e736..8b3e6ad610 100644 --- a/src/openrct2/actions/general/PauseToggleAction.h +++ b/src/openrct2/actions/general/PauseToggleAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class PauseToggleAction final : public GameActionBase + class PauseToggleAction final : public GameActionBase { public: PauseToggleAction() = default; diff --git a/src/openrct2/actions/general/ScenarioSetSettingAction.h b/src/openrct2/actions/general/ScenarioSetSettingAction.h index 5a4158d9f0..6957a0bdcf 100644 --- a/src/openrct2/actions/general/ScenarioSetSettingAction.h +++ b/src/openrct2/actions/general/ScenarioSetSettingAction.h @@ -41,7 +41,7 @@ namespace OpenRCT2::GameActions count }; - class ScenarioSetSettingAction final : public GameActionBase + class ScenarioSetSettingAction final : public GameActionBase { private: ScenarioSetSetting _setting{ ScenarioSetSetting::count }; diff --git a/src/openrct2/actions/general/TileModifyAction.h b/src/openrct2/actions/general/TileModifyAction.h index c817d7fa20..b8803b784c 100644 --- a/src/openrct2/actions/general/TileModifyAction.h +++ b/src/openrct2/actions/general/TileModifyAction.h @@ -44,7 +44,7 @@ namespace OpenRCT2::GameActions count, }; - class TileModifyAction final : public GameActionBase + class TileModifyAction final : public GameActionBase { private: CoordsXY _loc; diff --git a/src/openrct2/actions/network/NetworkModifyGroupAction.h b/src/openrct2/actions/network/NetworkModifyGroupAction.h index c68ea4eee6..9bcfe90db7 100644 --- a/src/openrct2/actions/network/NetworkModifyGroupAction.h +++ b/src/openrct2/actions/network/NetworkModifyGroupAction.h @@ -31,7 +31,7 @@ namespace OpenRCT2::GameActions count }; - class NetworkModifyGroupAction final : public GameActionBase + class NetworkModifyGroupAction final : public GameActionBase { private: ModifyGroupType _type{ ModifyGroupType::count }; diff --git a/src/openrct2/actions/network/PlayerKickAction.h b/src/openrct2/actions/network/PlayerKickAction.h index 1d33a64e88..7b80fcf3f3 100644 --- a/src/openrct2/actions/network/PlayerKickAction.h +++ b/src/openrct2/actions/network/PlayerKickAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class PlayerKickAction final : public GameActionBase + class PlayerKickAction final : public GameActionBase { private: Network::PlayerId_t _playerId{ -1 }; diff --git a/src/openrct2/actions/network/PlayerSetGroupAction.h b/src/openrct2/actions/network/PlayerSetGroupAction.h index 7335ba2741..43c59f6045 100644 --- a/src/openrct2/actions/network/PlayerSetGroupAction.h +++ b/src/openrct2/actions/network/PlayerSetGroupAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class PlayerSetGroupAction final : public GameActionBase + class PlayerSetGroupAction final : public GameActionBase { private: Network::PlayerId_t _playerId{ -1 }; diff --git a/src/openrct2/actions/park/LandBuyRightsAction.h b/src/openrct2/actions/park/LandBuyRightsAction.h index d1a220f6ba..1a66cf6696 100644 --- a/src/openrct2/actions/park/LandBuyRightsAction.h +++ b/src/openrct2/actions/park/LandBuyRightsAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions count }; - class LandBuyRightsAction final : public GameActionBase + class LandBuyRightsAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/park/LandSetRightsAction.h b/src/openrct2/actions/park/LandSetRightsAction.h index 9ea5dd5aa2..fd8696b045 100644 --- a/src/openrct2/actions/park/LandSetRightsAction.h +++ b/src/openrct2/actions/park/LandSetRightsAction.h @@ -23,7 +23,7 @@ namespace OpenRCT2::GameActions count }; - class LandSetRightsAction final : public GameActionBase + class LandSetRightsAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/park/ParkEntrancePlaceAction.h b/src/openrct2/actions/park/ParkEntrancePlaceAction.h index 6643c05cd1..42cc63c775 100644 --- a/src/openrct2/actions/park/ParkEntrancePlaceAction.h +++ b/src/openrct2/actions/park/ParkEntrancePlaceAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkEntrancePlaceAction final : public GameActionBase + class ParkEntrancePlaceAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/park/ParkEntranceRemoveAction.h b/src/openrct2/actions/park/ParkEntranceRemoveAction.h index fcd5999999..d495abce46 100644 --- a/src/openrct2/actions/park/ParkEntranceRemoveAction.h +++ b/src/openrct2/actions/park/ParkEntranceRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkEntranceRemoveAction final : public GameActionBase + class ParkEntranceRemoveAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/park/ParkMarketingAction.h b/src/openrct2/actions/park/ParkMarketingAction.h index 7830092c15..5d563c7ccd 100644 --- a/src/openrct2/actions/park/ParkMarketingAction.h +++ b/src/openrct2/actions/park/ParkMarketingAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkMarketingAction final : public GameActionBase + class ParkMarketingAction final : public GameActionBase { private: int32_t _type{}; diff --git a/src/openrct2/actions/park/ParkSetDateAction.h b/src/openrct2/actions/park/ParkSetDateAction.h index 21691a47f0..40bfef63e0 100644 --- a/src/openrct2/actions/park/ParkSetDateAction.h +++ b/src/openrct2/actions/park/ParkSetDateAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkSetDateAction final : public GameActionBase + class ParkSetDateAction final : public GameActionBase { private: int32_t _year{}; diff --git a/src/openrct2/actions/park/ParkSetEntranceFeeAction.h b/src/openrct2/actions/park/ParkSetEntranceFeeAction.h index 7aee29405e..0493f86c56 100644 --- a/src/openrct2/actions/park/ParkSetEntranceFeeAction.h +++ b/src/openrct2/actions/park/ParkSetEntranceFeeAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkSetEntranceFeeAction final : public GameActionBase + class ParkSetEntranceFeeAction final : public GameActionBase { private: money64 _fee{ kMoney64Undefined }; diff --git a/src/openrct2/actions/park/ParkSetLoanAction.h b/src/openrct2/actions/park/ParkSetLoanAction.h index 751147e12b..10c02cd503 100644 --- a/src/openrct2/actions/park/ParkSetLoanAction.h +++ b/src/openrct2/actions/park/ParkSetLoanAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkSetLoanAction final : public GameActionBase + class ParkSetLoanAction final : public GameActionBase { private: money64 _value{ kMoney64Undefined }; diff --git a/src/openrct2/actions/park/ParkSetNameAction.h b/src/openrct2/actions/park/ParkSetNameAction.h index ea23a916c6..b9f4e5dfe7 100644 --- a/src/openrct2/actions/park/ParkSetNameAction.h +++ b/src/openrct2/actions/park/ParkSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkSetNameAction final : public GameActionBase + class ParkSetNameAction final : public GameActionBase { private: std::string _name; diff --git a/src/openrct2/actions/park/ParkSetParameterAction.h b/src/openrct2/actions/park/ParkSetParameterAction.h index 953fa39c3f..11b2b5b9ed 100644 --- a/src/openrct2/actions/park/ParkSetParameterAction.h +++ b/src/openrct2/actions/park/ParkSetParameterAction.h @@ -21,7 +21,7 @@ namespace OpenRCT2::GameActions count }; - class ParkSetParameterAction final : public GameActionBase + class ParkSetParameterAction final : public GameActionBase { private: ParkParameter _parameter{ ParkParameter::count }; diff --git a/src/openrct2/actions/park/ParkSetResearchFundingAction.h b/src/openrct2/actions/park/ParkSetResearchFundingAction.h index 0e97fdc7a4..534a5fd6f1 100644 --- a/src/openrct2/actions/park/ParkSetResearchFundingAction.h +++ b/src/openrct2/actions/park/ParkSetResearchFundingAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ParkSetResearchFundingAction final : public GameActionBase + class ParkSetResearchFundingAction final : public GameActionBase { private: // TODO change to std::optional when C++17 diff --git a/src/openrct2/actions/peep/GuestSetFlagsAction.h b/src/openrct2/actions/peep/GuestSetFlagsAction.h index af5bf5092a..8c19311029 100644 --- a/src/openrct2/actions/peep/GuestSetFlagsAction.h +++ b/src/openrct2/actions/peep/GuestSetFlagsAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class GuestSetFlagsAction final : public GameActionBase + class GuestSetFlagsAction final : public GameActionBase { private: EntityId _peepId{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/GuestSetNameAction.h b/src/openrct2/actions/peep/GuestSetNameAction.h index 181415339f..905a4a263e 100644 --- a/src/openrct2/actions/peep/GuestSetNameAction.h +++ b/src/openrct2/actions/peep/GuestSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class GuestSetNameAction final : public GameActionBase + class GuestSetNameAction final : public GameActionBase { private: EntityId _spriteIndex{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/PeepPickupAction.h b/src/openrct2/actions/peep/PeepPickupAction.h index 7f21b501a6..8b314cb6cc 100644 --- a/src/openrct2/actions/peep/PeepPickupAction.h +++ b/src/openrct2/actions/peep/PeepPickupAction.h @@ -22,7 +22,7 @@ namespace OpenRCT2::GameActions count }; - class PeepPickupAction final : public GameActionBase + class PeepPickupAction final : public GameActionBase { private: PeepPickupType _type{ PeepPickupType::count }; diff --git a/src/openrct2/actions/peep/PeepSpawnPlaceAction.h b/src/openrct2/actions/peep/PeepSpawnPlaceAction.h index 371c749137..c8e248bd41 100644 --- a/src/openrct2/actions/peep/PeepSpawnPlaceAction.h +++ b/src/openrct2/actions/peep/PeepSpawnPlaceAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class PeepSpawnPlaceAction final : public GameActionBase + class PeepSpawnPlaceAction final : public GameActionBase { private: CoordsXYZD _location; diff --git a/src/openrct2/actions/peep/StaffFireAction.h b/src/openrct2/actions/peep/StaffFireAction.h index 63039d3edd..0888f826f4 100644 --- a/src/openrct2/actions/peep/StaffFireAction.h +++ b/src/openrct2/actions/peep/StaffFireAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class StaffFireAction final : public GameActionBase + class StaffFireAction final : public GameActionBase { private: EntityId _spriteId{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/StaffHireNewAction.h b/src/openrct2/actions/peep/StaffHireNewAction.h index e4525c61e4..2dddad88a6 100644 --- a/src/openrct2/actions/peep/StaffHireNewAction.h +++ b/src/openrct2/actions/peep/StaffHireNewAction.h @@ -19,7 +19,7 @@ namespace OpenRCT2::GameActions EntityId StaffEntityId = EntityId::GetNull(); }; - class StaffHireNewAction final : public GameActionBase + class StaffHireNewAction final : public GameActionBase { private: bool _autoPosition{}; diff --git a/src/openrct2/actions/peep/StaffSetColourAction.h b/src/openrct2/actions/peep/StaffSetColourAction.h index 5415292be0..abee4bccd6 100644 --- a/src/openrct2/actions/peep/StaffSetColourAction.h +++ b/src/openrct2/actions/peep/StaffSetColourAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class StaffSetColourAction final : public GameActionBase + class StaffSetColourAction final : public GameActionBase { private: uint8_t _staffType{}; diff --git a/src/openrct2/actions/peep/StaffSetCostumeAction.h b/src/openrct2/actions/peep/StaffSetCostumeAction.h index fe0540118c..2f2ace30b3 100644 --- a/src/openrct2/actions/peep/StaffSetCostumeAction.h +++ b/src/openrct2/actions/peep/StaffSetCostumeAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class StaffSetCostumeAction final : public GameActionBase + class StaffSetCostumeAction final : public GameActionBase { private: EntityId _spriteIndex{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/StaffSetNameAction.h b/src/openrct2/actions/peep/StaffSetNameAction.h index 6dd4c3cb20..2431b8f006 100644 --- a/src/openrct2/actions/peep/StaffSetNameAction.h +++ b/src/openrct2/actions/peep/StaffSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class StaffSetNameAction final : public GameActionBase + class StaffSetNameAction final : public GameActionBase { private: EntityId _spriteIndex{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/StaffSetOrdersAction.h b/src/openrct2/actions/peep/StaffSetOrdersAction.h index 4ef4921e9c..a82809fae2 100644 --- a/src/openrct2/actions/peep/StaffSetOrdersAction.h +++ b/src/openrct2/actions/peep/StaffSetOrdersAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class StaffSetOrdersAction final : public GameActionBase + class StaffSetOrdersAction final : public GameActionBase { private: EntityId _spriteIndex{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.h b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.h index 113aa563ec..19903af0b9 100644 --- a/src/openrct2/actions/peep/StaffSetPatrolAreaAction.h +++ b/src/openrct2/actions/peep/StaffSetPatrolAreaAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions clearAll }; - class StaffSetPatrolAreaAction final : public GameActionBase + class StaffSetPatrolAreaAction final : public GameActionBase { private: EntityId _spriteId{ EntityId::GetNull() }; diff --git a/src/openrct2/actions/ride/MazePlaceTrackAction.h b/src/openrct2/actions/ride/MazePlaceTrackAction.h index a1b67239ec..aafbb1c896 100644 --- a/src/openrct2/actions/ride/MazePlaceTrackAction.h +++ b/src/openrct2/actions/ride/MazePlaceTrackAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class MazePlaceTrackAction final : public GameActionBase + class MazePlaceTrackAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/ride/MazeSetTrackAction.h b/src/openrct2/actions/ride/MazeSetTrackAction.h index 642c083509..7014fd1026 100644 --- a/src/openrct2/actions/ride/MazeSetTrackAction.h +++ b/src/openrct2/actions/ride/MazeSetTrackAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions fill, }; - class MazeSetTrackAction final : public GameActionBase + class MazeSetTrackAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/ride/RideCreateAction.h b/src/openrct2/actions/ride/RideCreateAction.h index 9764c88423..0e8138466b 100644 --- a/src/openrct2/actions/ride/RideCreateAction.h +++ b/src/openrct2/actions/ride/RideCreateAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class RideCreateAction final : public GameActionBase + class RideCreateAction final : public GameActionBase { private: ride_type_t _rideType{ kRideTypeNull }; diff --git a/src/openrct2/actions/ride/RideDemolishAction.h b/src/openrct2/actions/ride/RideDemolishAction.h index 8bbc62b332..c7ed4985c6 100644 --- a/src/openrct2/actions/ride/RideDemolishAction.h +++ b/src/openrct2/actions/ride/RideDemolishAction.h @@ -19,7 +19,7 @@ namespace OpenRCT2::GameActions renew, }; - class RideDemolishAction final : public GameActionBase + class RideDemolishAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.h b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.h index 3e87edcaa0..d21be582da 100644 --- a/src/openrct2/actions/ride/RideEntranceExitPlaceAction.h +++ b/src/openrct2/actions/ride/RideEntranceExitPlaceAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class RideEntranceExitPlaceAction final : public GameActionBase + class RideEntranceExitPlaceAction final : public GameActionBase { private: CoordsXY _loc; diff --git a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.h b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.h index a736e2ff97..74f7229b68 100644 --- a/src/openrct2/actions/ride/RideEntranceExitRemoveAction.h +++ b/src/openrct2/actions/ride/RideEntranceExitRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class RideEntranceExitRemoveAction final : public GameActionBase + class RideEntranceExitRemoveAction final : public GameActionBase { private: CoordsXY _loc; diff --git a/src/openrct2/actions/ride/RideFreezeRatingAction.h b/src/openrct2/actions/ride/RideFreezeRatingAction.h index 1a9ac507d9..13d2314404 100644 --- a/src/openrct2/actions/ride/RideFreezeRatingAction.h +++ b/src/openrct2/actions/ride/RideFreezeRatingAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions nausea, }; - class RideFreezeRatingAction final : public GameActionBase + class RideFreezeRatingAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetAppearanceAction.h b/src/openrct2/actions/ride/RideSetAppearanceAction.h index 8ad64c123c..0e133564b0 100644 --- a/src/openrct2/actions/ride/RideSetAppearanceAction.h +++ b/src/openrct2/actions/ride/RideSetAppearanceAction.h @@ -27,7 +27,7 @@ namespace OpenRCT2::GameActions sellingItemColourIsRandom }; - class RideSetAppearanceAction final : public GameActionBase + class RideSetAppearanceAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetColourSchemeAction.h b/src/openrct2/actions/ride/RideSetColourSchemeAction.h index ea00f26e43..a9e28e67f6 100644 --- a/src/openrct2/actions/ride/RideSetColourSchemeAction.h +++ b/src/openrct2/actions/ride/RideSetColourSchemeAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class RideSetColourSchemeAction final : public GameActionBase + class RideSetColourSchemeAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/ride/RideSetNameAction.h b/src/openrct2/actions/ride/RideSetNameAction.h index 2ff45bf6ba..ab7aeb5b36 100644 --- a/src/openrct2/actions/ride/RideSetNameAction.h +++ b/src/openrct2/actions/ride/RideSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class RideSetNameAction final : public GameActionBase + class RideSetNameAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetPriceAction.h b/src/openrct2/actions/ride/RideSetPriceAction.h index f6b9a7374d..44b641183c 100644 --- a/src/openrct2/actions/ride/RideSetPriceAction.h +++ b/src/openrct2/actions/ride/RideSetPriceAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class RideSetPriceAction final : public GameActionBase + class RideSetPriceAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetSettingAction.h b/src/openrct2/actions/ride/RideSetSettingAction.h index d40447d33b..8814b04279 100644 --- a/src/openrct2/actions/ride/RideSetSettingAction.h +++ b/src/openrct2/actions/ride/RideSetSettingAction.h @@ -28,7 +28,7 @@ namespace OpenRCT2::GameActions rideType, }; - class RideSetSettingAction final : public GameActionBase + class RideSetSettingAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetStatusAction.h b/src/openrct2/actions/ride/RideSetStatusAction.h index 25ac2492f7..53e38932d0 100644 --- a/src/openrct2/actions/ride/RideSetStatusAction.h +++ b/src/openrct2/actions/ride/RideSetStatusAction.h @@ -14,7 +14,7 @@ namespace OpenRCT2::GameActions { - class RideSetStatusAction final : public GameActionBase + class RideSetStatusAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/ride/RideSetVehicleAction.h b/src/openrct2/actions/ride/RideSetVehicleAction.h index f75284bcf1..6ce21e0c16 100644 --- a/src/openrct2/actions/ride/RideSetVehicleAction.h +++ b/src/openrct2/actions/ride/RideSetVehicleAction.h @@ -22,7 +22,7 @@ namespace OpenRCT2::GameActions count, }; - class RideSetVehicleAction final : public GameActionBase + class RideSetVehicleAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/scenery/BannerPlaceAction.h b/src/openrct2/actions/scenery/BannerPlaceAction.h index 14b051725f..1489989be5 100644 --- a/src/openrct2/actions/scenery/BannerPlaceAction.h +++ b/src/openrct2/actions/scenery/BannerPlaceAction.h @@ -23,7 +23,7 @@ namespace OpenRCT2::GameActions BannerIndex bannerId = BannerIndex::GetNull(); }; - class BannerPlaceAction final : public GameActionBase + class BannerPlaceAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/BannerRemoveAction.h b/src/openrct2/actions/scenery/BannerRemoveAction.h index 940d895817..deda9626dd 100644 --- a/src/openrct2/actions/scenery/BannerRemoveAction.h +++ b/src/openrct2/actions/scenery/BannerRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class BannerRemoveAction final : public GameActionBase + class BannerRemoveAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/BannerSetColourAction.h b/src/openrct2/actions/scenery/BannerSetColourAction.h index 2cb3a13ca7..98af08fe83 100644 --- a/src/openrct2/actions/scenery/BannerSetColourAction.h +++ b/src/openrct2/actions/scenery/BannerSetColourAction.h @@ -18,7 +18,7 @@ namespace OpenRCT2::Drawing namespace OpenRCT2::GameActions { - class BannerSetColourAction final : public GameActionBase + class BannerSetColourAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/BannerSetNameAction.h b/src/openrct2/actions/scenery/BannerSetNameAction.h index 84478d8cdb..9a46880354 100644 --- a/src/openrct2/actions/scenery/BannerSetNameAction.h +++ b/src/openrct2/actions/scenery/BannerSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class BannerSetNameAction final : public GameActionBase + class BannerSetNameAction final : public GameActionBase { private: BannerIndex _bannerIndex{ BannerIndex::GetNull() }; diff --git a/src/openrct2/actions/scenery/BannerSetStyleAction.h b/src/openrct2/actions/scenery/BannerSetStyleAction.h index df14fd7e46..7e70525135 100644 --- a/src/openrct2/actions/scenery/BannerSetStyleAction.h +++ b/src/openrct2/actions/scenery/BannerSetStyleAction.h @@ -23,7 +23,7 @@ namespace OpenRCT2::GameActions count }; - class BannerSetStyleAction final : public GameActionBase + class BannerSetStyleAction final : public GameActionBase { private: BannerSetStyleType _type{ BannerSetStyleType::count }; diff --git a/src/openrct2/actions/scenery/LargeSceneryPlaceAction.h b/src/openrct2/actions/scenery/LargeSceneryPlaceAction.h index d1d71a3348..2c8e6e5765 100644 --- a/src/openrct2/actions/scenery/LargeSceneryPlaceAction.h +++ b/src/openrct2/actions/scenery/LargeSceneryPlaceAction.h @@ -26,7 +26,7 @@ namespace OpenRCT2::GameActions BannerIndex bannerId = BannerIndex::GetNull(); }; - class LargeSceneryPlaceAction final : public GameActionBase + class LargeSceneryPlaceAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/LargeSceneryRemoveAction.h b/src/openrct2/actions/scenery/LargeSceneryRemoveAction.h index 2e8c271182..ad94319576 100644 --- a/src/openrct2/actions/scenery/LargeSceneryRemoveAction.h +++ b/src/openrct2/actions/scenery/LargeSceneryRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class LargeSceneryRemoveAction final : public GameActionBase + class LargeSceneryRemoveAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/LargeScenerySetColourAction.h b/src/openrct2/actions/scenery/LargeScenerySetColourAction.h index cdd8ea06a1..c11a02704e 100644 --- a/src/openrct2/actions/scenery/LargeScenerySetColourAction.h +++ b/src/openrct2/actions/scenery/LargeScenerySetColourAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class LargeScenerySetColourAction final : public GameActionBase + class LargeScenerySetColourAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/ScenerySetRestrictedAction.h b/src/openrct2/actions/scenery/ScenerySetRestrictedAction.h index c2d7f17669..cc9cb1a3b7 100644 --- a/src/openrct2/actions/scenery/ScenerySetRestrictedAction.h +++ b/src/openrct2/actions/scenery/ScenerySetRestrictedAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class ScenerySetRestrictedAction final : public GameActionBase + class ScenerySetRestrictedAction final : public GameActionBase { private: ObjectType _objectType; diff --git a/src/openrct2/actions/scenery/SignSetNameAction.h b/src/openrct2/actions/scenery/SignSetNameAction.h index e22691ee6b..1e8d7c8d9c 100644 --- a/src/openrct2/actions/scenery/SignSetNameAction.h +++ b/src/openrct2/actions/scenery/SignSetNameAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class SignSetNameAction final : public GameActionBase + class SignSetNameAction final : public GameActionBase { private: BannerIndex _bannerIndex{ BannerIndex::GetNull() }; diff --git a/src/openrct2/actions/scenery/SignSetStyleAction.h b/src/openrct2/actions/scenery/SignSetStyleAction.h index b4a8eeb7d3..fd62404a87 100644 --- a/src/openrct2/actions/scenery/SignSetStyleAction.h +++ b/src/openrct2/actions/scenery/SignSetStyleAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class SignSetStyleAction final : public GameActionBase + class SignSetStyleAction final : public GameActionBase { private: BannerIndex _bannerIndex{ BannerIndex::GetNull() }; diff --git a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.h b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.h index d6c60fafd0..14cdaa01a3 100644 --- a/src/openrct2/actions/scenery/SmallSceneryPlaceAction.h +++ b/src/openrct2/actions/scenery/SmallSceneryPlaceAction.h @@ -20,7 +20,7 @@ namespace OpenRCT2::GameActions uint8_t SceneryQuadrant{}; }; - class SmallSceneryPlaceAction final : public GameActionBase + class SmallSceneryPlaceAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/SmallSceneryRemoveAction.h b/src/openrct2/actions/scenery/SmallSceneryRemoveAction.h index 498ba60ec7..f2eac6bd24 100644 --- a/src/openrct2/actions/scenery/SmallSceneryRemoveAction.h +++ b/src/openrct2/actions/scenery/SmallSceneryRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class SmallSceneryRemoveAction final : public GameActionBase + class SmallSceneryRemoveAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/scenery/SmallScenerySetColourAction.h b/src/openrct2/actions/scenery/SmallScenerySetColourAction.h index 7a1b94ba81..608a89c165 100644 --- a/src/openrct2/actions/scenery/SmallScenerySetColourAction.h +++ b/src/openrct2/actions/scenery/SmallScenerySetColourAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class SmallScenerySetColourAction final : public GameActionBase + class SmallScenerySetColourAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/actions/scenery/WallPlaceAction.h b/src/openrct2/actions/scenery/WallPlaceAction.h index 5f95343a1b..f52357ca44 100644 --- a/src/openrct2/actions/scenery/WallPlaceAction.h +++ b/src/openrct2/actions/scenery/WallPlaceAction.h @@ -28,7 +28,7 @@ namespace OpenRCT2::GameActions BannerIndex BannerId = BannerIndex::GetNull(); }; - class WallPlaceAction final : public GameActionBase + class WallPlaceAction final : public GameActionBase { private: ObjectEntryIndex _wallType{ kObjectEntryIndexNull }; diff --git a/src/openrct2/actions/scenery/WallRemoveAction.h b/src/openrct2/actions/scenery/WallRemoveAction.h index d9668db05b..e40764b6bd 100644 --- a/src/openrct2/actions/scenery/WallRemoveAction.h +++ b/src/openrct2/actions/scenery/WallRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class WallRemoveAction final : public GameActionBase + class WallRemoveAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/scenery/WallSetColourAction.h b/src/openrct2/actions/scenery/WallSetColourAction.h index b59a701c64..449ac15890 100644 --- a/src/openrct2/actions/scenery/WallSetColourAction.h +++ b/src/openrct2/actions/scenery/WallSetColourAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class WallSetColourAction final : public GameActionBase + class WallSetColourAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/terraform/ClearAction.h b/src/openrct2/actions/terraform/ClearAction.h index 9968f92424..cd85eca70d 100644 --- a/src/openrct2/actions/terraform/ClearAction.h +++ b/src/openrct2/actions/terraform/ClearAction.h @@ -22,7 +22,7 @@ namespace OpenRCT2::GameActions constexpr ClearableItems kSceneryFootpath = 1 << 2; } // namespace CLEARABLE_ITEMS - class ClearAction final : public GameActionBase + class ClearAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/terraform/LandLowerAction.h b/src/openrct2/actions/terraform/LandLowerAction.h index 08752981e6..5bf47306de 100644 --- a/src/openrct2/actions/terraform/LandLowerAction.h +++ b/src/openrct2/actions/terraform/LandLowerAction.h @@ -15,7 +15,7 @@ enum class MapSelectType : uint8_t; namespace OpenRCT2::GameActions { - class LandLowerAction final : public GameActionBase + class LandLowerAction final : public GameActionBase { private: CoordsXY _coords; diff --git a/src/openrct2/actions/terraform/LandRaiseAction.h b/src/openrct2/actions/terraform/LandRaiseAction.h index 9db2c534fe..1d79d5f133 100644 --- a/src/openrct2/actions/terraform/LandRaiseAction.h +++ b/src/openrct2/actions/terraform/LandRaiseAction.h @@ -15,7 +15,7 @@ enum class MapSelectType : uint8_t; namespace OpenRCT2::GameActions { - class LandRaiseAction final : public GameActionBase + class LandRaiseAction final : public GameActionBase { private: CoordsXY _coords; diff --git a/src/openrct2/actions/terraform/LandSetHeightAction.h b/src/openrct2/actions/terraform/LandSetHeightAction.h index 83d71595ac..df629b097a 100644 --- a/src/openrct2/actions/terraform/LandSetHeightAction.h +++ b/src/openrct2/actions/terraform/LandSetHeightAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class LandSetHeightAction final : public GameActionBase + class LandSetHeightAction final : public GameActionBase { private: CoordsXY _coords; diff --git a/src/openrct2/actions/terraform/LandSmoothAction.h b/src/openrct2/actions/terraform/LandSmoothAction.h index 3a7132d426..568b48055b 100644 --- a/src/openrct2/actions/terraform/LandSmoothAction.h +++ b/src/openrct2/actions/terraform/LandSmoothAction.h @@ -15,7 +15,7 @@ enum class MapSelectType : uint8_t; namespace OpenRCT2::GameActions { - class LandSmoothAction final : public GameActionBase + class LandSmoothAction final : public GameActionBase { private: CoordsXY _coords; diff --git a/src/openrct2/actions/terraform/SurfaceSetStyleAction.h b/src/openrct2/actions/terraform/SurfaceSetStyleAction.h index bd429306b3..4c2661bb0e 100644 --- a/src/openrct2/actions/terraform/SurfaceSetStyleAction.h +++ b/src/openrct2/actions/terraform/SurfaceSetStyleAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class SurfaceSetStyleAction final : public GameActionBase + class SurfaceSetStyleAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/terraform/WaterLowerAction.h b/src/openrct2/actions/terraform/WaterLowerAction.h index 6b365a15c9..7704b9fb92 100644 --- a/src/openrct2/actions/terraform/WaterLowerAction.h +++ b/src/openrct2/actions/terraform/WaterLowerAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class WaterLowerAction final : public GameActionBase + class WaterLowerAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/terraform/WaterRaiseAction.h b/src/openrct2/actions/terraform/WaterRaiseAction.h index bf0b8ef877..919890d19a 100644 --- a/src/openrct2/actions/terraform/WaterRaiseAction.h +++ b/src/openrct2/actions/terraform/WaterRaiseAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class WaterRaiseAction final : public GameActionBase + class WaterRaiseAction final : public GameActionBase { private: MapRange _range; diff --git a/src/openrct2/actions/terraform/WaterSetHeightAction.h b/src/openrct2/actions/terraform/WaterSetHeightAction.h index 741a165b9c..aeb172c37e 100644 --- a/src/openrct2/actions/terraform/WaterSetHeightAction.h +++ b/src/openrct2/actions/terraform/WaterSetHeightAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class WaterSetHeightAction final : public GameActionBase + class WaterSetHeightAction final : public GameActionBase { private: CoordsXY _coords; diff --git a/src/openrct2/actions/track/TrackDesignAction.h b/src/openrct2/actions/track/TrackDesignAction.h index 0e7bc6f683..07543f0740 100644 --- a/src/openrct2/actions/track/TrackDesignAction.h +++ b/src/openrct2/actions/track/TrackDesignAction.h @@ -15,7 +15,7 @@ namespace OpenRCT2::GameActions { - class TrackDesignAction final : public GameActionBase + class TrackDesignAction final : public GameActionBase { private: CoordsXYZD _loc; diff --git a/src/openrct2/actions/track/TrackPlaceAction.h b/src/openrct2/actions/track/TrackPlaceAction.h index db46857920..2ad1614088 100644 --- a/src/openrct2/actions/track/TrackPlaceAction.h +++ b/src/openrct2/actions/track/TrackPlaceAction.h @@ -19,7 +19,7 @@ namespace OpenRCT2::GameActions uint8_t GroundFlags{ 0 }; }; - class TrackPlaceAction final : public GameActionBase + class TrackPlaceAction final : public GameActionBase { private: RideId _rideIndex{ RideId::GetNull() }; diff --git a/src/openrct2/actions/track/TrackRemoveAction.h b/src/openrct2/actions/track/TrackRemoveAction.h index f8c2d1b480..4dc6796e1d 100644 --- a/src/openrct2/actions/track/TrackRemoveAction.h +++ b/src/openrct2/actions/track/TrackRemoveAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class TrackRemoveAction final : public GameActionBase + class TrackRemoveAction final : public GameActionBase { private: TrackElemType _trackType{}; diff --git a/src/openrct2/actions/track/TrackSetBrakeSpeedAction.h b/src/openrct2/actions/track/TrackSetBrakeSpeedAction.h index 5462212294..99a26077bd 100644 --- a/src/openrct2/actions/track/TrackSetBrakeSpeedAction.h +++ b/src/openrct2/actions/track/TrackSetBrakeSpeedAction.h @@ -13,7 +13,7 @@ namespace OpenRCT2::GameActions { - class TrackSetBrakeSpeedAction final : public GameActionBase + class TrackSetBrakeSpeedAction final : public GameActionBase { private: CoordsXYZ _loc; diff --git a/src/openrct2/network/NetworkAction.cpp b/src/openrct2/network/NetworkAction.cpp index febc87c815..0628246d07 100644 --- a/src/openrct2/network/NetworkAction.cpp +++ b/src/openrct2/network/NetworkAction.cpp @@ -58,187 +58,187 @@ namespace OpenRCT2::Network STR_ACTION_TERRAFORM, "PERMISSION_TERRAFORM", { - GameCommand::SetLandHeight, - GameCommand::RaiseLand, - GameCommand::LowerLand, - GameCommand::EditLandSmooth, - GameCommand::ChangeSurfaceStyle, + GameCommand::setLandHeight, + GameCommand::raiseLand, + GameCommand::lowerLand, + GameCommand::editLandSmooth, + GameCommand::changeSurfaceStyle, }, }, NetworkAction{ STR_ACTION_SET_WATER_LEVEL, "PERMISSION_SET_WATER_LEVEL", { - GameCommand::SetWaterHeight, - GameCommand::RaiseWater, - GameCommand::LowerWater, + GameCommand::setWaterHeight, + GameCommand::raiseWater, + GameCommand::lowerWater, }, }, NetworkAction{ STR_ACTION_TOGGLE_PAUSE, "PERMISSION_TOGGLE_PAUSE", { - GameCommand::TogglePause, + GameCommand::togglePause, }, }, NetworkAction{ STR_ACTION_CREATE_RIDE, "PERMISSION_CREATE_RIDE", { - GameCommand::CreateRide, + GameCommand::createRide, }, }, NetworkAction{ STR_ACTION_REMOVE_RIDE, "PERMISSION_REMOVE_RIDE", { - GameCommand::DemolishRide, + GameCommand::demolishRide, }, }, NetworkAction{ STR_ACTION_BUILD_RIDE, "PERMISSION_BUILD_RIDE", { - GameCommand::PlaceTrack, - GameCommand::RemoveTrack, - GameCommand::SetMazeTrack, - GameCommand::PlaceTrackDesign, - GameCommand::PlaceMazeDesign, - GameCommand::PlaceRideEntranceOrExit, - GameCommand::RemoveRideEntranceOrExit, + GameCommand::placeTrack, + GameCommand::removeTrack, + GameCommand::setMazeTrack, + GameCommand::placeTrackDesign, + GameCommand::placeMazeDesign, + GameCommand::placeRideEntranceOrExit, + GameCommand::removeRideEntranceOrExit, }, }, NetworkAction{ STR_ACTION_RIDE_PROPERTIES, "PERMISSION_RIDE_PROPERTIES", { - GameCommand::SetRideName, - GameCommand::SetRideAppearance, - GameCommand::SetRideStatus, - GameCommand::SetRideVehicles, - GameCommand::SetRideSetting, - GameCommand::SetRidePrice, - GameCommand::SetBrakesSpeed, - GameCommand::SetColourScheme, + GameCommand::setRideName, + GameCommand::setRideAppearance, + GameCommand::setRideStatus, + GameCommand::setRideVehicles, + GameCommand::setRideSetting, + GameCommand::setRidePrice, + GameCommand::setBrakesSpeed, + GameCommand::setColourScheme, }, }, NetworkAction{ STR_ACTION_SCENERY, "PERMISSION_SCENERY", { - GameCommand::RemoveScenery, - GameCommand::PlaceScenery, - GameCommand::SetBrakesSpeed, - GameCommand::RemoveWall, - GameCommand::PlaceWall, - GameCommand::RemoveLargeScenery, - GameCommand::PlaceLargeScenery, - GameCommand::PlaceBanner, - GameCommand::RemoveBanner, - GameCommand::SetSceneryColour, - GameCommand::SetWallColour, - GameCommand::SetLargeSceneryColour, - GameCommand::SetBannerColour, - GameCommand::SetBannerName, - GameCommand::SetSignName, - GameCommand::SetBannerStyle, - GameCommand::SetSignStyle, + GameCommand::removeScenery, + GameCommand::placeScenery, + GameCommand::setBrakesSpeed, + GameCommand::removeWall, + GameCommand::placeWall, + GameCommand::removeLargeScenery, + GameCommand::placeLargeScenery, + GameCommand::placeBanner, + GameCommand::removeBanner, + GameCommand::setSceneryColour, + GameCommand::setWallColour, + GameCommand::setLargeSceneryColour, + GameCommand::setBannerColour, + GameCommand::setBannerName, + GameCommand::setSignName, + GameCommand::setBannerStyle, + GameCommand::setSignStyle, }, }, NetworkAction{ STR_ACTION_PATH, "PERMISSION_PATH", { - GameCommand::PlacePath, - GameCommand::PlacePathLayout, - GameCommand::RemovePath, - GameCommand::PlaceFootpathAddition, - GameCommand::RemoveFootpathAddition, + GameCommand::placePath, + GameCommand::placePathLayout, + GameCommand::removePath, + GameCommand::placeFootpathAddition, + GameCommand::removeFootpathAddition, }, }, NetworkAction{ STR_ACTION_CLEAR_LANDSCAPE, "PERMISSION_CLEAR_LANDSCAPE", { - GameCommand::ClearScenery, + GameCommand::clearScenery, }, }, NetworkAction{ STR_ACTION_GUEST, "PERMISSION_GUEST", { - GameCommand::SetGuestName, - GameCommand::PickupGuest, - GameCommand::BalloonPress, - GameCommand::GuestSetFlags, + GameCommand::setGuestName, + GameCommand::pickupGuest, + GameCommand::balloonPress, + GameCommand::guestSetFlags, }, }, NetworkAction{ STR_ACTION_STAFF, "PERMISSION_STAFF", { - GameCommand::HireNewStaffMember, - GameCommand::SetStaffPatrol, - GameCommand::FireStaffMember, - GameCommand::SetStaffOrders, - GameCommand::SetStaffCostume, - GameCommand::SetStaffColour, - GameCommand::SetStaffName, - GameCommand::PickupStaff, + GameCommand::hireNewStaffMember, + GameCommand::setStaffPatrol, + GameCommand::fireStaffMember, + GameCommand::setStaffOrders, + GameCommand::setStaffCostume, + GameCommand::setStaffColour, + GameCommand::setStaffName, + GameCommand::pickupStaff, }, }, NetworkAction{ STR_ACTION_PARK_PROPERTIES, "PERMISSION_PARK_PROPERTIES", { - GameCommand::SetParkName, - GameCommand::SetParkOpen, - GameCommand::SetParkEntranceFee, - GameCommand::SetLandOwnership, - GameCommand::BuyLandRights, - GameCommand::PlaceParkEntrance, - GameCommand::RemoveParkEntrance, - GameCommand::PlacePeepSpawn, - GameCommand::ChangeMapSize, + GameCommand::setParkName, + GameCommand::setParkOpen, + GameCommand::setParkEntranceFee, + GameCommand::setLandOwnership, + GameCommand::buyLandRights, + GameCommand::placeParkEntrance, + GameCommand::removeParkEntrance, + GameCommand::placePeepSpawn, + GameCommand::changeMapSize, }, }, NetworkAction{ STR_ACTION_PARK_FUNDING, "PERMISSION_PARK_FUNDING", { - GameCommand::SetCurrentLoan, - GameCommand::SetResearchFunding, - GameCommand::StartMarketingCampaign, + GameCommand::setCurrentLoan, + GameCommand::setResearchFunding, + GameCommand::startMarketingCampaign, }, }, NetworkAction{ STR_ACTION_KICK_PLAYER, "PERMISSION_KICK_PLAYER", { - GameCommand::KickPlayer, + GameCommand::kickPlayer, }, }, NetworkAction{ STR_ACTION_MODIFY_GROUPS, "PERMISSION_MODIFY_GROUPS", { - GameCommand::ModifyGroups, + GameCommand::modifyGroups, }, }, NetworkAction{ STR_ACTION_SET_PLAYER_GROUP, "PERMISSION_SET_PLAYER_GROUP", { - GameCommand::SetPlayerGroup, + GameCommand::setPlayerGroup, }, }, NetworkAction{ STR_ACTION_CHEAT, "PERMISSION_CHEAT", { - GameCommand::Cheat, - GameCommand::SetDate, - GameCommand::FreezeRideRating, + GameCommand::cheat, + GameCommand::setDate, + GameCommand::freezeRideRating, }, }, NetworkAction{ @@ -255,14 +255,14 @@ namespace OpenRCT2::Network STR_ACTION_MODIFY_TILE, "PERMISSION_MODIFY_TILE", { - GameCommand::ModifyTile, + GameCommand::modifyTile, }, }, NetworkAction{ STR_ACTION_EDIT_SCENARIO_OPTIONS, "PERMISSION_EDIT_SCENARIO_OPTIONS", { - GameCommand::EditScenarioOptions, + GameCommand::editScenarioOptions, }, }, NetworkAction{ diff --git a/src/openrct2/network/NetworkBase.cpp b/src/openrct2/network/NetworkBase.cpp index 91087818f8..6f2811a2e8 100644 --- a/src/openrct2/network/NetworkBase.cpp +++ b/src/openrct2/network/NetworkBase.cpp @@ -3039,12 +3039,12 @@ namespace OpenRCT2::Network packet >> tick >> actionType; // Don't let clients send pause or quit - if (actionType == GameCommand::TogglePause || actionType == GameCommand::LoadOrQuit) + if (actionType == GameCommand::togglePause || actionType == GameCommand::loadOrQuit) { return; } - if (actionType != GameCommand::Custom) + if (actionType != GameCommand::custom) { // Check if player's group permission allows command to run NetworkGroup* group = GetGroupByID(connection.player->group); diff --git a/src/openrct2/scripting/ScriptEngine.cpp b/src/openrct2/scripting/ScriptEngine.cpp index 91ca388a08..6eb39ee047 100644 --- a/src/openrct2/scripting/ScriptEngine.cpp +++ b/src/openrct2/scripting/ScriptEngine.cpp @@ -1490,13 +1490,13 @@ JSValue ScriptEngine::GameActionResultToJS( if (result.error == GameActions::Status::ok) { // RideCreateAction only - if (action.GetType() == GameCommand::CreateRide) + if (action.GetType() == GameCommand::createRide) { const auto rideIndex = result.getData(); JS_SetPropertyStr(ctx, obj, "ride", JS_NewInt32(ctx, rideIndex.ToUnderlying())); } // StaffHireNewAction only - else if (action.GetType() == GameCommand::HireNewStaffMember) + else if (action.GetType() == GameCommand::hireNewStaffMember) { const auto actionResult = result.getData(); if (!actionResult.StaffEntityId.IsNull()) @@ -1508,13 +1508,13 @@ JSValue ScriptEngine::GameActionResultToJS( auto bannerId = BannerIndex::GetNull(); switch (action.GetType()) { - case GameCommand::PlaceBanner: + case GameCommand::placeBanner: bannerId = result.getData().bannerId; break; - case GameCommand::PlaceLargeScenery: + case GameCommand::placeLargeScenery: bannerId = result.getData().bannerId; break; - case GameCommand::PlaceWall: + case GameCommand::placeWall: bannerId = result.getData().BannerId; break; default: @@ -1643,87 +1643,87 @@ public: // clang-format off const static EnumMap ActionNameToType = { - { "balloonpress", GameCommand::BalloonPress }, - { "bannerplace", GameCommand::PlaceBanner }, - { "bannerremove", GameCommand::RemoveBanner }, - { "bannersetcolour", GameCommand::SetBannerColour }, - { "bannersetname", GameCommand::SetBannerName }, - { "bannersetstyle", GameCommand::SetBannerStyle }, - { "clearscenery", GameCommand::ClearScenery }, - { "footpathplace", GameCommand::PlacePath }, - { "footpathlayoutplace", GameCommand::PlacePathLayout }, - { "footpathremove", GameCommand::RemovePath }, - { "footpathadditionplace", GameCommand::PlaceFootpathAddition }, - { "footpathadditionremove", GameCommand::RemoveFootpathAddition }, - { "gamesetspeed", GameCommand::SetGameSpeed }, - { "guestsetflags", GameCommand::GuestSetFlags }, - { "guestsetname", GameCommand::SetGuestName }, - { "landbuyrights", GameCommand::BuyLandRights }, - { "landlower", GameCommand::LowerLand }, - { "landraise", GameCommand::RaiseLand }, - { "landsetheight", GameCommand::SetLandHeight }, - { "landsetrights", GameCommand::SetLandOwnership }, - { "landsmooth", GameCommand::EditLandSmooth }, - { "largesceneryplace", GameCommand::PlaceLargeScenery }, - { "largesceneryremove", GameCommand::RemoveLargeScenery }, - { "largescenerysetcolour", GameCommand::SetLargeSceneryColour }, - { "loadorquit", GameCommand::LoadOrQuit }, - { "mapchangesize", GameCommand::ChangeMapSize }, - { "mazeplacetrack", GameCommand::PlaceMazeDesign }, - { "mazesettrack", GameCommand::SetMazeTrack }, - { "networkmodifygroup", GameCommand::ModifyGroups }, - { "parkentranceplace", GameCommand::PlaceParkEntrance }, - { "parkentranceremove", GameCommand::RemoveParkEntrance }, - { "parkmarketing", GameCommand::StartMarketingCampaign }, - { "parksetdate", GameCommand::SetDate }, - { "parksetentrancefee", GameCommand::SetParkEntranceFee }, - { "parksetloan", GameCommand::SetCurrentLoan }, - { "parksetname", GameCommand::SetParkName }, - { "parksetparameter", GameCommand::SetParkOpen }, - { "parksetresearchfunding", GameCommand::SetResearchFunding }, - { "pausetoggle", GameCommand::TogglePause }, - { "peeppickup", GameCommand::PickupGuest }, - { "peepspawnplace", GameCommand::PlacePeepSpawn }, - { "playerkick", GameCommand::KickPlayer }, - { "playersetgroup", GameCommand::SetPlayerGroup }, - { "ridecreate", GameCommand::CreateRide }, - { "ridedemolish", GameCommand::DemolishRide }, - { "rideentranceexitplace", GameCommand::PlaceRideEntranceOrExit }, - { "rideentranceexitremove", GameCommand::RemoveRideEntranceOrExit }, - { "ridefreezerating", GameCommand::FreezeRideRating }, - { "ridesetappearance", GameCommand::SetRideAppearance }, - { "ridesetcolourscheme", GameCommand::SetColourScheme }, - { "ridesetname", GameCommand::SetRideName }, - { "ridesetprice", GameCommand::SetRidePrice }, - { "ridesetsetting", GameCommand::SetRideSetting }, - { "ridesetstatus", GameCommand::SetRideStatus }, - { "ridesetvehicle", GameCommand::SetRideVehicles }, - { "scenariosetsetting", GameCommand::EditScenarioOptions }, - { "cheatset", GameCommand::Cheat }, - { "signsetname", GameCommand::SetSignName }, - { "signsetstyle", GameCommand::SetSignStyle }, - { "smallsceneryplace", GameCommand::PlaceScenery }, - { "smallsceneryremove", GameCommand::RemoveScenery }, - { "smallscenerysetcolour", GameCommand::SetSceneryColour}, - { "stafffire", GameCommand::FireStaffMember }, - { "staffhire", GameCommand::HireNewStaffMember }, - { "staffsetcolour", GameCommand::SetStaffColour }, - { "staffsetcostume", GameCommand::SetStaffCostume }, - { "staffsetname", GameCommand::SetStaffName }, - { "staffsetorders", GameCommand::SetStaffOrders }, - { "staffsetpatrolarea", GameCommand::SetStaffPatrol }, - { "surfacesetstyle", GameCommand::ChangeSurfaceStyle }, - { "tilemodify", GameCommand::ModifyTile }, - { "trackdesign", GameCommand::PlaceTrackDesign }, - { "trackplace", GameCommand::PlaceTrack }, - { "trackremove", GameCommand::RemoveTrack }, - { "tracksetbrakespeed", GameCommand::SetBrakesSpeed }, - { "wallplace", GameCommand::PlaceWall }, - { "wallremove", GameCommand::RemoveWall }, - { "wallsetcolour", GameCommand::SetWallColour }, - { "waterlower", GameCommand::LowerWater }, - { "waterraise", GameCommand::RaiseWater }, - { "watersetheight", GameCommand::SetWaterHeight } + { "balloonpress", GameCommand::balloonPress }, + { "bannerplace", GameCommand::placeBanner }, + { "bannerremove", GameCommand::removeBanner }, + { "bannersetcolour", GameCommand::setBannerColour }, + { "bannersetname", GameCommand::setBannerName }, + { "bannersetstyle", GameCommand::setBannerStyle }, + { "clearscenery", GameCommand::clearScenery }, + { "footpathplace", GameCommand::placePath }, + { "footpathlayoutplace", GameCommand::placePathLayout }, + { "footpathremove", GameCommand::removePath }, + { "footpathadditionplace", GameCommand::placeFootpathAddition }, + { "footpathadditionremove", GameCommand::removeFootpathAddition }, + { "gamesetspeed", GameCommand::setGameSpeed }, + { "guestsetflags", GameCommand::guestSetFlags }, + { "guestsetname", GameCommand::setGuestName }, + { "landbuyrights", GameCommand::buyLandRights }, + { "landlower", GameCommand::lowerLand }, + { "landraise", GameCommand::raiseLand }, + { "landsetheight", GameCommand::setLandHeight }, + { "landsetrights", GameCommand::setLandOwnership }, + { "landsmooth", GameCommand::editLandSmooth }, + { "largesceneryplace", GameCommand::placeLargeScenery }, + { "largesceneryremove", GameCommand::removeLargeScenery }, + { "largescenerysetcolour", GameCommand::setLargeSceneryColour }, + { "loadorquit", GameCommand::loadOrQuit }, + { "mapchangesize", GameCommand::changeMapSize }, + { "mazeplacetrack", GameCommand::placeMazeDesign }, + { "mazesettrack", GameCommand::setMazeTrack }, + { "networkmodifygroup", GameCommand::modifyGroups }, + { "parkentranceplace", GameCommand::placeParkEntrance }, + { "parkentranceremove", GameCommand::removeParkEntrance }, + { "parkmarketing", GameCommand::startMarketingCampaign }, + { "parksetdate", GameCommand::setDate }, + { "parksetentrancefee", GameCommand::setParkEntranceFee }, + { "parksetloan", GameCommand::setCurrentLoan }, + { "parksetname", GameCommand::setParkName }, + { "parksetparameter", GameCommand::setParkOpen }, + { "parksetresearchfunding", GameCommand::setResearchFunding }, + { "pausetoggle", GameCommand::togglePause }, + { "peeppickup", GameCommand::pickupGuest }, + { "peepspawnplace", GameCommand::placePeepSpawn }, + { "playerkick", GameCommand::kickPlayer }, + { "playersetgroup", GameCommand::setPlayerGroup }, + { "ridecreate", GameCommand::createRide }, + { "ridedemolish", GameCommand::demolishRide }, + { "rideentranceexitplace", GameCommand::placeRideEntranceOrExit }, + { "rideentranceexitremove", GameCommand::removeRideEntranceOrExit }, + { "ridefreezerating", GameCommand::freezeRideRating }, + { "ridesetappearance", GameCommand::setRideAppearance }, + { "ridesetcolourscheme", GameCommand::setColourScheme }, + { "ridesetname", GameCommand::setRideName }, + { "ridesetprice", GameCommand::setRidePrice }, + { "ridesetsetting", GameCommand::setRideSetting }, + { "ridesetstatus", GameCommand::setRideStatus }, + { "ridesetvehicle", GameCommand::setRideVehicles }, + { "scenariosetsetting", GameCommand::editScenarioOptions }, + { "cheatset", GameCommand::cheat }, + { "signsetname", GameCommand::setSignName }, + { "signsetstyle", GameCommand::setSignStyle }, + { "smallsceneryplace", GameCommand::placeScenery }, + { "smallsceneryremove", GameCommand::removeScenery }, + { "smallscenerysetcolour", GameCommand::setSceneryColour}, + { "stafffire", GameCommand::fireStaffMember }, + { "staffhire", GameCommand::hireNewStaffMember }, + { "staffsetcolour", GameCommand::setStaffColour }, + { "staffsetcostume", GameCommand::setStaffCostume }, + { "staffsetname", GameCommand::setStaffName }, + { "staffsetorders", GameCommand::setStaffOrders }, + { "staffsetpatrolarea", GameCommand::setStaffPatrol }, + { "surfacesetstyle", GameCommand::changeSurfaceStyle }, + { "tilemodify", GameCommand::modifyTile }, + { "trackdesign", GameCommand::placeTrackDesign }, + { "trackplace", GameCommand::placeTrack }, + { "trackremove", GameCommand::removeTrack }, + { "tracksetbrakespeed", GameCommand::setBrakesSpeed }, + { "wallplace", GameCommand::placeWall }, + { "wallremove", GameCommand::removeWall }, + { "wallsetcolour", GameCommand::setWallColour }, + { "waterlower", GameCommand::lowerWater }, + { "waterraise", GameCommand::raiseWater }, + { "watersetheight", GameCommand::setWaterHeight } }; // clang-format on @@ -1756,7 +1756,7 @@ void ScriptEngine::RunGameActionHooks(const GameActions::GameAction& action, Gam JSValue obj = JS_NewObject(ctx); auto actionId = action.GetType(); - if (action.GetType() == GameCommand::Custom) + if (action.GetType() == GameCommand::custom) { auto customAction = static_cast(action); JS_SetPropertyStr(ctx, obj, "action", JSFromStdString(ctx, customAction.GetId()));