Method | Description | |
---|---|---|
CreateNew ( short tileWidth, short tileHeight ) : void |
Adds a blank tile to the list of tiles.
|
|
Dispose ( ) : void |
Disposes and clears this Tileset.
|
|
FromBinary ( |
Loads a tileset from a filestream.
|
|
FromFile ( string filename ) : |
Loads a tileset independantly from a file.
|
|
FromSpriteset ( |
Takes the images of a spriteset and creates a ileset representation of it.
|
|
ResizeTiles ( short tw, short th, bool rescale ) : void |
Resizes the tiles in the tileset.
|
|
Save ( string filename ) : void |
Savbes the tileset to a separate file.
|
|
SaveImage ( string filename, int across = 6 ) : void |
Saves the tileset as an image.
|
|
Tileset ( ) : System |
Creates a fresh, empty tileset.
|
|
UpdateFromImage ( string filename ) : void |
Updates graphics From a tileset image file.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
public CreateNew ( short tileWidth, short tileHeight ) : void | ||
tileWidth | short | The tile width in pixels. |
tileHeight | short | The tile height in pixels. |
return | void |
public static FromBinary ( |
||
reader | The System.IO.BinrayReader to use. | |
return |
public static FromFile ( string filename ) : |
||
filename | string | The filename to load from. |
return |
public static FromSpriteset ( |
||
set | The spriteset to use. | |
return |
public ResizeTiles ( short tw, short th, bool rescale ) : void | ||
tw | short | New tile width. |
th | short | New tile height. |
rescale | bool | If true rescale, else resize. |
return | void |
public Save ( string filename ) : void | ||
filename | string | The filename to save to. |
return | void |
public SaveImage ( string filename, int across = 6 ) : void | ||
filename | string | The filename to save to. |
across | int | The amount of tiles to put across (width-wise). |
return | void |
public UpdateFromImage ( string filename ) : void | ||
filename | string | |
return | void |