mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add parameters to accept for StaffFireAction (#16816)
* Add parameters to accept for StaffFireAction * Bump plugin api version * Update src/openrct2/actions/StaffFireAction.cpp Co-authored-by: Ted John <ted@brambles.org> Co-authored-by: Ted John <ted@brambles.org>
This commit is contained in:
parent
a3700c832a
commit
e27d5f154b
|
@ -18,6 +18,11 @@ StaffFireAction::StaffFireAction(EntityId spriteId)
|
|||
{
|
||||
}
|
||||
|
||||
void StaffFireAction::AcceptParameters(GameActionParameterVisitor& visitor)
|
||||
{
|
||||
visitor.Visit("id", _spriteId);
|
||||
}
|
||||
|
||||
uint16_t StaffFireAction::GetActionFlags() const
|
||||
{
|
||||
return GameAction::GetActionFlags() | GameActions::Flags::AllowWhilePaused;
|
||||
|
|
|
@ -20,6 +20,8 @@ public:
|
|||
StaffFireAction() = default;
|
||||
StaffFireAction(EntityId spriteId);
|
||||
|
||||
void AcceptParameters(GameActionParameterVisitor& visitor) override;
|
||||
|
||||
uint16_t GetActionFlags() const override;
|
||||
|
||||
void Serialise(DataSerialiser& stream) override;
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace OpenRCT2
|
|||
|
||||
namespace OpenRCT2::Scripting
|
||||
{
|
||||
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 47;
|
||||
static constexpr int32_t OPENRCT2_PLUGIN_API_VERSION = 48;
|
||||
|
||||
// Versions marking breaking changes.
|
||||
static constexpr int32_t API_VERSION_33_PEEP_DEPRECATION = 33;
|
||||
|
|
Loading…
Reference in New Issue