C# Class OurSonic.Level.Objects.LevelObjectAssetFrame

显示文件 Open project: OurSonic/OurSonicSharp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
ClearCache ( ) : void
DrawSimple ( CanvasRenderingContext2D mainCanvas, Point pos, int width, int height, bool xflip, bool yflip ) : void
DrawUI ( CanvasRenderingContext2D _canvas, Point pos, bool showOutline, bool showCollideMap, bool showHurtMap, bool showOffset, bool xflip, bool yflip ) : void
GetCache ( bool showOutline, bool showCollideMap, bool showHurtMap ) : CanvasInformation
LevelObjectAssetFrame ( string name ) : System
SetCache ( CanvasInformation image, bool showOutline, bool showCollideMap, bool showHurtMap ) : void
SetHeight ( int h ) : void
SetOffset ( int ex, int ey ) : void
SetWidth ( int w ) : void

Method Details

ClearCache() public method

public ClearCache ( ) : void
return void

DrawSimple() public method

public DrawSimple ( CanvasRenderingContext2D mainCanvas, Point pos, int width, int height, bool xflip, bool yflip ) : void
mainCanvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos Point
width int
height int
xflip bool
yflip bool
return void

DrawUI() public method

public DrawUI ( CanvasRenderingContext2D _canvas, Point pos, bool showOutline, bool showCollideMap, bool showHurtMap, bool showOffset, bool xflip, bool yflip ) : void
_canvas System.Html.Media.Graphics.CanvasRenderingContext2D
pos Point
showOutline bool
showCollideMap bool
showHurtMap bool
showOffset bool
xflip bool
yflip bool
return void

GetCache() public method

public GetCache ( bool showOutline, bool showCollideMap, bool showHurtMap ) : CanvasInformation
showOutline bool
showCollideMap bool
showHurtMap bool
return OurSonic.Utility.CanvasInformation

LevelObjectAssetFrame() public method

public LevelObjectAssetFrame ( string name ) : System
name string
return System

SetCache() public method

public SetCache ( CanvasInformation image, bool showOutline, bool showCollideMap, bool showHurtMap ) : void
image OurSonic.Utility.CanvasInformation
showOutline bool
showCollideMap bool
showHurtMap bool
return void

SetHeight() public method

public SetHeight ( int h ) : void
h int
return void

SetOffset() public method

public SetOffset ( int ex, int ey ) : void
ex int
ey int
return void

SetWidth() public method

public SetWidth ( int w ) : void
w int
return void