Skip to content

WorldStateDefinition

public sealed class WorldStateDefinition

Namespace MapExpansions

A named, reversible local world state. The consumer saves and replicates its id.

public string Id { get; set; }
public List<ObjectRule> Rules { get; }

Type: ObjectRule

public List<CopyDefinition> Copies { get; }

Type: CopyDefinition

public List<ObjectMoveDefinition> Moves { get; }

Type: ObjectMoveDefinition

Main-world objects that stand elsewhere in this state, for fixtures that must keep working.

public List<PropertyExtensionDefinition> PropertyExtensions { get; }

Type: PropertyExtensionDefinition

public Bounds? NavigationBounds { get; set; }

World-space volume baked by the host for the required NPC agent profiles when this state is applied.

public List<Vector3> NavigationProbes { get; }

Ordered world-space points which must have a complete walking path after baking.

public List<string> NavigationAgents { get; }

Exact registered agent names this state must support. Empty requires every registered profile.

public LayerSource Layer { get; set; }

Type: LayerSource

An embedded editor layer containing copies, rules and boxes for this state.

public WorldStateDefinition UseLayer(
System.Reflection.Assembly assembly,
string resourceName)