Method | Description | |
---|---|---|
AdjustTiles ( short startindex, short delta ) : void |
Adjusts the tile indicies for when tiles were removed or added.
|
|
CloneTiles ( ) : short[] |
Creates a hard copy of the data.
|
|
CreateNew ( short width, short height ) : void |
Creates a blank layer.
|
|
FromBinary ( |
Creates a proper Sphere from a data stream.
|
|
GetTile ( int x, int y ) : short |
Gets tile index at the (x, y) position.
|
|
Layer ( ) : System |
Constructs a new Sphere layer.
|
|
ReplaceTiles ( short from, short to ) : void |
Replaces all the tile indices on this layer from 'from' to 'to'.
|
|
Resize ( short width, short height ) : void |
Resizes the field to the new size.
|
|
Save ( |
Writes data to the binary writer.
|
|
SetTile ( int x, int y, short index ) : bool |
Sets a tile, if applicable.
|
|
SetTiles ( short tiles ) : void |
Pump in a 2D array to replace current tiles with.
|
|
Validate ( int max ) : bool |
Checks to see if the layer has correct tile indicies. Will set afflicted tiles to 0, if check fails.
|
public AdjustTiles ( short startindex, short delta ) : void | ||
startindex | short | Index to start at. |
delta | short | How much of a shift to make. |
return | void |
public CreateNew ( short width, short height ) : void | ||
width | short | Width in tiles to use. |
height | short | Height in tiles to use. |
return | void |
public static FromBinary ( |
||
reader | BinaryReader to use. | |
return |
public GetTile ( int x, int y ) : short | ||
x | int | X-coord of tile. |
y | int | Y-coord of tile. |
return | short |
public ReplaceTiles ( short from, short to ) : void | ||
from | short | The old index to replace. |
to | short | The new index to replace with. |
return | void |
public Resize ( short width, short height ) : void | ||
width | short | New width of the field. |
height | short | New height of the field. |
return | void |
public Save ( |
||
writer | BinaryWriter to use. | |
return | void |
public SetTile ( int x, int y, short index ) : bool | ||
x | int | X-coord to use. |
y | int | Y-coord to use. |
index | short | Index to set to. |
return | bool |
public SetTiles ( short tiles ) : void | ||
tiles | short | New array of tile indicies to use. |
return | void |
public Validate ( int max ) : bool | ||
max | int | The maximum tile index expected. |
return | bool |