Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ComponentPathfinding
类 Game.ComponentPathfinding 继承关系图:
Game.ComponentPathfinding 的协作图:

Public 成员函数

virtual void SetDestination (Vector3? destination, float speed, float range, int maxPathfindingPositions, bool useRandomMovements, bool ignoreHeightDifference, bool raycastDestination, ComponentBody doNotAvoidBody)
virtual void Stop ()
virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

SubsystemTime m_subsystemTime
SubsystemPathfinding m_subsystemPathfinding
ComponentCreature m_componentCreature
ComponentPilot m_componentPilot
StateMachine m_stateMachine = new()
Random m_random = new()
Vector3m_lastPathfindingDestination
double? m_lastPathfindingTime
float m_pathfindingCongestion
PathfindingResult m_pathfindingResult = new()
double m_nextUpdateTime
int m_randomMoveCount
bool m_destinationChanged
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

const float m_minPathfindingPeriod = 6f
const float m_pathfindingCongestionCapacity = 500f
const float m_pathfindingCongestionCapacityLimit = 1000f
const float m_pathfindingCongestionDecayRate = 20f
static bool DrawPathfinding

属性

Vector3Destination [get, set]
float Range [get, set]
float Speed [get, set]
int MaxPathfindingPositions [get, set]
bool UseRandomMovements [get, set]
bool IgnoreHeightDifference [get, set]
bool RaycastDestination [get, set]
ComponentBody DoNotAvoidBody [get, set]
bool IsStuck [get, set]
UpdateOrder UpdateOrder [get]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentPathfinding.cs6 行定义.

成员函数说明

◆ Load()

override void Game.ComponentPathfinding.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentPathfinding.cs107 行定义.

函数调用图:

◆ SetDestination()

virtual void Game.ComponentPathfinding.SetDestination ( Vector3? destination,
float speed,
float range,
int maxPathfindingPositions,
bool useRandomMovements,
bool ignoreHeightDifference,
bool raycastDestination,
ComponentBody doNotAvoidBody )
virtual

在文件 ComponentPathfinding.cs63 行定义.

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

◆ Stop()

virtual void Game.ComponentPathfinding.Stop ( )
virtual

在文件 ComponentPathfinding.cs83 行定义.

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

◆ Update()

virtual void Game.ComponentPathfinding.Update ( float dt)
virtual

实现了 Game.IUpdateable.

在文件 ComponentPathfinding.cs98 行定义.

函数调用图:

类成员变量说明

◆ DrawPathfinding

bool Game.ComponentPathfinding.DrawPathfinding
static

在文件 ComponentPathfinding.cs41 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentPathfinding.m_componentCreature

在文件 ComponentPathfinding.cs11 行定义.

◆ m_componentPilot

ComponentPilot Game.ComponentPathfinding.m_componentPilot

在文件 ComponentPathfinding.cs13 行定义.

◆ m_destinationChanged

bool Game.ComponentPathfinding.m_destinationChanged

在文件 ComponentPathfinding.cs31 行定义.

◆ m_lastPathfindingDestination

Vector3? Game.ComponentPathfinding.m_lastPathfindingDestination

在文件 ComponentPathfinding.cs19 行定义.

◆ m_lastPathfindingTime

double? Game.ComponentPathfinding.m_lastPathfindingTime

在文件 ComponentPathfinding.cs21 行定义.

◆ m_minPathfindingPeriod

const float Game.ComponentPathfinding.m_minPathfindingPeriod = 6f
static

在文件 ComponentPathfinding.cs33 行定义.

◆ m_nextUpdateTime

double Game.ComponentPathfinding.m_nextUpdateTime

在文件 ComponentPathfinding.cs27 行定义.

◆ m_pathfindingCongestion

float Game.ComponentPathfinding.m_pathfindingCongestion

在文件 ComponentPathfinding.cs23 行定义.

◆ m_pathfindingCongestionCapacity

const float Game.ComponentPathfinding.m_pathfindingCongestionCapacity = 500f
static

在文件 ComponentPathfinding.cs35 行定义.

◆ m_pathfindingCongestionCapacityLimit

const float Game.ComponentPathfinding.m_pathfindingCongestionCapacityLimit = 1000f
static

在文件 ComponentPathfinding.cs37 行定义.

◆ m_pathfindingCongestionDecayRate

const float Game.ComponentPathfinding.m_pathfindingCongestionDecayRate = 20f
static

在文件 ComponentPathfinding.cs39 行定义.

◆ m_pathfindingResult

PathfindingResult Game.ComponentPathfinding.m_pathfindingResult = new()

在文件 ComponentPathfinding.cs25 行定义.

◆ m_random

Random Game.ComponentPathfinding.m_random = new()

在文件 ComponentPathfinding.cs17 行定义.

◆ m_randomMoveCount

int Game.ComponentPathfinding.m_randomMoveCount

在文件 ComponentPathfinding.cs29 行定义.

◆ m_stateMachine

StateMachine Game.ComponentPathfinding.m_stateMachine = new()

在文件 ComponentPathfinding.cs15 行定义.

◆ m_subsystemPathfinding

SubsystemPathfinding Game.ComponentPathfinding.m_subsystemPathfinding

在文件 ComponentPathfinding.cs9 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentPathfinding.m_subsystemTime

在文件 ComponentPathfinding.cs7 行定义.

属性说明

◆ Destination

Vector3? Game.ComponentPathfinding.Destination
getset

在文件 ComponentPathfinding.cs43 行定义.

◆ DoNotAvoidBody

ComponentBody Game.ComponentPathfinding.DoNotAvoidBody
getset

在文件 ComponentPathfinding.cs57 行定义.

◆ IgnoreHeightDifference

bool Game.ComponentPathfinding.IgnoreHeightDifference
getset

在文件 ComponentPathfinding.cs53 行定义.

◆ IsStuck

bool Game.ComponentPathfinding.IsStuck
getset

在文件 ComponentPathfinding.cs59 行定义.

◆ MaxPathfindingPositions

int Game.ComponentPathfinding.MaxPathfindingPositions
getset

在文件 ComponentPathfinding.cs49 行定义.

◆ Range

float Game.ComponentPathfinding.Range
getset

在文件 ComponentPathfinding.cs45 行定义.

◆ RaycastDestination

bool Game.ComponentPathfinding.RaycastDestination
getset

在文件 ComponentPathfinding.cs55 行定义.

◆ Speed

float Game.ComponentPathfinding.Speed
getset

在文件 ComponentPathfinding.cs47 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentPathfinding.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentPathfinding.cs61 行定义.

◆ UseRandomMovements

bool Game.ComponentPathfinding.UseRandomMovements
getset

在文件 ComponentPathfinding.cs51 行定义.


该类的文档由以下文件生成: