Table of Contents

Struct SceneCaveLifeSpot

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

One place in a carved cave its animals live at, baked by the cut from the cave's own field (the cave dressing): a flat patch of floor, wall or roof, a box of clear air, a pool, a mouth. The ambient life places its cave creatures on these and keeps them to them, so it needs no ray against the cave's rock, and the cave's floors under and over each other are no puzzle to it (the terrain's one height a place is useless underground).

[Serializable]
public struct SceneCaveLifeSpot
Inherited Members

Remarks

A patch is flat. A floor, wall or roof patch was measured round its centre and kept only as wide as the rock lies within a few centimetres of its plane, so whatever walks or hangs on it, anywhere within Extent.x of Position on the plane through it square to Normal, stands on the rock.

Plain data: read in builds, by the client only (nothing here is gameplay).

Fields

Biome

The cave biome dressing the inside of its cave (2026-10-25, phase I2n: its biome template's id, BiomeRegistry.IDOf), where the biome it opens in links one (a limestone cave in karst country is the Cave inside); 0 where the cave is its host land's, read as the biome map's there, as before.

public int Biome

Field Value

int

Dark

How far from the daylight it is, 0 in the mouth's light .. 1 past the twilight, in the dark for good.

public float Dark

Field Value

float

Extent

Metres. A patch: x how far it is flat round its centre, y the air over it (to the roof, or across to the far wall). A box (and a glow): its half-extents along Yaw, up and across. A pool: x its radius, y the water's depth at its middle. A mouth: x the bore's radius, z how far the run back in from Position is clear.

public Vector3 Extent

Field Value

Vector3

Flags

public SceneCaveLifeFlags Flags

Field Value

SceneCaveLifeFlags

Form

public SceneCaveForm Form

Field Value

SceneCaveForm

Kind

public SceneCaveLifeKind Kind

Field Value

SceneCaveLifeKind

Normal

Unit: out of the rock into the air at a patch (up off a floor, out of a wall, down from a roof); out of the cave at a mouth; up for a box, a pool and a glow.

public Vector3 Normal

Field Value

Vector3

Position

World metres: a patch's centre on the rock; a box's middle; a pool's surface over its deepest; a mouth's bore.

public Vector3 Position

Field Value

Vector3

SiteId

The site (Id) whose cave system it is in.

public int SiteId

Field Value

int

Yaw

Degrees about +y: a box's heading (the chamber's or the passage's).

public float Yaw

Field Value

float