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

Method initEntity

source/game/StarWorldGeneration.cpp:680–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678}
679
680void WorldGenerator::initEntity(WorldStorage*, EntityId entityId, EntityPtr const& entity) {
681 entity->init(m_worldServer, entityId, EntityMode::Master);
682 if (auto tileEntity = as<TileEntity>(entity))
683 m_worldServer->updateTileEntityTiles(tileEntity, false, false);
684}
685
686void WorldGenerator::destructEntity(WorldStorage*, EntityPtr const& entity) {
687 if (entity->isSlave())

Callers 1

loadSectorToLevelMethod · 0.80

Calls 2

updateTileEntityTilesMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected