C# Class NSMBe4.Tilemap

Exibir arquivo Open project: Dirbaio/NSMB-Editor Class Usage Examples

Public Properties

Property Type Description
buffer System.Drawing.Bitmap
buffers System.Drawing.Bitmap[]
paletteOffset int
palettes NSMBe4.Palette[]
tileCount int
tileOffset int
tiles ].Tile[
tileset NSMBe4.Image2D
width int

Protected Properties

Property Type Description
f NSMBe4.DSFileSystem.File

Public Methods

Method Description
Tilemap ( NSMBe4.DSFileSystem.File f, int tileWidth, NSMBe4.Image2D i, NSMBe4.Palette pals, int tileOffset, int paletteOffset ) : System
beginEdit ( ) : void
endEdit ( ) : void
getTileAtPos ( int x, int y ) : Tile
reRender ( int xMin, int yMin, int width, int height ) : Bitmap
reRenderAll ( ) : Bitmap
render ( ) : Bitmap
save ( ) : void
shortToTile ( ushort u ) : Tile
tileToShort ( Tile t ) : ushort
updateBuffers ( ) : void

Protected Methods

Method Description
load ( ) : void

Method Details

Tilemap() public method

public Tilemap ( NSMBe4.DSFileSystem.File f, int tileWidth, NSMBe4.Image2D i, NSMBe4.Palette pals, int tileOffset, int paletteOffset ) : System
f NSMBe4.DSFileSystem.File
tileWidth int
i NSMBe4.Image2D
pals NSMBe4.Palette
tileOffset int
paletteOffset int
return System

beginEdit() public method

public beginEdit ( ) : void
return void

endEdit() public method

public endEdit ( ) : void
return void

getTileAtPos() public method

public getTileAtPos ( int x, int y ) : Tile
x int
y int
return Tile

load() protected method

protected load ( ) : void
return void

reRender() public method

public reRender ( int xMin, int yMin, int width, int height ) : Bitmap
xMin int
yMin int
width int
height int
return System.Drawing.Bitmap

reRenderAll() public method

public reRenderAll ( ) : Bitmap
return System.Drawing.Bitmap

render() public method

public render ( ) : Bitmap
return System.Drawing.Bitmap

save() public method

public save ( ) : void
return void

shortToTile() public method

public shortToTile ( ushort u ) : Tile
u ushort
return Tile

tileToShort() public method

public tileToShort ( Tile t ) : ushort
t Tile
return ushort

updateBuffers() public method

public updateBuffers ( ) : void
return void

Property Details

buffer public_oe property

public Bitmap,System.Drawing buffer
return System.Drawing.Bitmap

buffers public_oe property

public Bitmap[],System.Drawing buffers
return System.Drawing.Bitmap[]

f protected_oe property

protected File,NSMBe4.DSFileSystem f
return NSMBe4.DSFileSystem.File

paletteOffset public_oe property

public int paletteOffset
return int

palettes public_oe property

public Palette[],NSMBe4 palettes
return NSMBe4.Palette[]

tileCount public_oe property

public int tileCount
return int

tileOffset public_oe property

public int tileOffset
return int

tiles public_oe property

public Tile[,] tiles
return ].Tile[

tileset public_oe property

public Image2D,NSMBe4 tileset
return NSMBe4.Image2D

width public_oe property

public int width
return int