mirror of https://github.com/OpenRCT2/OpenRCT2.git
Do style fixes
This commit is contained in:
parent
b068331db2
commit
675b1b8cf4
|
@ -141,12 +141,12 @@ public:
|
|||
|
||||
typedef IGameAction *(*GameActionFactory)();
|
||||
|
||||
template<uint32 _TYPE, uint16 _ACTFLAGS>
|
||||
template<uint32 TType, uint16 TActionFlags>
|
||||
struct GameAction : public IGameAction
|
||||
{
|
||||
public:
|
||||
constexpr static uint32 Type = _TYPE;
|
||||
constexpr static uint16 ActionFlags = _ACTFLAGS;
|
||||
constexpr static uint32 Type = TType;
|
||||
constexpr static uint16 ActionFlags = TActionFlags;
|
||||
|
||||
private:
|
||||
uint32 _playerId; // Callee
|
||||
|
@ -240,7 +240,6 @@ void Register();
|
|||
IGameAction::Ptr Create(uint32 id);
|
||||
GameActionResult::Ptr Query(const IGameAction * action);
|
||||
GameActionResult::Ptr Execute(const IGameAction * action);
|
||||
|
||||
GameActionFactory Register(uint32 id, GameActionFactory action);
|
||||
|
||||
template<typename T>
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
||||
/*****************************************************************************
|
||||
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
||||
*
|
||||
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
||||
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
||||
*
|
||||
* OpenRCT2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* A full copy of the GNU General Public License can be found in licence.txt
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "PlaceParkEntranceAction.hpp"
|
||||
#include "SetParkEntranceFeeAction.hpp"
|
||||
#include "RideCreateAction.hpp"
|
||||
|
|
|
@ -1,11 +1,27 @@
|
|||
#pragma region Copyright (c) 2014-2016 OpenRCT2 Developers
|
||||
/*****************************************************************************
|
||||
* OpenRCT2, an open source clone of Roller Coaster Tycoon 2.
|
||||
*
|
||||
* OpenRCT2 is the work of many authors, a full list can be found in contributors.md
|
||||
* For more information, visit https://github.com/OpenRCT2/OpenRCT2
|
||||
*
|
||||
* OpenRCT2 is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* A full copy of the GNU General Public License can be found in licence.txt
|
||||
*****************************************************************************/
|
||||
#pragma endregion
|
||||
|
||||
#include "GameAction.h"
|
||||
#include "PlaceParkEntranceAction.hpp"
|
||||
#include "SetParkEntranceFeeAction.hpp"
|
||||
#include "RideCreateAction.hpp"
|
||||
#include "RideSetStatus.hpp"
|
||||
|
||||
namespace GameActions {
|
||||
|
||||
namespace GameActions
|
||||
{
|
||||
void Register()
|
||||
{
|
||||
Register<SetParkEntranceFeeAction>();
|
||||
|
@ -13,5 +29,4 @@ void Register()
|
|||
Register<RideCreateAction>();
|
||||
Register<RideSetStatusAction>();
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue