1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-20 14:23:08 +01:00

Use C++ types

This commit is contained in:
Hielke Morsink
2018-07-31 16:25:50 +02:00
committed by Ted John
parent c064614280
commit c37d7d859e
12 changed files with 66 additions and 64 deletions

View File

@@ -40,23 +40,23 @@ namespace OpenRCT2::Scripting
return DukValue::take_from_stack(ctx);
}
sint32 rides_get()
int32_t rides_get()
{
return MAX_RIDES;
}
sint32 things_get()
int32_t things_get()
{
return MAX_SPRITES;
}
std::shared_ptr<ScTile> getTile(sint32 x, sint32 y)
std::shared_ptr<ScTile> getTile(int32_t x, int32_t y)
{
auto firstElement = map_get_first_element_at(x, y);
return std::make_shared<ScTile>(firstElement);
}
std::shared_ptr<ScThing> getThing(sint32 id)
std::shared_ptr<ScThing> getThing(int32_t id)
{
if (id >= 0 && id < MAX_SPRITES)
{