Table of Contents

Class SceneCloudWorld

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

A scene cut on a gas giant (Celestial.CloudWorld): islands of rock floating over a cloud deck with nothing under it. Written by the cut, kept by the server and every client, and found by scene (TryGet(Scene, out SceneCloudWorld)) by what has to know: the sky (the deck it draws below the islands), the server (who has fallen into it), the airships (the docks they sail between).

[DisallowMultipleComponent]
public sealed class SceneCloudWorld : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
SceneCloudWorld
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.didStart
MonoBehaviour.didAwake
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.CompareTag(TagHandle)
Component.transform
Component.transformHandle
Component.gameObject
Component.tag
Object.GetEntityId()
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.FindObjectsByType<T>()
Object.FindObjectsByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Remarks

Heights are y, as everywhere else: scene metres above the body's datum. The deck's top is at DeckTop, the islands stand between IslandFloor and IslandCeiling, and a character that sinks past DeathAltitude is lost in the cloud: it dies, and respawns as from any death.

Keyed by scene, as SceneClimbables is: a scene server runs several world scenes at once, each in its own physics scene, and a character asks with its own.

Fields

Bridges

public SceneCloudWorld.Crossing[] Bridges

Field Value

Crossing[]

DeathAltitude

[Tooltip("A character below this y has fallen into the cloud: it dies and respawns.")]
public float DeathAltitude

Field Value

float

DeckDepth

[Tooltip("How deep the deck is drawn below its top, metres: past this the cloud is only dark.")]
public float DeckDepth

Field Value

float

DeckTop

[Tooltip("The top of the cloud deck, y: below it is cloud, with no floor.")]
public float DeckTop

Field Value

float

Docks

public SceneCloudWorld.Dock[] Docks

Field Value

Dock[]

IslandCeiling

[Tooltip("The highest island ground, y.")]
public float IslandCeiling

Field Value

float

IslandFloor

[Tooltip("The lowest island ground, y.")]
public float IslandFloor

Field Value

float

Islands

public SceneCloudWorld.Island[] Islands

Field Value

Island[]

ObjectName

The object the cut puts this on.

public const string ObjectName = "Cloud World"

Field Value

string

StageLights

[Tooltip("What the landing stages' lights give off (2026-10-25), in the scene's frame; written with the stages by the cut.")]
public SceneEmitter[] StageLights

Field Value

SceneEmitter[]

Properties

Any

True when any loaded scene is a cloud world.

public static bool Any { get; }

Property Value

bool

First

The first loaded cloud world, for the client's sky, which draws one world at a time; null when none is loaded.

public static SceneCloudWorld First { get; }

Property Value

SceneCloudWorld

Version

Bumped whenever a scene's cloud world comes or goes, so a reader can cache what it found.

public static int Version { get; }

Property Value

int

Methods

IsLost(Scene, Vector3)

True when a point in scene is below the depth a cloud world loses whoever reaches it.

public static bool IsLost(Scene scene, Vector3 position)

Parameters

scene Scene
position Vector3

Returns

bool

IslandAt(float, float)

The island whose outline's reach covers a horizontal position nearest its centre; -1 when none does.

public int IslandAt(float x, float z)

Parameters

x float
z float

Returns

int

Lights()

Every light of the cloud world's own ways: each bridge's end lights, then the landing stages'.

public List<SceneEmitter> Lights()

Returns

List<SceneEmitter>

TryGet(Scene, out SceneCloudWorld)

The cloud world scene is, if it is one.

public static bool TryGet(Scene scene, out SceneCloudWorld world)

Parameters

scene Scene
world SceneCloudWorld

Returns

bool