Header menu logo Nu

WorldState Type

The world state, in a functional programming sense. This type is immutable enough to allows efficient snapshots and later restoration, such as for undo and redo, with very little additional code.

Record fields

Record Field Description

AmbientState

Full Usage: AmbientState

Field type: World AmbientState
Field type: World AmbientState

EntitiesIndexed

Full Usage: EntitiesIndexed

Field type: UMap<(Group * Type), Entity USet>
Field type: UMap<(Group * Type), Entity USet>

EntityCachedOpt

Full Usage: EntityCachedOpt

Field type: KeyedCache<KeyValuePair<Entity, SUMap<Entity, EntityState>>, EntityState>
Field type: KeyedCache<KeyValuePair<Entity, SUMap<Entity, EntityState>>, EntityState>

EntityMounts

Full Usage: EntityMounts

Field type: UMap<Entity, Entity USet>
Field type: UMap<Entity, Entity USet>

EntityStates

Full Usage: EntityStates

Field type: SUMap<Entity, EntityState>
Field type: SUMap<Entity, EntityState>

EventGraph

Full Usage: EventGraph

Field type: EventGraph
Field type: EventGraph

GameState

Full Usage: GameState

Field type: GameState
Field type: GameState

GroupStates

Full Usage: GroupStates

Field type: UMap<Group, GroupState>
Field type: UMap<Group, GroupState>

Octree

Full Usage: Octree

Field type: Octree<Entity>
Field type: Octree<Entity>

Quadtree

Full Usage: Quadtree

Field type: Quadtree<Entity>
Field type: Quadtree<Entity>

ScreenStates

Full Usage: ScreenStates

Field type: UMap<Screen, ScreenState>
Field type: UMap<Screen, ScreenState>

Simulants

Full Usage: Simulants

Field type: UMap<Simulant, Simulant USet option>
Field type: UMap<Simulant, Simulant USet option>

Subsystems

Full Usage: Subsystems

Field type: Subsystems
Field type: Subsystems

WorldExtension

Full Usage: WorldExtension

Field type: WorldExtension
Field type: WorldExtension

Type something to start searching.