Show / Hide Table of Contents

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 Source

ID

A unique identifier of this factory definition.

Declaration
TBlueprintID ID { get; }
Property Value
Type Description
TBlueprintID

Methods

View Source

Create()

Creates an object of the type specified by TProduced.

Declaration
TProduced Create()
Returns
Type Description
TProduced

The created object.

Extension Methods

Utility.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX