C# Class WaveFrogger.Services.EntityPoolComponent

Inheritance: Component
Datei anzeigen Open project: WaveEngine/QuickStarters Class Usage Examples

Private Properties

Property Type Description
AddRandomTrees void
AddToPool void
AddTreeLimits void
FreeEntity void
RetrieveTerrainEntity Entity

Public Methods

Method Description
FillPool ( ) : void
FreeCarEntity ( IEnumerable collection ) : void
FreeTerrain ( IEnumerable collection ) : void
FreeTreeEntity ( IEnumerable collection ) : void
FreeTreeLimitEntity ( IEnumerable collection ) : void
Retrieve ( Queue pool, string prefabs, string tag ) : Entity
RetrieveCarEntity ( ) : Entity
RetrieveTerrainEntity ( int prefabIndex = -1 ) : Entity
RetrieveTerrainLimitEntity ( ) : Entity
RetrieveTreeEntity ( ) : Entity

Protected Methods

Method Description
ResolveDependencies ( ) : void

Private Methods

Method Description
AddRandomTrees ( int count, System.Entity nextTerrain ) : void
AddToPool ( string prefab, string tag, Queue pool ) : void
AddTreeLimits ( string name, Vector3 position, Entity parent ) : void
FreeEntity ( IEnumerable collection, Queue pool ) : void
RetrieveTerrainEntity ( string prefab ) : Entity

Method Details

FillPool() public method

public FillPool ( ) : void
return void

FreeCarEntity() public method

public FreeCarEntity ( IEnumerable collection ) : void
collection IEnumerable
return void

FreeTerrain() public method

public FreeTerrain ( IEnumerable collection ) : void
collection IEnumerable
return void

FreeTreeEntity() public method

public FreeTreeEntity ( IEnumerable collection ) : void
collection IEnumerable
return void

FreeTreeLimitEntity() public method

public FreeTreeLimitEntity ( IEnumerable collection ) : void
collection IEnumerable
return void

ResolveDependencies() protected method

protected ResolveDependencies ( ) : void
return void

Retrieve() public method

public Retrieve ( Queue pool, string prefabs, string tag ) : Entity
pool Queue
prefabs string
tag string
return Entity

RetrieveCarEntity() public method

public RetrieveCarEntity ( ) : Entity
return Entity

RetrieveTerrainEntity() public method

public RetrieveTerrainEntity ( int prefabIndex = -1 ) : Entity
prefabIndex int
return Entity

RetrieveTerrainLimitEntity() public method

public RetrieveTerrainLimitEntity ( ) : Entity
return Entity

RetrieveTreeEntity() public method

public RetrieveTreeEntity ( ) : Entity
return Entity