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

Method reviveMainPlayer

source/game/StarWorldClient.cpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134void WorldClient::reviveMainPlayer() {
135 if (inWorld() && mainPlayerDead()) {
136 m_mainPlayer->revive(m_playerStart);
137 m_mainPlayer->init(this, m_entityMap->reserveEntityId(), EntityMode::Master);
138 m_entityMap->addEntity(m_mainPlayer);
139 }
140}
141
142bool WorldClient::respawnInWorld() const {
143 return m_respawnInWorld;

Callers 1

updateMethod · 0.80

Calls 4

reviveMethod · 0.80
reserveEntityIdMethod · 0.80
initMethod · 0.45
addEntityMethod · 0.45

Tested by

no test coverage detected