1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 07:44:38 +01:00
Files
OpenRCT2/src/openrct2/object/FootpathRailingsObject.h
Michael Steenbeek 8fe2d7de1f Rename Object and TileElement type constant (#23030)
* Rename Object::objectType to  Object::kObjectType

* Rename TileElement::ElementType to TileElement::kElementType
2024-10-20 07:10:55 +01:00

45 lines
1.3 KiB
C++

/*****************************************************************************
* Copyright (c) 2014-2024 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"
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(DrawPixelInfo& dpi, int32_t width, int32_t height) const override;
const PathRailingsDescriptor& GetDescriptor() const
{
return _descriptor;
}
private:
RailingEntrySupportType ParseSupportType(std::string_view s);
};