Class ExtensionsHost
Inherited Members
Namespace: SadConsole.Configuration
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public static class ExtensionsHost
Methods
ShowMonoGameFPS(Builder)
Adds a MonoGame game component that renders the frames per-second of the game.
Declaration
public static Builder ShowMonoGameFPS(this Builder configBuilder)
Parameters
Type | Name | Description |
---|---|---|
Builder | configBuilder | The builder object that composes the game startup. |
Returns
Type | Description |
---|---|
Builder | The configuration builder. |
UseUnlimitedFPS(Builder)
Unlimited FPS when rendering (normally limited to 60fps). Must be set before the game is created.
Declaration
public static Builder UseUnlimitedFPS(this Builder configBuilder)
Parameters
Type | Name | Description |
---|---|---|
Builder | configBuilder | The builder object that composes the game startup. |
Returns
Type | Description |
---|---|
Builder | The configuration builder. |
WithMonoGameCtor(Builder, Action<Game>)
The monogameCtorCallback
method is called by the MonoGame constructor. Some MonoGame specific settings may only be settable via the constructor.
Declaration
public static Builder WithMonoGameCtor(this Builder configBuilder, Action<Game> monogameCtorCallback)
Parameters
Type | Name | Description |
---|---|---|
Builder | configBuilder | The builder object that composes the game startup. |
Action<Game> | monogameCtorCallback | A method. |
Returns
Type | Description |
---|---|
Builder | The configuration object. |