C# Class OurSonic.Level.Tiles.TileChunk

Mostra file Open project: OurSonic/OurSonicSharp Class Usage Examples

Public Properties

Property Type Description
CurrentPaletteAnimationFrameIndexCache List
CurrentTileAnimationFrameIndexCache List

Public Methods

Method Description
CacheBase ( ChunkLayer layer ) : void
CachePaletteAnimation ( ChunkLayer layer ) : void
CacheTileAnimation ( ChunkLayer layer ) : void
ClearCache ( ) : void
Debug_DrawCache ( ) : CanvasInformation
DrawAnimationDebug ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, TileChunkDebugDrawOptions debugDrawOptions ) : void
InitCache ( ) : void
WarmCache ( ) : void

Private Methods

Method Description
getAnimationPaletteSurfaceInformation ( int paletteAnimationIndex, ChunkLayer layer ) : Rectangle
getAnimationTileSurfaceInformation ( int tileAnimationIndex, ChunkLayer layer ) : Rectangle

Method Details

CacheBase() public method

public CacheBase ( ChunkLayer layer ) : void
layer ChunkLayer
return void

CachePaletteAnimation() public method

public CachePaletteAnimation ( ChunkLayer layer ) : void
layer ChunkLayer
return void

CacheTileAnimation() public method

public CacheTileAnimation ( ChunkLayer layer ) : void
layer ChunkLayer
return void

ClearCache() public method

public ClearCache ( ) : void
return void

Debug_DrawCache() public method

public Debug_DrawCache ( ) : CanvasInformation
return OurSonic.Utility.CanvasInformation

DrawAnimationDebug() public method

public DrawAnimationDebug ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, TileChunkDebugDrawOptions debugDrawOptions ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
debugDrawOptions TileChunkDebugDrawOptions
return void

InitCache() public method

public InitCache ( ) : void
return void

WarmCache() public method

public WarmCache ( ) : void
return void

Property Details

CurrentPaletteAnimationFrameIndexCache public_oe property

public List CurrentPaletteAnimationFrameIndexCache
return List

CurrentTileAnimationFrameIndexCache public_oe property

public List CurrentTileAnimationFrameIndexCache
return List