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

Method SystemWorldServer

source/game/StarSystemWorldServer.cpp:12–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10namespace Star {
11
12SystemWorldServer::SystemWorldServer(Vec3I location, ClockConstPtr universeClock, CelestialDatabasePtr celestialDatabase)
13 : SystemWorld(std::move(universeClock), std::move(celestialDatabase)) {
14 m_location = std::move(location);
15
16 placeInitialObjects();
17
18 m_lastSpawn = time() - systemConfig().objectSpawnCycle;
19 m_objectSpawnTime = Random::randf(systemConfig().objectSpawnInterval[0], systemConfig().objectSpawnInterval[1]);
20 spawnObjects();
21}
22
23SystemWorldServer::SystemWorldServer(Json const& diskStore, ClockConstPtr universeClock, CelestialDatabasePtr celestialDatabase)
24 : SystemWorld(std::move(universeClock), std::move(celestialDatabase)) {

Callers

nothing calls this directly

Calls 7

randfFunction · 0.85
jsonToVec3IFunction · 0.85
getArrayMethod · 0.80
getDoubleMethod · 0.80
getMethod · 0.45
setMethod · 0.45
uuidMethod · 0.45

Tested by

no test coverage detected