mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-18 04:23:20 +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
48 lines
1.4 KiB
C++
48 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 "../world/Footpath.h"
|
|
#include "Object.h"
|
|
|
|
namespace OpenRCT2
|
|
{
|
|
class FootpathRailingsObject final : public Object
|
|
{
|
|
public:
|
|
StringId NameStringId{};
|
|
uint32_t PreviewImageId{};
|
|
uint32_t BridgeImageId{};
|
|
uint32_t RailingsImageId{};
|
|
RailingEntrySupportType SupportType{};
|
|
uint8_t Flags{};
|
|
uint8_t ScrollingMode{};
|
|
colour_t Colour{};
|
|
PathRailingsDescriptor _descriptor = {};
|
|
|
|
public:
|
|
static constexpr ObjectType kObjectType = ObjectType::footpathRailings;
|
|
|
|
void ReadJson(IReadObjectContext* context, json_t& root) override;
|
|
void Load() override;
|
|
void Unload() override;
|
|
|
|
void DrawPreview(RenderTarget& rt, int32_t width, int32_t height) const override;
|
|
|
|
const PathRailingsDescriptor& GetDescriptor() const
|
|
{
|
|
return _descriptor;
|
|
}
|
|
|
|
private:
|
|
RailingEntrySupportType ParseSupportType(std::string_view s);
|
|
};
|
|
} // namespace OpenRCT2
|