Header menu logo Nu

GameState Type

Hosts the ongoing state of a game.

Record fields

Record Field Description

Content

Full Usage: Content

Field type: GameContent
Field type: GameContent

DesiredScreen

Full Usage: DesiredScreen

Field type: DesiredScreen
Field type: DesiredScreen

Dispatcher

Full Usage: Dispatcher

Field type: GameDispatcher
Field type: GameDispatcher

Eye2dCenter

Full Usage: Eye2dCenter

Field type: Vector2
Field type: Vector2

Eye2dSize

Full Usage: Eye2dSize

Field type: Vector2
Field type: Vector2

Eye3dCenter

Full Usage: Eye3dCenter

Field type: Vector3
Field type: Vector3

Eye3dFieldOfView

Full Usage: Eye3dFieldOfView

Field type: single
Field type: single

Eye3dFrustumExterior

Full Usage: Eye3dFrustumExterior

Field type: Frustum
Field type: Frustum

Eye3dFrustumImposter

Full Usage: Eye3dFrustumImposter

Field type: Frustum
Field type: Frustum

Eye3dFrustumInterior

Full Usage: Eye3dFrustumInterior

Field type: Frustum
Field type: Frustum

Eye3dRotation

Full Usage: Eye3dRotation

Field type: Quaternion
Field type: Quaternion

Id

Full Usage: Id

Field type: uint64
Field type: uint64

Model

Full Usage: Model

Field type: DesignerProperty
Modifiers: mutable
Field type: DesignerProperty

Order

Full Usage: Order

Field type: int64
Field type: int64

ScreenTransitionDestinationOpt

Full Usage: ScreenTransitionDestinationOpt

Field type: Screen option
Field type: Screen option

SelectedScreenOpt

Full Usage: SelectedScreenOpt

Field type: Screen option
Field type: Screen option

Xtension

Full Usage: Xtension

Field type: Xtension
Modifiers: mutable
Field type: Xtension

Static members

Static member Description

GameState.attachProperty name property gameState

Full Usage: GameState.attachProperty name property gameState

Parameters:
Returns: GameState

Attach an xtension property.

name : string
property : Property
gameState : GameState
Returns: GameState

GameState.copy this

Full Usage: GameState.copy this

Parameters:
Returns: GameState

Copy a game state such as when, say, you need it to be mutated with reflection but you need to preserve persistence.

this : GameState
Returns: GameState

GameState.detachProperty name gameState

Full Usage: GameState.detachProperty name gameState

Parameters:
Returns: GameState

Detach an xtension property.

name : string
gameState : GameState
Returns: GameState

GameState.getProperty propertyName gameState

Full Usage: GameState.getProperty propertyName gameState

Parameters:
    propertyName : string
    gameState : GameState

Returns: Property

Get an xtension property and its type information.

propertyName : string
gameState : GameState
Returns: Property

GameState.make dispatcher

Full Usage: GameState.make dispatcher

Parameters:
Returns: GameState

Make a game state value.

dispatcher : GameDispatcher
Returns: GameState

GameState.setProperty propertyName property gameState

Full Usage: GameState.setProperty propertyName property gameState

Parameters:
Returns: GameState

Set an xtension property with explicit type information.

propertyName : string
property : Property
gameState : GameState
Returns: GameState

GameState.tryGetProperty (propertyName, gameState, propertyRef)

Full Usage: GameState.tryGetProperty (propertyName, gameState, propertyRef)

Parameters:
Returns: bool

Try to get an xtension property and its type information.

propertyName : string
gameState : GameState
propertyRef : outref<Property>
Returns: bool

GameState.trySetProperty propertyName property gameState

Full Usage: GameState.trySetProperty propertyName property gameState

Parameters:
Returns: bool * GameState

Try to set an xtension property with explicit type information.

propertyName : string
property : Property
gameState : GameState
Returns: bool * GameState

Type something to start searching.