Table of Contents

Class ScenePath

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

One way through a scene: a polyline on the finished ground with its width, wear and surface along it.

[Serializable]
public class ScenePath
Inheritance
ScenePath
Inherited Members

Remarks

Points every couple of metres, at the ground's height after the path was carved, so the polyline is the path: the client's path surface (ScenePathField) rasterises it, the atlas draws it and the scatter keeps trees off it with no other data.

Wear is how kept the way is, 0 grown over … 1 bare: a spur fades the farther it runs from the network it left, so the last stretch to a ruin is all but lost in the grass.

Fields

Class

public ScenePathClass Class

Field Value

ScenePathClass

Flags

Per-point flags (ScenePathPointFlags).

public byte[] Flags

Field Value

byte[]

Form

How the way runs: routed (every way before 2026-10-26) or one of the straight roads (ScenePathForm).

public ScenePathForm Form

Field Value

ScenePathForm

FromEntrance

The bearing (degrees, in the site's own frame: 0 its heading) at which the path enters each end's site, or NaN where the end is not a site or the site takes a path from any side. A walled settlement opens its gates there.

public float FromEntrance

Field Value

float

FromId

The site the path leaves from, or -1 (it joins another path).

public int FromId

Field Value

int

HalfWidth

Half the trodden width at each point, metres.

public float[] HalfWidth

Field Value

float[]

Id

public int Id

Field Value

int

Points

public Vector3[] Points

Field Value

Vector3[]

Surface

The surface at each point (ScenePathSurface).

public byte[] Surface

Field Value

byte[]

ToEntrance

public float ToEntrance

Field Value

float

ToId

The site the path leads to, or -1.

public int ToId

Field Value

int

Wear

How kept the way is at each point, 0 … 1.

public float[] Wear

Field Value

float[]

Properties

Count

public int Count { get; }

Property Value

int

Length

Length along the ground plane, metres.

public float Length { get; }

Property Value

float

MaxHalfWidth

The widest half width along the path.

public float MaxHalfWidth { get; }

Property Value

float

Methods

FlagsAt(int)

public ScenePathPointFlags FlagsAt(int i)

Parameters

i int

Returns

ScenePathPointFlags