C# Class OurSonic.Level.Tiles.TilePiece

Afficher le fichier Open project: OurSonic/OurSonicSharp Class Usage Examples

Private Properties

Свойство Type Description
getAnimatedPaletteCacheIndex int

Méthodes publiques

Méthode Description
DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedPaletteIndex ) : void
DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedTileIndex ) : void
DrawBase ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip ) : void
GetLayer1Angles ( ) : int
GetLayer1HeightMaps ( ) : HeightMap
GetLayer2Angles ( ) : int
GetLayer2HeightMaps ( ) : HeightMap
Init ( ) : void
OnlyBackground ( ) : bool
OnlyForeground ( ) : bool
ShouldAnimate ( ) : bool

Private Methods

Méthode Description
getAnimatedPaletteCacheIndex ( bool xflip, bool yflip, int animatedPaletteIndex, int frameIndex ) : int

Method Details

DrawAnimatedPalette() public méthode

public DrawAnimatedPalette ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedPaletteIndex ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
animatedPaletteIndex int
Résultat void

DrawAnimatedTile() public méthode

public DrawAnimatedTile ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip, int animatedTileIndex ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
animatedTileIndex int
Résultat void

DrawBase() public méthode

public DrawBase ( CanvasRenderingContext2D canvas, Point position, ChunkLayer layer, bool xFlip, bool yFlip ) : void
canvas System.Html.Media.Graphics.CanvasRenderingContext2D
position Point
layer ChunkLayer
xFlip bool
yFlip bool
Résultat void

GetLayer1Angles() public méthode

public GetLayer1Angles ( ) : int
Résultat int

GetLayer1HeightMaps() public méthode

public GetLayer1HeightMaps ( ) : HeightMap
Résultat HeightMap

GetLayer2Angles() public méthode

public GetLayer2Angles ( ) : int
Résultat int

GetLayer2HeightMaps() public méthode

public GetLayer2HeightMaps ( ) : HeightMap
Résultat HeightMap

Init() public méthode

public Init ( ) : void
Résultat void

OnlyBackground() public méthode

public OnlyBackground ( ) : bool
Résultat bool

OnlyForeground() public méthode

public OnlyForeground ( ) : bool
Résultat bool

ShouldAnimate() public méthode

public ShouldAnimate ( ) : bool
Résultat bool