Skip to content

Class WorldRef

Namespace: Apogee.Host.Editing
Assembly: Apogee.Host.dll

The world a command acts on, looked up each time it runs: an editor replaces its world (a play run, then back to editing) and the history has to follow it. A converts to one that is always that world.

public sealed class WorldRef

Inheritance

object ← WorldRef

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

WorldRef(Func<World>)

The world a command acts on, looked up each time it runs: an editor replaces its world (a play run, then back to editing) and the history has to follow it. A converts to one that is always that world.

public WorldRef(Func<World> get)

Parameters

get Func<World>

Properties

Current

public World Current { get; }

Property Value

World

Operators

implicit operator WorldRef(World)

public static implicit operator WorldRef(World world)

Parameters

world World

Returns

WorldRef