1
0
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:
Gymnasiast
2021-09-12 18:33:27 +02:00
parent 3e1544aac8
commit 1426010652
2 changed files with 8 additions and 8 deletions

View File

@@ -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();

View File

@@ -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;