Class Builder
Composes a game host object.
Inherited Members
Namespace: SadConsole.Configuration
Assembly: SadConsole.dll
Syntax
public sealed class Builder
Constructors
Builder()
Declaration
public Builder()
Properties
Configs
A collection of IConfigurator objects.
Declaration
public List<IConfigurator> Configs { get; }
Property Value
Type | Description |
---|---|
List<IConfigurator> |
Methods
GetOrCreateConfig<TConfig>()
Adds or gets the specified config object from the Configs collection.
Declaration
public TConfig GetOrCreateConfig<TConfig>() where TConfig : IConfigurator, new()
Returns
Type | Description |
---|---|
TConfig | A new instance of |
Type Parameters
Name | Description |
---|---|
TConfig | The type of config object. |
Run(GameHost)
Runs each config object in the Configs collection with the specified game instance.
Declaration
public void Run(GameHost game)
Parameters
Type | Name | Description |
---|---|---|
GameHost | game | The game being created. |