Class BuilderBase
Base class for building startup config options.
Inherited Members
Namespace: SadConsole.Configuration
Assembly: SadConsole.dll
Syntax
public abstract class BuilderBase
Constructors
BuilderBase()
Declaration
protected BuilderBase()
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. |
ProcessConfigs(GameHost)
Runs each config object in the Configs collection with the specified game instance.
Declaration
public void ProcessConfigs(GameHost game)
Parameters
| Type | Name | Description |
|---|---|---|
| GameHost | game | The game being created. |