Terrain Engine 2D  1.10
A 2D Block Engine
TerrainEngine2D.FallingBlockSimulation Class Reference

Simulates the falling of blocks under gravity More...

Inheritance diagram for TerrainEngine2D.FallingBlockSimulation:
TerrainEngine2D.MonoBehaviourSingleton< FallingBlockSimulation >

Public Member Functions

delegate void BlockFallAction (int x, int y, byte layer)
 Actions invoked when a block falls More...
 
void UpdateFallingBlocks ()
 Update the falling block simulation More...
 

Events

static BlockFallAction OnBlockFall
 Event called when a block falls More...
 

Additional Inherited Members

- Protected Member Functions inherited from TerrainEngine2D.MonoBehaviourSingleton< FallingBlockSimulation >
virtual void Awake ()
 
- Properties inherited from TerrainEngine2D.MonoBehaviourSingleton< FallingBlockSimulation >
static T Instance [get]
 

Detailed Description

Simulates the falling of blocks under gravity

Member Function Documentation

◆ BlockFallAction()

delegate void TerrainEngine2D.FallingBlockSimulation.BlockFallAction ( int  x,
int  y,
byte  layer 
)

Actions invoked when a block falls

◆ UpdateFallingBlocks()

void TerrainEngine2D.FallingBlockSimulation.UpdateFallingBlocks ( )

Update the falling block simulation

Event Documentation

◆ OnBlockFall

BlockFallAction TerrainEngine2D.FallingBlockSimulation.OnBlockFall
static

Event called when a block falls


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