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

Method entity

source/game/StarEntityMap.cpp:149–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149EntityPtr EntityMap::entity(EntityId entityId) const {
150 auto entity = m_spatialMap.value(entityId);
151 starAssert(!entity || entity->entityId() == entityId);
152 return entity;
153}
154
155EntityPtr EntityMap::uniqueEntity(String const& uniqueId) const {
156 return entity(uniqueEntityId(uniqueId));

Callers 15

tickMasterMethod · 0.45
tickSlaveMethod · 0.45
doSetAnchorStateMethod · 0.45
updateTakenMethod · 0.45
getEntityMethod · 0.45
ServerClientContextMethod · 0.45
hitOtherMethod · 0.45
updateMethod · 0.45
setSourceEntityMethod · 0.45
processActionMethod · 0.45
updateMethod · 0.45
pushRemoteHitRequestMethod · 0.45

Calls 2

entityIdMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected