ExtensionsHost Class
Definition
Section titled “Definition”public static class ExtensionsHostInheritance object
Methods
Section titled “Methods”Run(Builder)
Section titled “Run(Builder)”Runs the game using the builder configuration.
public static void Run(this Builder configBuilder)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
UseUnlimitedFPS(Builder)
Section titled “UseUnlimitedFPS(Builder)”Unlimited FPS when rendering (normally limited to 60fps). Must be set before the game is created.
public static Builder UseUnlimitedFPS(this Builder configBuilder)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
Returns
Section titled “Returns”Builder
The configuration builder.
ShowMonoGameFPS(Builder)
Section titled “ShowMonoGameFPS(Builder)”Adds a MonoGame game component that renders the frames per-second of the game.
public static Builder ShowMonoGameFPS(this Builder configBuilder)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
Returns
Section titled “Returns”Builder
The configuration builder.
UseTitleContainer(Builder)
Section titled “UseTitleContainer(Builder)”Tells the game host to use the Microsoft.Xna.Framework.TitleContainer to open streams for reading.
public static Builder UseTitleContainer(this Builder configBuilder)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
Returns
Section titled “Returns”Builder
The configuration object.
WithMonoGameCtor(Builder, Action<Game>)
Section titled “WithMonoGameCtor(Builder, Action<Game>)”The monogameCtorCallback method is called by the MonoGame constructor. Some MonoGame specific settings may only be settable via the constructor.
public static Builder WithMonoGameCtor(this Builder configBuilder, Action<Game> monogameCtorCallback)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
monogameCtorCallback Action<Game>
A method.
Returns
Section titled “Returns”Builder
The configuration object.
WithMonoGameInit(Builder, Action<Game>)
Section titled “WithMonoGameInit(Builder, Action<Game>)”Internal only. Called by the MonoGame game to finish configuring SadConsole.
public static Builder WithMonoGameInit(this Builder configBuilder, Action<Game> monogameInitCallback)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
monogameInitCallback Action<Game>
A method.
Returns
Section titled “Returns”Builder
The configuration object.
SkipMonoGameGameCreation(Builder)
Section titled “SkipMonoGameGameCreation(Builder)”When called, tells the game host not to create the monogame game instance at MonoGameInstance.
public static Builder SkipMonoGameGameCreation(this Builder configBuilder)Parameters
Section titled “Parameters”configBuilder Builder
The builder object that composes the game startup.
Returns
Section titled “Returns”Builder
The configuration object.