MonoGameProgram Module
MonoGame-specific program builder extensions.
Functions and values
| Function or value |
Description
|
Full Usage:
ofProgram program
Parameters:
Program<'Model, 'Msg>
Returns: MonoGameProgram<'Model, 'Msg>
|
Wraps a Core Program into a MonoGameProgram with no device-level configuration.
|
Full Usage:
withConfig configure program
Parameters:
Game * GraphicsDeviceManager -> unit
program : MonoGameProgram<'Model, 'Msg>
Returns: MonoGameProgram<'Model, 'Msg>
|
Adds a device-level configuration callback that receives the
Invoked in the MiboGame constructor,
after the Core Program.withConfig callbacks
and before Use this for properties that require direct
Example
|
Full Usage:
withInputMapper initialMap program
Parameters:
InputMap<'Action>
program : MonoGameProgram<'Model, 'Msg>
Returns: MonoGameProgram<'Model, 'Msg>
|
Configures the game to register an IInputMapper service backed by MonoGame's polling API.
This registers IInput automatically (equivalent to Program.withInput). The mapper is registered as a service via a
Program.ServiceRegistrations callback that
If you want to stay fully "Elmish" (no service access), consider using InputMapper.subscribe instead and handle a single message.
Example
|
Mibo