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

Method warpPlayer

source/test/StarTestUniverse.cpp:42–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42void TestUniverse::warpPlayer(WorldId worldId) {
43 m_client->warpPlayer(WarpToWorld(worldId), true);
44 while (m_mainPlayer->isTeleporting() || m_client->playerWorld().empty()) {
45 m_client->update(0.016f);
46 Thread::sleep(16);
47 }
48}
49
50WorldId TestUniverse::currentPlayerWorld() const {
51 return m_client->clientContext()->playerWorldId();

Callers 5

teleportMethod · 0.45
startMissionMethod · 0.45
warpToOrbitedWorldMethod · 0.45
warpToMethod · 0.45
TESTFunction · 0.45

Calls 5

WarpToWorldClass · 0.85
isTeleportingMethod · 0.80
emptyMethod · 0.45
playerWorldMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected