Header menu logo Nu

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

The MMCC dispatcher for entities.

Constructors

Constructor Description

EntityDispatcher(is2d, physical, lightProbe, light, initial)

Full Usage: EntityDispatcher(is2d, physical, lightProbe, light, initial)

Parameters:
    is2d : bool
    physical : bool
    lightProbe : bool
    light : bool
    initial : 'model

Returns: EntityDispatcher<'model, 'message, 'command>
is2d : bool
physical : bool
lightProbe : bool
light : bool
initial : 'model
Returns: EntityDispatcher<'model, 'message, 'command>

EntityDispatcher(is2d, physical, lightProbe, light, makeInitial)

Full Usage: EntityDispatcher(is2d, physical, lightProbe, light, makeInitial)

Parameters:
    is2d : bool
    physical : bool
    lightProbe : bool
    light : bool
    makeInitial : World -> 'model

Returns: EntityDispatcher<'model, 'message, 'command>
is2d : bool
physical : bool
lightProbe : bool
light : bool
makeInitial : World -> 'model
Returns: EntityDispatcher<'model, 'message, 'command>

Instance members

Instance member Description

this.Command

Full Usage: this.Command

Parameters:
    model : 'model
    command : 'command
    entity : Entity
    world : World

Modifiers: abstract

The command handler of the MMCC programming model.

model : 'model
command : 'command
entity : Entity
world : World

this.Content

Full Usage: this.Content

Parameters:
    model : 'model
    entity : Entity

Returns: EntityContent list
Modifiers: abstract

The content specifier of the MMCC programming model.

model : 'model
entity : Entity
Returns: EntityContent list

this.Definitions

Full Usage: this.Definitions

Parameters:
    model : 'model
    entity : Entity

Returns: DefinitionContent<Entity> list
Modifiers: abstract

The entity's own MMCC definitions.

model : 'model
entity : Entity
Returns: DefinitionContent<Entity> list

this.Edit

Full Usage: this.Edit

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

Implements additional editing behavior for an entity via the ImGui API.

model : 'model
op : EditOperation
entity : Entity
world : World
Returns: Signal list * 'model

this.GetFallbackModel

Full Usage: this.GetFallbackModel

Parameters:
Returns: 'model
Modifiers: abstract

The fallback model value.

modelSymbol : Symbol
entity : Entity
world : World
Returns: 'model

this.GetModel

Full Usage: this.GetModel

Parameters:
Returns: 'model

Get the entity's model.

entity : Entity
world : World
Returns: 'model

this.Message

Full Usage: this.Message

Parameters:
    model : 'model
    message : 'message
    entity : Entity
    world : World

Returns: Signal list * 'model
Modifiers: abstract

The message handler of the MMCC programming model.

model : 'model
message : 'message
entity : Entity
world : World
Returns: Signal list * 'model

this.Model

Full Usage: this.Model

Parameters:
Returns: Lens<'model, Entity>

The entity's model lens.

entity : Entity
Returns: Lens<'model, Entity>

this.Physics

Full Usage: this.Physics

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

The physics application handler for the MMCC programming model.

center : Vector3
rotation : Quaternion
linearVelocity : Vector3
angularVelocity : Vector3
model : 'model
entity : Entity
world : World
Returns: Signal list * 'model

this.Render

Full Usage: this.Render

Parameters:
Modifiers: abstract

Render the entity using the given model.

model : 'model
renderPass : RenderPass
entity : Entity
world : World

this.SetModel

Full Usage: this.SetModel

Parameters:

Set the entity's model.

model : 'model
entity : Entity
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.