BuilderBase Class
Definition
Section titled “Definition”Base class for building startup config options.
public abstract class BuilderBaseInheritance object
Constructors
Section titled “Constructors”BuilderBase()
Section titled “BuilderBase()”protected BuilderBase()Properties
Section titled “Properties”Configs
Section titled “Configs”A collection of IConfigurator objects.
public List<IConfigurator> Configs { get; }Methods
Section titled “Methods”GetOrCreateConfig<TConfig>()
Section titled “GetOrCreateConfig<TConfig>()”Adds or gets the specified config object from the Configs collection.
public TConfig GetOrCreateConfig<TConfig>() where TConfig : IConfigurator, new()Returns
Section titled “Returns”TConfig
A new instance of TConfig if it’s not found in the Configs collection. If found in the collection, that instance is returned.
ProcessConfigs(GameHost)
Section titled “ProcessConfigs(GameHost)”Runs each config object in the Configs collection with the specified game instance.
public void ProcessConfigs(GameHost game)Parameters
Section titled “Parameters”game GameHost
The game being created.