Skip to content

ExtensionsHost Class

C#
public static class ExtensionsHost

Inheritance object

Runs the game using the builder configuration.

C#
public static void Run(this Builder configBuilder)

configBuilder Builder
The builder object that composes the game startup.

Unlimited FPS when rendering (normally limited to 60fps). Must be set before the game is created.

C#
public static Builder UseUnlimitedFPS(this Builder configBuilder)

configBuilder Builder
The builder object that composes the game startup.

Builder
The configuration builder.

Adds a MonoGame game component that renders the frames per-second of the game.

C#
public static Builder ShowMonoGameFPS(this Builder configBuilder)

configBuilder Builder
The builder object that composes the game startup.

Builder
The configuration builder.

Tells the game host to use the Microsoft.Xna.Framework.TitleContainer to open streams for reading.

C#
public static Builder UseTitleContainer(this Builder configBuilder)

configBuilder Builder
The builder object that composes the game startup.

Builder
The configuration object.

The monogameCtorCallback method is called by the MonoGame constructor. Some MonoGame specific settings may only be settable via the constructor.

C#
public static Builder WithMonoGameCtor(this Builder configBuilder, Action<Game> monogameCtorCallback)

configBuilder Builder
The builder object that composes the game startup.

monogameCtorCallback Action<Game>
A method.

Builder
The configuration object.

Internal only. Called by the MonoGame game to finish configuring SadConsole.

C#
public static Builder WithMonoGameInit(this Builder configBuilder, Action<Game> monogameInitCallback)

configBuilder Builder
The builder object that composes the game startup.

monogameInitCallback Action<Game>
A method.

Builder
The configuration object.

When called, tells the game host not to create the monogame game instance at MonoGameInstance.

C#
public static Builder SkipMonoGameGameCreation(this Builder configBuilder)

configBuilder Builder
The builder object that composes the game startup.

Builder
The configuration object.