Namespace GoRogue.Factories
Classes
AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced>
A more advanced factory that produces a type of object based on a blueprint and a set of configuration parameters.
Factory<TBlueprintID, TProduced>
A simple factory that produces a type of object based on a blueprint.
ItemNotDefinedException<TBlueprintID>
Exception thrown by AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced> or Factory<TBlueprintID, TProduced> objects when a blueprint that doesn't exist is used.
LambdaAdvancedFactoryBlueprint<TBlueprintID, TBlueprintConfig, TProduced>
An implementation of IAdvancedFactoryBlueprint<TBlueprintID, TBlueprintConfig, TProduced> that allows you to specify a Func object to use as the factory method.
LambdaFactoryBlueprint<TBlueprintID, TProduced>
An implementation of IFactoryBlueprint<TBlueprintID, TProduced> that allows you to specify a Func object to use as the factory method.
Interfaces
IAdvancedFactoryBlueprint<TBlueprintID, TBlueprintConfig, TProduced>
Defines how to create a TProduced
object for use in an
AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced>.
IFactoryBlueprint<TBlueprintID, TProduced>
Defines how to create a TProduced
object for use in an Factory<TBlueprintID, TProduced>.
IFactoryObject<TBlueprintID>
Interface that can optionally be implemented by objects created via a Factory<TBlueprintID, TProduced> or AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced>. The DefinitionID property will be automatically set to the ID of the blueprint used to create the object when the factory's Create function is called.