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

Method playerRevivePosition

source/game/StarWorldServerThread.cpp:145–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145Maybe<Vec2F> WorldServerThread::playerRevivePosition(ConnectionId clientId) const {
146 try {
147 RecursiveMutexLocker locker(m_mutex);
148 if (auto player = m_worldServer->clientPlayer(clientId))
149 return player->position() + player->feetOffset();
150 return {};
151 } catch (std::exception const& e) {
152 Logger::error("WorldServerThread exception caught: {}", outputException(e, true));
153 m_errorOccurred = true;
154 return {};
155 }
156}
157
158Maybe<pair<String, String>> WorldServerThread::pullNewPlanetType() {
159 try {

Callers 3

warpPlayersMethod · 0.80
resolveWarpActionMethod · 0.80
doDisconnectionMethod · 0.80

Calls 5

errorFunction · 0.85
clientPlayerMethod · 0.80
outputExceptionFunction · 0.50
positionMethod · 0.45
feetOffsetMethod · 0.45

Tested by

no test coverage detected