C# Class Procedurality.PCMain

Datei anzeigen Open project: N3X15/VoxelSim

Public Methods

Method Description
CratersAlgo ( int size, int numCraters, int seed ) : Channel
HillsAlgo ( int size, int numHills, int seed ) : Channel
LoadTerrain ( String file ) : Channel
Main ( String args ) : void
RemoveExtension ( String s ) : String

Private Methods

Method Description
Global2Local ( uint x, uint y ) : Point
Help ( ) : void
IsRunningOnMono ( ) : bool
Local2Global ( uint x, uint y ) : Point
MakeTiles ( Channel terrain, uint tsize, string path ) : void
drawTextProgressBar ( int progress, int total ) : void

Draw a progress bar at the current cursor position. Be careful not to Console.WriteLine or anything whilst using this to show progress!

Method Details

CratersAlgo() public static method

public static CratersAlgo ( int size, int numCraters, int seed ) : Channel
size int
numCraters int
seed int
return Channel

HillsAlgo() public static method

public static HillsAlgo ( int size, int numHills, int seed ) : Channel
size int
numHills int
seed int
return Channel

LoadTerrain() public static method

public static LoadTerrain ( String file ) : Channel
file String
return Channel

Main() public static method

public static Main ( String args ) : void
args String
return void

RemoveExtension() public static method

public static RemoveExtension ( String s ) : String
s String
return String