MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / entityType

Method entityType

source/game/scripting/StarWorldLuaBindings.cpp:1356–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)) {

Callers 6

inspectionLevelMethod · 0.45
inspectMethod · 0.45
entityQueryImplFunction · 0.45
makeWorldCallbacksFunction · 0.45
setUniqueIdMethod · 0.45
makeEntityCallbacksMethod · 0.45

Calls 2

createStringMethod · 0.80
entityMethod · 0.45

Tested by 2

inspectionLevelMethod · 0.36
inspectMethod · 0.36