Show / Hide Table of Contents

Class BuilderBase

Base class for building startup config options.

Inheritance
object
BuilderBase
Builder
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 TConfig if it's not found in the Configs collection. If found in the collection, that instance is returned.

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.

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX