mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
/*****************************************************************************
|
|
* Copyright (c) 2014-2025 OpenRCT2 developers
|
|
*
|
|
* For a complete list of all authors, please refer to contributors.md
|
|
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
|
|
*
|
|
* OpenRCT2 is licensed under the GNU General Public License version 3.
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
#include "GameAction.h"
|
|
|
|
namespace OpenRCT2::GameActions
|
|
{
|
|
class BannerSetNameAction final : public GameActionBase<GameCommand::SetBannerName>
|
|
{
|
|
private:
|
|
BannerIndex _bannerIndex{ BannerIndex::GetNull() };
|
|
std::string _name;
|
|
|
|
public:
|
|
BannerSetNameAction() = default;
|
|
BannerSetNameAction(BannerIndex bannerIndex, const std::string& name);
|
|
|
|
void AcceptParameters(GameActionParameterVisitor&) final;
|
|
|
|
uint16_t GetActionFlags() const override;
|
|
|
|
void Serialise(DataSerialiser& stream) override;
|
|
Result Query(GameState_t& gameState) const override;
|
|
Result Execute(GameState_t& gameState) const override;
|
|
};
|
|
} // namespace OpenRCT2::GameActions
|