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

Method removeEntity

source/game/StarEntityMap.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74}
75
76EntityPtr EntityMap::removeEntity(EntityId entityId) {
77 if (auto entity = m_spatialMap.remove(entityId)) {
78 m_uniqueMap.removeRight(entityId);
79 return entity.take();
80 }
81 return {};
82}
83
84size_t EntityMap::size() const {
85 return m_spatialMap.size();

Callers 7

clearTileEntitiesMethod · 0.45
despawnEntityMethod · 0.45
reapplyBiomeMethod · 0.45
reloadPlayerMethod · 0.45
tickMethod · 0.45
unloadSectorToLevelMethod · 0.45
clearStagehandMethod · 0.45

Calls 3

removeRightMethod · 0.80
removeMethod · 0.45
takeMethod · 0.45

Tested by

no test coverage detected