OpenRCT2/src/openrct2/scripting/bindings/ride/ScRideStation.hpp

63 lines
1.6 KiB
C++
Raw Normal View History

2021-08-09 20:20:40 +02:00
/*****************************************************************************
* Copyright (c) 2021 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
#ifdef ENABLE_SCRIPTING
# include "../../../Context.h"
# include "../../../common.h"
# include "../../../ride/Ride.h"
# include "../../Duktape.hpp"
namespace OpenRCT2::Scripting
{
class ScRideStation
{
private:
RideId _rideId = RideId::GetNull();
2021-08-09 20:20:40 +02:00
StationIndex _stationIndex{};
public:
2022-01-19 14:17:11 +01:00
ScRideStation(RideId rideId, StationIndex stationIndex);
2021-08-09 20:20:40 +02:00
static void Register(duk_context* ctx);
private:
DukValue start_get() const;
void start_set(const DukValue& value);
int32_t length_get() const;
void length_set(int32_t value);
DukValue entrance_get() const;
void entrance_set(const DukValue& value);
DukValue exit_get() const;
void exit_set(const DukValue& value);
2023-04-21 22:45:35 +02:00
int32_t segmentLength_get() const;
void segmentLength_set(int32_t value);
int32_t segmentTime_get() const;
void segmentTime_set(int32_t value);
int32_t queueLength_get() const;
void queueLength_set(int32_t value);
int32_t queueTime_get() const;
void queueTime_set(int32_t value);
2021-08-09 20:20:40 +02:00
RideStation* GetRideStation() const;
};
} // namespace OpenRCT2::Scripting
#endif