C# Class PoolExtensions, entitas-2d-roguelike

ファイルを表示 Open project: JamesMcMahon/entitas-2d-roguelike Class Usage Examples

Public Methods

Method Description
AddToFoodBag ( this pool, int pointsToAdd ) : Entity
DestroyEntityIfEmpty ( this pool, Entity entity ) : void
IsGameBoardPositionOpen ( this pool, PositionComponent, position, ICollection &entities ) : bool
IsGameBoardPositionOpen ( this pool, int x, int y, ICollection &entities ) : bool
PlayAudio ( this pool, AudioComponent, source ) : Entity

Method Details

AddToFoodBag() public static method

public static AddToFoodBag ( this pool, int pointsToAdd ) : Entity
pool this
pointsToAdd int
return Entity

DestroyEntityIfEmpty() public static method

public static DestroyEntityIfEmpty ( this pool, Entity entity ) : void
pool this
entity Entity
return void

IsGameBoardPositionOpen() public static method

public static IsGameBoardPositionOpen ( this pool, PositionComponent, position, ICollection &entities ) : bool
pool this
position PositionComponent,
entities ICollection
return bool

IsGameBoardPositionOpen() public static method

public static IsGameBoardPositionOpen ( this pool, int x, int y, ICollection &entities ) : bool
pool this
x int
y int
entities ICollection
return bool

PlayAudio() public static method

public static PlayAudio ( this pool, AudioComponent, source ) : Entity
pool this
source AudioComponent,
return Entity