Flying Piggy 2D Runner Kit  1.0
Complete 2D runner template for Unity
 All Classes Files Functions Variables Enumerations Enumerator Properties
Factory< T > Class Template Reference
Inheritance diagram for Factory< T >:
GamePropertyFactory MissionFactory ScoreFactory

Public Member Functions

Create< Tderived > (params object[] args)
 

Protected Member Functions

 Factory ()
 
void Register< Tderived > ()
 

Static Protected Attributes

static readonly List< Type > types = new List<Type>()
 

Detailed Description

Create an instance of the type T

Constructor & Destructor Documentation

Factory< T >.Factory ( )
protected

Member Function Documentation

T Factory< T >.Create< Tderived > ( params object[]  args)

Create an instance according to the type Tderived.

Parameters
args- argument of the constructor of the type Tderived
void Factory< T >.Register< Tderived > ( )
protected

Add new type to allowed types list

Type Constraints
Tderived :T 

Member Data Documentation

readonly List<Type> Factory< T >.types = new List<Type>()
staticprotected

Allowed types


The documentation for this class was generated from the following file: