1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Introduce EntityId and refactor everything

This commit is contained in:
ζeh Matt
2022-02-12 23:31:06 +02:00
parent 9322f415a9
commit d7f5003943
97 changed files with 476 additions and 388 deletions

View File

@@ -194,7 +194,7 @@ namespace OpenRCT2::Scripting
if (info.SpriteType == ViewportInteractionItem::Entity && info.Entity != nullptr)
{
obj.Set("entityId", info.Entity->sprite_index);
obj.Set("entityId", info.Entity->sprite_index.ToUnderlying());
}
else if (info.Element != nullptr)
{