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

Method spawnTargetValid

source/game/StarWorldServer.cpp:206–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206bool WorldServer::spawnTargetValid(SpawnTarget const& spawnTarget) const {
207 if (spawnTarget.is<SpawnTargetUniqueEntity>())
208 return (bool)m_entityMap->get<WarpTargetEntity>(m_worldStorage->loadUniqueEntity(spawnTarget.get<SpawnTargetUniqueEntity>()));
209 return true;
210}
211
212bool WorldServer::addClient(ConnectionId clientId, SpawnTarget const& spawnTarget, bool isLocal, bool isAdmin, NetCompatibilityRules netRules) {
213 if (m_clientInfo.contains(clientId))

Callers 1

warpPlayersMethod · 0.45

Calls 1

loadUniqueEntityMethod · 0.45

Tested by

no test coverage detected