mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-31 10:45:16 +01:00
Move remaining game actions logic from header to source (#13573)
* Moving all definitions from R...Actions to source * Moving all definitions from S...Actions to source * Moving all definitions from T...Actions to source * Moving all definitions from W...Actions to source
This commit is contained in:
@@ -37,6 +37,13 @@
|
||||
|
||||
using ParametersRange = std::pair<std::pair<int32_t, int32_t>, std::pair<int32_t, int32_t>>;
|
||||
|
||||
SetCheatAction::SetCheatAction(CheatType cheatType, int32_t param1, int32_t param2)
|
||||
: _cheatType(static_cast<int32_t>(cheatType))
|
||||
, _param1(param1)
|
||||
, _param2(param2)
|
||||
{
|
||||
}
|
||||
|
||||
void SetCheatAction::AcceptParameters(GameActionParameterVisitor& visitor)
|
||||
{
|
||||
visitor.Visit("type", _cheatType);
|
||||
@@ -44,6 +51,11 @@ void SetCheatAction::AcceptParameters(GameActionParameterVisitor& visitor)
|
||||
visitor.Visit("param2", _param2);
|
||||
}
|
||||
|
||||
uint16_t SetCheatAction::GetActionFlags() const
|
||||
{
|
||||
return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused;
|
||||
}
|
||||
|
||||
void SetCheatAction::Serialise(DataSerialiser& stream)
|
||||
{
|
||||
GameAction::Serialise(stream);
|
||||
|
||||
Reference in New Issue
Block a user