RaylibProgram Module
Raylib-specific Program builder extensions.
Types
| Type | Description |
|
One entry of a sound bank: a game-vocabulary key bound to the file that
plays under it. The whole bank loads before user |
Functions and values
| Function or value |
Description
|
|
Configures the game's sound bank: every entry loads before user
The bank is an ordinary F# value: a list literal for small games, or a generated value for large ones (a naming convention, a manifest, a directory scan). List order is load order. One call configures the whole bank; there are no per-asset builder calls.
Each entry becomes a registration callback that runs where every other
service registration runs — after the host registers its services,
before
Example
val program: obj
|
|
Configures the game to register an IInputMapper service backed by raylib's polling API.
This registers IInput automatically (equivalent to Program.withInput). The mapper is registered as a service via a Program.ServiceRegistrations
callback that the runtime host runs before The service is registered, not driven: nothing polls
If you want to stay fully "Elmish" (no service access), consider using InputMapper.subscribe instead and handle a single message (adaptive programs: InputMapper.subscribeAdaptive).
Example
|
Mibo