Header menu logo Nu

GameDispatcher<'model, 'message, 'command> Type

The MMCC dispatcher for games.

Constructors

Constructor Description

GameDispatcher(initial)

Full Usage: GameDispatcher(initial)

Parameters:
    initial : 'model

Returns: GameDispatcher<'model, 'message, 'command>
initial : 'model
Returns: GameDispatcher<'model, 'message, 'command>

GameDispatcher(makeInitial)

Full Usage: GameDispatcher(makeInitial)

Parameters:
    makeInitial : World -> 'model

Returns: GameDispatcher<'model, 'message, 'command>
makeInitial : World -> 'model
Returns: GameDispatcher<'model, 'message, 'command>

Instance members

Instance member Description

this.Command

Full Usage: this.Command

Parameters:
    model : 'model
    command : 'command
    game : Game
    world : World

Modifiers: abstract

The command handler of the MMCC programming model.

model : 'model
command : 'command
game : Game
world : World

this.Content

Full Usage: this.Content

Parameters:
    model : 'model
    game : Game

Returns: ScreenContent list
Modifiers: abstract

The content specifier of the MMCC programming model.

model : 'model
game : Game
Returns: ScreenContent list

this.Definitions

Full Usage: this.Definitions

Parameters:
    model : 'model
    game : Game

Returns: DefinitionContent<Game> list
Modifiers: abstract

The game own MMCC definitions.

model : 'model
game : Game
Returns: DefinitionContent<Game> list

this.Edit

Full Usage: this.Edit

Parameters:
Returns: Signal list * 'model
Modifiers: abstract

Implements additional editing behavior for a game via the ImGui API.

model : 'model
op : EditOperation
game : Game
world : World
Returns: Signal list * 'model

this.GetFallbackModel

Full Usage: this.GetFallbackModel

Parameters:
Returns: 'model
Modifiers: abstract

The fallback model value.

modelSymbol : Symbol
game : Game
world : World
Returns: 'model

this.GetModel

Full Usage: this.GetModel

Parameters:
Returns: 'model

Get the game's model.

game : Game
world : World
Returns: 'model

this.Message

Full Usage: this.Message

Parameters:
    model : 'model
    message : 'message
    game : Game
    world : World

Returns: Signal list * 'model
Modifiers: abstract

The message handler of the MMCC programming model.

model : 'model
message : 'message
game : Game
world : World
Returns: Signal list * 'model

this.Model

Full Usage: this.Model

Parameters:
Returns: Lens<'model, Game>

The game's model lens.

game : Game
Returns: Lens<'model, Game>

this.Render

Full Usage: this.Render

Parameters:
Modifiers: abstract

Render the game using the given model.

model : 'model
renderPass : RenderPass
game : Game
world : World

this.SetModel

Full Usage: this.SetModel

Parameters:

Set the game's model.

model : 'model
game : Game
world : World

this.TruncateModel

Full Usage: this.TruncateModel

Parameters:
    model : 'model

Returns: 'model
Modifiers: abstract

Truncate the given model.

model : 'model
Returns: 'model

this.UntruncateModel

Full Usage: this.UntruncateModel

Parameters:
    current : 'model
    incoming : 'model

Returns: 'model
Modifiers: abstract

Untruncate the given model.

current : 'model
incoming : 'model
Returns: 'model

Type something to start searching.