C# Class Dwarrowdelf.TerrainGen.TerrainData

Mostrar archivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
Contains ( IntVector3 p ) : bool
GetData ( TileData &tileGrid, byte &levelMap ) : void
GetMaterial ( IntVector3 p ) : MaterialInfo
GetMaterialID ( IntVector3 p ) : MaterialID
GetSurfaceLevel ( IntVector2 p ) : int
GetSurfaceLevel ( int x, int y ) : int
GetSurfaceLocation ( IntVector2 p ) : IntVector3
GetSurfaceLocation ( int x, int y ) : IntVector3
GetTileData ( IntVector3 p ) : TileData
GetTileData ( int x, int y, int z ) : TileData
GetTileID ( IntVector3 p ) : TileID
GetWaterLevel ( IntVector3 p ) : byte
LoadTerrain ( string path, string expectedName, IntSize3 expectedSize ) : TerrainData
RescanLevelMap ( ) : void
SaveTerrain ( string path, string name ) : void
SetSurfaceLevel ( int x, int y, int level ) : void
SetTileData ( IntVector3 p, TileData data ) : void
SetTileDataNoHeight ( IntVector3 p, TileData data ) : void
TerrainData ( IntSize3 size ) : System

Private Methods

Method Description
CopyTo ( Stream input, Stream output, int len ) : void

Method Details

Contains() public method

public Contains ( IntVector3 p ) : bool
p IntVector3
return bool

GetData() public method

public GetData ( TileData &tileGrid, byte &levelMap ) : void
tileGrid TileData
levelMap byte
return void

GetMaterial() public method

public GetMaterial ( IntVector3 p ) : MaterialInfo
p IntVector3
return MaterialInfo

GetMaterialID() public method

public GetMaterialID ( IntVector3 p ) : MaterialID
p IntVector3
return MaterialID

GetSurfaceLevel() public method

public GetSurfaceLevel ( IntVector2 p ) : int
p IntVector2
return int

GetSurfaceLevel() public method

public GetSurfaceLevel ( int x, int y ) : int
x int
y int
return int

GetSurfaceLocation() public method

public GetSurfaceLocation ( IntVector2 p ) : IntVector3
p IntVector2
return IntVector3

GetSurfaceLocation() public method

public GetSurfaceLocation ( int x, int y ) : IntVector3
x int
y int
return IntVector3

GetTileData() public method

public GetTileData ( IntVector3 p ) : TileData
p IntVector3
return TileData

GetTileData() public method

public GetTileData ( int x, int y, int z ) : TileData
x int
y int
z int
return TileData

GetTileID() public method

public GetTileID ( IntVector3 p ) : TileID
p IntVector3
return TileID

GetWaterLevel() public method

public GetWaterLevel ( IntVector3 p ) : byte
p IntVector3
return byte

LoadTerrain() public static method

public static LoadTerrain ( string path, string expectedName, IntSize3 expectedSize ) : TerrainData
path string
expectedName string
expectedSize IntSize3
return TerrainData

RescanLevelMap() public method

public RescanLevelMap ( ) : void
return void

SaveTerrain() public method

public SaveTerrain ( string path, string name ) : void
path string
name string
return void

SetSurfaceLevel() public method

public SetSurfaceLevel ( int x, int y, int level ) : void
x int
y int
level int
return void

SetTileData() public method

public SetTileData ( IntVector3 p, TileData data ) : void
p IntVector3
data TileData
return void

SetTileDataNoHeight() public method

public SetTileDataNoHeight ( IntVector3 p, TileData data ) : void
p IntVector3
data TileData
return void

TerrainData() public method

public TerrainData ( IntSize3 size ) : System
size IntSize3
return System