Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.PlantsManager

静态 Public 成员函数

static int GetTreeTrunkValue (TreeType treeType)
static int GetTreeLeavesValue (TreeType treeType)
static ReadOnlyList< TerrainBrushGetTreeBrushes (TreeType treeType)
static int GenerateRandomPlantValue (Random random, int groundValue, int temperature, int humidity, int y)
static ? TreeType GenerateRandomTreeType (Random random, int temperature, int humidity, int y, float densityMultiplier=1f)
static float CalculateTreeDensity (TreeType treeType, int temperature, int humidity, int y)
static float CalculateTreeProbability (TreeType treeType, int temperature, int humidity, int y)
static float RangeProbability (float v, float a, float b, float c, float d)
static TerrainBrush CreateTreeBrush (Random random, int woodIndex, int leavesIndex, int height, int branchesCount, int leavesRounds, Func< int, int, float > leavesProbability, Func< int, float > branchesLength)
static TerrainBrush CreateMimosaBrush (Random random, float size)

静态 Public 属性

static List< TerrainBrush >[] m_treeBrushesByType
static int[] m_treeTrunksByType
static int[] m_treeLeavesByType

静态 Private 成员函数

static PlantsManager ()

详细描述

在文件 PlantsManager.cs4 行定义.

构造及析构函数说明

◆ PlantsManager()

Game.PlantsManager.PlantsManager ( )
staticprivate

在文件 PlantsManager.cs11 行定义.

函数调用图:

成员函数说明

◆ CalculateTreeDensity()

float Game.PlantsManager.CalculateTreeDensity ( TreeType treeType,
int temperature,
int humidity,
int y )
static

在文件 PlantsManager.cs367 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ CalculateTreeProbability()

float Game.PlantsManager.CalculateTreeProbability ( TreeType treeType,
int temperature,
int humidity,
int y )
static

在文件 PlantsManager.cs382 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ CreateMimosaBrush()

TerrainBrush Game.PlantsManager.CreateMimosaBrush ( Random random,
float size )
static

在文件 PlantsManager.cs501 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ CreateTreeBrush()

TerrainBrush Game.PlantsManager.CreateTreeBrush ( Random random,
int woodIndex,
int leavesIndex,
int height,
int branchesCount,
int leavesRounds,
Func< int, int, float > leavesProbability,
Func< int, float > branchesLength )
static

在文件 PlantsManager.cs423 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GenerateRandomPlantValue()

int Game.PlantsManager.GenerateRandomPlantValue ( Random random,
int groundValue,
int temperature,
int humidity,
int y )
static

在文件 PlantsManager.cs282 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GenerateRandomTreeType()

? TreeType Game.PlantsManager.GenerateRandomTreeType ( Random random,
int temperature,
int humidity,
int y,
float densityMultiplier = 1f )
static

在文件 PlantsManager.cs331 行定义.

函数调用图:
这是这个函数的调用关系图:

◆ GetTreeBrushes()

ReadOnlyList< TerrainBrush > Game.PlantsManager.GetTreeBrushes ( TreeType treeType)
static

在文件 PlantsManager.cs280 行定义.

这是这个函数的调用关系图:

◆ GetTreeLeavesValue()

int Game.PlantsManager.GetTreeLeavesValue ( TreeType treeType)
static

在文件 PlantsManager.cs278 行定义.

这是这个函数的调用关系图:

◆ GetTreeTrunkValue()

int Game.PlantsManager.GetTreeTrunkValue ( TreeType treeType)
static

在文件 PlantsManager.cs276 行定义.

这是这个函数的调用关系图:

◆ RangeProbability()

float Game.PlantsManager.RangeProbability ( float v,
float a,
float b,
float c,
float d )
static

在文件 PlantsManager.cs407 行定义.

这是这个函数的调用关系图:

类成员变量说明

◆ m_treeBrushesByType

List<TerrainBrush> [] Game.PlantsManager.m_treeBrushesByType
static

在文件 PlantsManager.cs5 行定义.

◆ m_treeLeavesByType

int [] Game.PlantsManager.m_treeLeavesByType
static

在文件 PlantsManager.cs9 行定义.

◆ m_treeTrunksByType

int [] Game.PlantsManager.m_treeTrunksByType
static

在文件 PlantsManager.cs7 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Managers/PlantsManager.cs