Interface IFactoryBlueprint<TBlueprintID, TProduced>
Defines how to create a TProduced object for use in an Factory<TBlueprintID, TProduced>.
Namespace: GoRogue.Factories
Assembly: GoRogue.dll
Syntax
public interface IFactoryBlueprint<out TBlueprintID, out TProduced>
Type Parameters
| Name | Description |
|---|---|
| TBlueprintID | The type used to uniquely identify blueprints. |
| 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()
Creates an object of the type specified by TProduced.
Declaration
TProduced Create()
Returns
| Type | Description |
|---|---|
| TProduced | The created object. |