Function: hasSurfaceLiquid()
ts
function hasSurfaceLiquid(config): boolean;Single source of truth for "does this body carry a surface liquid?".
Stars never carry a surface liquid — there is no solid surface for one to sit on. Every other body type (rocky, gaseous, metallic and any future planetary archetype) honours liquidState: a metallic body with liquidState: 'liquid' produces a liquid metal surface, a gaseous body with liquidState: 'liquid' produces a deep ocean under its envelope, and so on. Picking when that makes sense (composition, temperature, biome) is a caller-side decision; the lib only carries the resolved state.
Parameters
| Parameter | Type |
|---|---|
config | { type: BodyType; liquidState?: "liquid" | "frozen" | "none"; } |
config.type | BodyType |
config.liquidState? | "liquid" | "frozen" | "none" |
Returns
boolean