ComponentRef<'T> Type
Mutable handle for a MonoGame component instance created during game initialization.
This is intended to be allocated in the composition root (per game instance) and then
threaded into Elmish update/subscribe functions, avoiding global/module-level mutable state.
Constructors
| Constructor |
Description
|
|
|
Instance members
| Instance member |
Description
|
Full Usage:
this.Clear
|
Clears the component reference. |
Full Usage:
this.Set
Parameters:
'T
|
Sets the component reference. Called automatically by Program.withComponentRef.
|
Full Usage:
this.TryGet
Returns: 'T voption
|
Attempts to get the component, returning ValueNone if not yet initialized.
|
Mibo