| 1354 | } |
| 1355 | |
| 1356 | Maybe<LuaString> WorldEntityCallbacks::entityType(World* world, LuaEngine& engine, EntityId entityId) { |
| 1357 | if (auto entity = world->entity(entityId)) |
| 1358 | return engine.createString(EntityTypeNames.getRight(entity->entityType())); |
| 1359 | return {}; |
| 1360 | } |
| 1361 | |
| 1362 | Maybe<Vec2F> WorldEntityCallbacks::entityPosition(World* world, EntityId entityId) { |
| 1363 | if (auto entity = world->entity(entityId)) { |