2018-12-05 21:33:45 +01:00
|
|
|
/*****************************************************************************
|
2020-07-21 15:04:34 +02:00
|
|
|
* Copyright (c) 2014-2020 OpenRCT2 developers
|
2018-12-05 21:33:45 +01:00
|
|
|
*
|
|
|
|
* 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 "Object.h"
|
|
|
|
|
|
|
|
namespace STATION_OBJECT_FLAGS
|
|
|
|
{
|
|
|
|
const uint32_t HAS_PRIMARY_COLOUR = 1 << 0;
|
|
|
|
const uint32_t HAS_SECONDARY_COLOUR = 1 << 1;
|
|
|
|
const uint32_t IS_TRANSPARENT = 1 << 2;
|
2021-07-27 16:33:03 +02:00
|
|
|
const uint32_t NO_PLATFORMS = 1 << 3;
|
2018-12-05 21:33:45 +01:00
|
|
|
} // namespace STATION_OBJECT_FLAGS
|
|
|
|
|
|
|
|
class StationObject final : public Object
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
rct_string_id NameStringId{};
|
|
|
|
uint32_t BaseImageId{};
|
|
|
|
uint32_t ShelterImageId{};
|
2021-02-20 19:40:32 +01:00
|
|
|
uint32_t Flags{};
|
|
|
|
int32_t Height{};
|
|
|
|
uint8_t ScrollingMode{};
|
2018-12-05 21:33:45 +01:00
|
|
|
|
2020-08-13 00:05:23 +02:00
|
|
|
void ReadJson(IReadObjectContext* context, json_t& root) override;
|
2018-12-05 21:33:45 +01:00
|
|
|
void Load() override;
|
|
|
|
void Unload() override;
|
|
|
|
|
|
|
|
void DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t height) const override;
|
|
|
|
};
|