Files
OpenRCT2-Web/src/openrct2/object/PathAdditionObject.h
T

37 lines
1.1 KiB
C++
Raw Normal View History

2016-06-25 18:05:24 +01:00
/*****************************************************************************
2026-01-05 14:42:59 +01:00
* Copyright (c) 2014-2026 OpenRCT2 developers
2016-06-25 18:05:24 +01:00
*
2018-06-15 14:07:34 +02:00
* For a complete list of all authors, please refer to contributors.md
* Interested in contributing? Visit https://github.com/OpenRCT2/OpenRCT2
2016-06-25 18:05:24 +01:00
*
2018-06-15 14:07:34 +02:00
* OpenRCT2 is licensed under the GNU General Public License version 3.
2016-06-25 18:05:24 +01:00
*****************************************************************************/
#pragma once
2023-05-09 21:08:25 +02:00
#include "PathAdditionEntry.h"
2018-06-22 23:03:20 +02:00
#include "SceneryObject.h"
2016-06-25 18:05:24 +01:00
namespace OpenRCT2
2016-06-25 18:05:24 +01:00
{
class PathAdditionObject final : public SceneryObject
2018-06-22 23:03:20 +02:00
{
private:
PathAdditionEntry _legacyType = {};
2016-06-25 18:05:24 +01:00
public:
static constexpr ObjectType kObjectType = ObjectType::pathAdditions;
2016-06-25 18:05:24 +01:00
void* GetLegacyData() override
{
return &_legacyType;
}
void ReadLegacy(IReadObjectContext* context, IStream* stream) override;
void ReadJson(IReadObjectContext* context, json_t& root) override;
void Load() override;
void Unload() override;
2025-12-26 12:58:33 +01:00
void DrawPreview(Drawing::RenderTarget& rt, int32_t width, int32_t height) const override;
};
} // namespace OpenRCT2