mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
* Move all object units into OpenRCT2 namespace * Dealing with fallout, part 1 * Dealing with fallout, part 2 * Dealing with fallout, part 3 * Apply clang-format in a few more places * Remove redundant 'virtual' keyword
39 lines
1.4 KiB
C++
39 lines
1.4 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"
|
|
|
|
class RideCreateAction final : public GameActionBase<GameCommand::CreateRide>
|
|
{
|
|
private:
|
|
ride_type_t _rideType{ kRideTypeNull };
|
|
OpenRCT2::ObjectEntryIndex _subType{ OpenRCT2::kObjectEntryIndexNull };
|
|
OpenRCT2::ObjectEntryIndex _entranceObjectIndex{ OpenRCT2::kObjectEntryIndexNull };
|
|
colour_t _colour1{ COLOUR_NULL };
|
|
colour_t _colour2{ COLOUR_NULL };
|
|
|
|
public:
|
|
RideCreateAction() = default;
|
|
RideCreateAction(
|
|
ride_type_t rideType, OpenRCT2::ObjectEntryIndex subType, colour_t colour1, colour_t colour2,
|
|
OpenRCT2::ObjectEntryIndex entranceStyleIndex);
|
|
|
|
void AcceptParameters(GameActionParameterVisitor& visitor) override;
|
|
|
|
ride_type_t GetRideType() const;
|
|
OpenRCT2::ObjectEntryIndex GetRideObject() const;
|
|
uint16_t GetActionFlags() const override;
|
|
|
|
void Serialise(DataSerialiser& stream) override;
|
|
OpenRCT2::GameActions::Result Query() const override;
|
|
OpenRCT2::GameActions::Result Execute() const override;
|
|
};
|