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

Method LiquidWorld

source/game/StarWorldGeneration.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static int const PlantAdjustmentLimit = 2;
32
33LiquidWorld::LiquidWorld(WorldServer* world) {
34 m_worldServer = world;
35 auto& root = Root::singleton();
36 m_liquidsDatabase = root.liquidsDatabase();
37 m_materialDatabase = root.materialDatabase();
38}
39
40Vec2I LiquidWorld::uniqueLocation(Vec2I const& location) const {
41 return m_worldServer->geometry().xwrap(location);

Callers

nothing calls this directly

Calls 3

singletonClass · 0.85
liquidsDatabaseMethod · 0.80
materialDatabaseMethod · 0.80

Tested by

no test coverage detected