Header menu logo Nu

Behavior<'a, 'b> Type

Defines a generic behavior.

Record fields

Record Field Description

Scope

Full Usage: Scope

Field type: Scope<'a, 'b>
Field type: Scope<'a, 'b>

Transformers

Full Usage: Transformers

Field type: 'b Transformer FStack
Field type: 'b Transformer FStack

Static members

Static member Description

Behavior.ofSeq scope transformers

Full Usage: Behavior.ofSeq scope transformers

Parameters:
Returns: Behavior<'a, 'b>

Make from a scope and sequence of transformers.

scope : Scope<'a, 'b>
transformers : 'b Transformer seq
Returns: Behavior<'a, 'b>

Behavior.run delta time constrain behavior target

Full Usage: Behavior.run delta time constrain behavior target

Parameters:
Returns: Output * 'a

Run the behavior over a single target.

delta : GameTime
time : GameTime
constrain : Constraint
behavior : Behavior<'a, 'b>
target : 'a
Returns: Output * 'a

Behavior.runMany delta time constrain behavior targets

Full Usage: Behavior.runMany delta time constrain behavior targets

Parameters:
Returns: Output

Run the behavior over targets. OPTIMIZATION: runs transformers in batches for better utilization of instruction cache.

delta : GameTime
time : GameTime
constrain : Constraint
behavior : Behavior<'a, 'b>
targets : 'a SArray
Returns: Output

Behavior.singleton scope transformer

Full Usage: Behavior.singleton scope transformer

Parameters:
Returns: Behavior<'a, 'b>

The singleton behavior.

scope : Scope<'a, 'b>
transformer : 'b Transformer
Returns: Behavior<'a, 'b>

Type something to start searching.