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

Method entityKeepAlive

source/game/StarWorldGeneration.cpp:694–696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694bool WorldGenerator::entityKeepAlive(WorldStorage*, EntityPtr const& entity) const {
695 return entity->isSlave() || (entity->isMaster() && entity->keepAlive());
696}
697
698bool WorldGenerator::entityPersistent(WorldStorage*, EntityPtr const& entity) const {
699 return entity->isMaster() && entity->persistent();

Callers 2

tickMethod · 0.80
unloadSectorToLevelMethod · 0.80

Calls 3

isSlaveMethod · 0.80
isMasterMethod · 0.80
keepAliveMethod · 0.45

Tested by

no test coverage detected