C# Class fCraft.Forester

Vegetation generator for MapGenerator.
Afficher le fichier Open project: GlennMR/800craft Class Usage Examples

Méthodes publiques

Méthode Description
Generate ( [ args ) : void
Plant ( [ args, Vector3I treeCoordinate ) : void
SexyPlant ( [ args, Vector3I treeCoordinate ) : void

Private Methods

Méthode Description
Cub ( float val ) : float
DistanceToBlock ( Map map, Vector3F coord, Vector3F vec, Block blockType ) : int
DistanceToBlock ( Map map, Vector3F coord, Vector3F vec, Block blockType, bool invert ) : int
FindRandomTreeLocation ( ForesterArgs args, int height ) : Vector3I
FindTrees ( ForesterArgs args, ICollection treelist ) : void
PlantMangroves ( ForesterArgs args, ICollection treelist ) : void
PlantRainForestTrees ( ForesterArgs args, ICollection treelist ) : void
PlantTrees ( ForesterArgs args, ICollection treelist ) : void
ProcessTrees ( ForesterArgs args, IList treelist ) : void
Sqr ( double val ) : double
Sqr ( float val ) : float
Sqr ( int val ) : int

Method Details

Generate() public static méthode

public static Generate ( [ args ) : void
args [
Résultat void

Plant() public static méthode

public static Plant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
Résultat void

SexyPlant() public static méthode

public static SexyPlant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
Résultat void