C# Класс fCraft.Forester

Vegetation generator for MapGenerator.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Generate ( [ args ) : void
Plant ( [ args, Vector3I treeCoordinate ) : void
SexyPlant ( [ args, Vector3I treeCoordinate ) : void

Приватные методы

Метод Описание
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

Описание методов

Generate() публичный статический Метод

public static Generate ( [ args ) : void
args [
Результат void

Plant() публичный статический Метод

public static Plant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
Результат void

SexyPlant() публичный статический Метод

public static SexyPlant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
Результат void