C# Class WorldGenerator, 800Craft-Client

Inheritance: MonoBehaviour
Show file Open project: GlennMR/800Craft-Client Class Usage Examples

Public Methods

Method Description
GetChunk ( int x, int y, int z, int chunksize ) : byte[,,]
SetSeed ( int seed ) : void
WorldGenerator ( ) : System

Private Methods

Method Description
FindNoise1 ( int n ) : double
FindNoise2 ( double x, double y ) : double
GetBlock ( int x, int y, int z, int height ) : int
GetHeight ( int x, int y ) : byte
IsTree ( int x, int y, int height ) : bool
Place ( byte chunk, int chunksize, int xx, int yy, int zz, int blocktype ) : void
PlaceRandomOre ( int tiletype, int chunksize, int x, int y, int z, int i, byte chunk ) : void
PlaceRandomOres ( float oresperchunk, int oretype, int chunksize, int x, int y, int z, byte chunk ) : void
PlaceTree ( byte chunk, int chunksize, int xx, int yy, int zz ) : void
interpolate ( double a, double b, double x ) : double
noise ( double x, double y ) : double
randomxyz ( int x, int y, int z ) : float

Method Details

GetChunk() public method

public GetChunk ( int x, int y, int z, int chunksize ) : byte[,,]
x int
y int
z int
chunksize int
return byte[,,]

SetSeed() public method

public SetSeed ( int seed ) : void
seed int
return void

WorldGenerator() public method

public WorldGenerator ( ) : System
return System