Skip to content

BuilderBase Class

Base class for building startup config options.

C#
public abstract class BuilderBase

Inheritance object

C#
protected BuilderBase()

A collection of IConfigurator objects.

C#
public List<IConfigurator> Configs { get; }

Adds or gets the specified config object from the Configs collection.

C#
public TConfig GetOrCreateConfig<TConfig>() where TConfig : IConfigurator, new()

TConfig
A new instance of TConfig if it’s not found in the Configs collection. If found in the collection, that instance is returned.

Runs each config object in the Configs collection with the specified game instance.

C#
public void ProcessConfigs(GameHost game)

game GameHost
The game being created.