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

Method spawnLiquid

source/game/scripting/StarWorldLuaBindings.cpp:1078–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1076 }
1077
1078 bool WorldCallbacks::spawnLiquid(World* world, Vec2F const& position, LiquidId liquid, float quantity) {
1079 return world->modifyTile(Vec2I::floor(position), PlaceLiquid{liquid, quantity}, true);
1080 }
1081
1082 Maybe<LiquidLevel> WorldCallbacks::destroyLiquid(World* world, Vec2F const& position) {
1083 auto liquidLevel = world->liquidLevel(Vec2I::floor(position));

Callers

nothing calls this directly

Calls 1

modifyTileMethod · 0.45

Tested by

no test coverage detected