mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-16 11:33:03 +01:00
Plugin: use ObjectEntryIndex for music and entrance style
This commit is contained in:
@@ -252,13 +252,13 @@ namespace OpenRCT2::Scripting
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t ScRide::stationStyle_get() const
|
||||
ObjectEntryIndex ScRide::stationStyle_get() const
|
||||
{
|
||||
auto ride = GetRide();
|
||||
return ride != nullptr ? ride->entrance_style : 0;
|
||||
}
|
||||
|
||||
void ScRide::stationStyle_set(uint8_t value)
|
||||
void ScRide::stationStyle_set(ObjectEntryIndex value)
|
||||
{
|
||||
ThrowIfGameStateNotMutable();
|
||||
auto ride = GetRide();
|
||||
@@ -268,13 +268,13 @@ namespace OpenRCT2::Scripting
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t ScRide::music_get() const
|
||||
ObjectEntryIndex ScRide::music_get() const
|
||||
{
|
||||
auto ride = GetRide();
|
||||
return ride != nullptr ? ride->music : 0;
|
||||
}
|
||||
|
||||
void ScRide::music_set(uint8_t value)
|
||||
void ScRide::music_set(ObjectEntryIndex value)
|
||||
{
|
||||
ThrowIfGameStateNotMutable();
|
||||
auto ride = GetRide();
|
||||
|
||||
@@ -109,13 +109,13 @@ namespace OpenRCT2::Scripting
|
||||
|
||||
void colourSchemes_set(const std::vector<DukValue>& value);
|
||||
|
||||
uint8_t stationStyle_get() const;
|
||||
ObjectEntryIndex stationStyle_get() const;
|
||||
|
||||
void stationStyle_set(uint8_t value);
|
||||
void stationStyle_set(ObjectEntryIndex value);
|
||||
|
||||
uint8_t music_get() const;
|
||||
ObjectEntryIndex music_get() const;
|
||||
|
||||
void music_set(uint8_t value);
|
||||
void music_set(ObjectEntryIndex value);
|
||||
|
||||
std::vector<std::shared_ptr<ScRideStation>> stations_get() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user