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

Method inWorld

source/game/interfaces/StarEntity.cpp:129–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129bool Entity::inWorld() const {
130 if (m_world) {
131 starAssert(m_world && m_entityId != NullEntityId && m_entityMode);
132 return true;
133 } else {
134 starAssert(!m_world && m_entityId == NullEntityId && !m_entityMode);
135 return false;
136 }
137}
138
139World* Entity::world() const {
140 if (!m_world)

Callers 7

makeWorldCallbacksFunction · 0.45
spawnItemMethod · 0.45
spawnMonsterMethod · 0.45
spawnNpcMethod · 0.45
spawnStagehandMethod · 0.45
spawnProjectileMethod · 0.45
spawnVehicleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected