Interface IAdvancedFactoryBlueprint<TBlueprintID, TBlueprintConfig, TProduced>
Defines how to create a TProduced
object for use in an
AdvancedFactory<TBlueprintID, TBlueprintConfig, TProduced>.
Namespace: GoRogue.Factories
Assembly: GoRogue.dll
Syntax
public interface IAdvancedFactoryBlueprint<out TBlueprintID, in TBlueprintConfig, out TProduced>
Type Parameters
Name | Description |
---|---|
TBlueprintID | The type used to uniquely identify blueprints. |
TBlueprintConfig | The type of the parameter to pass to the Create(TBlueprintConfig) function. |
TProduced | The type of object to create. |
Properties
View SourceID
A unique identifier of this factory definition.
Declaration
TBlueprintID ID { get; }
Property Value
Type | Description |
---|---|
TBlueprintID |
Methods
View SourceCreate(TBlueprintConfig)
Creates an object of the type specified by TProduced using the given configuration parameters.
Declaration
TProduced Create(TBlueprintConfig config)
Parameters
Type | Name | Description |
---|---|---|
TBlueprintConfig | config | Configuration parameters used to create the object. |
Returns
Type | Description |
---|---|
TProduced | The created object. |