Table of Contents

Struct WaterSample

Namespace
FishMMO.Shared.Weather
Assembly
FishMMO.Shared.dll

The water over a place at a tick.

public struct WaterSample
Inherited Members

Fields

Body

What stands here; None where nothing does.

public WaterBody Body

Field Value

WaterBody

Current

The water's horizontal velocity, m/s: a river's current; zero on a lake or the sea.

public Vector2 Current

Field Value

Vector2

Surface

The still surface, world metres; negative infinity where there is no water.

public float Surface

Field Value

float

Properties

Dry

public static WaterSample Dry { get; }

Property Value

WaterSample

Present

True where any water stands over the place (though the ground may still stand above it: compare).

public bool Present { get; }

Property Value

bool

Methods

DepthOf(float)

How far under the surface a height is, metres; negative above it.

public float DepthOf(float y)

Parameters

y float

Returns

float