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

Public 成员函数

virtual void SetDestination (Vector3? destination, float speed, float range, bool ignoreHeightDifference, bool raycastDestination, bool takeRisks, ComponentBody doNotAvoidBody)
virtual void Stop ()
virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual bool ShouldAvoidBlock (Block block, int cellValue)
virtual bool IsTerrainSafeToGo (Vector3 position, Vector3 direction)
 地形是否安全可通行
virtual ComponentBody FindNearestBodyInFront (Vector3 position, Vector2 direction)
virtual Vector3 AvoidNearestBody (Vector3 position, Vector3 destination)
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 成员函数

static ? Vector2 CombineNullables (Vector2? v1, Vector2? v2)
static ? Vector3 CombineNullables (Vector3? v1, Vector3? v2)

Public 属性

SubsystemTime m_subsystemTime
SubsystemBodies m_subsystemBodies
SubsystemTerrain m_subsystemTerrain
ComponentCreature m_componentCreature
Random m_random = new()
Vector2m_walkOrder
Vector3m_flyOrder
Vector3m_swimOrder
Vector2 m_turnOrder
float m_jumpOrder
double m_nextUpdateTime
double m_lastStuckCheckTime
int m_stuckCount
double? m_aboveBelowTime
Vector3m_lastStuckCheckPosition
DynamicArray< ComponentBodym_nearbyBodies = []
double m_nextBodiesUpdateTime
int m_maxFallHeight = 5
int m_maxFallHeightRisk = 7
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

static bool DrawPilotDestination

属性

Vector3Destination [get, set]
float Speed [get, set]
float Range [get, set]
bool IgnoreHeightDifference [get, set]
bool RaycastDestination [get, set]
bool TakeRisks [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 ()

详细描述

在文件 ComponentPilot.cs6 行定义.

成员函数说明

◆ AvoidNearestBody()

virtual Vector3 Game.ComponentPilot.AvoidNearestBody ( Vector3 position,
Vector3 destination )
virtual

在文件 ComponentPilot.cs341 行定义.

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

◆ CombineNullables() [1/2]

? Vector2 Game.ComponentPilot.CombineNullables ( Vector2? v1,
Vector2? v2 )
static

在文件 ComponentPilot.cs360 行定义.

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

◆ CombineNullables() [2/2]

? Vector3 Game.ComponentPilot.CombineNullables ( Vector3? v1,
Vector3? v2 )
static

在文件 ComponentPilot.cs370 行定义.

◆ FindNearestBodyInFront()

virtual ComponentBody Game.ComponentPilot.FindNearestBodyInFront ( Vector3 position,
Vector2 direction )
virtual

在文件 ComponentPilot.cs319 行定义.

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

◆ IsTerrainSafeToGo()

virtual bool Game.ComponentPilot.IsTerrainSafeToGo ( Vector3 position,
Vector3 direction )
virtual

地形是否安全可通行

在文件 ComponentPilot.cs249 行定义.

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

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentPilot.cs237 行定义.

◆ SetDestination()

virtual void Game.ComponentPilot.SetDestination ( Vector3? destination,
float speed,
float range,
bool ignoreHeightDifference,
bool raycastDestination,
bool takeRisks,
ComponentBody doNotAvoidBody )
virtual

在文件 ComponentPilot.cs65 行定义.

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

◆ ShouldAvoidBlock()

virtual bool Game.ComponentPilot.ShouldAvoidBlock ( Block block,
int cellValue )
virtual

在文件 ComponentPilot.cs244 行定义.

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

◆ Stop()

virtual void Game.ComponentPilot.Stop ( )
virtual

在文件 ComponentPilot.cs94 行定义.

函数调用图:

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentPilot.cs106 行定义.

函数调用图:

类成员变量说明

◆ DrawPilotDestination

bool Game.ComponentPilot.DrawPilotDestination
static

在文件 ComponentPilot.cs41 行定义.

◆ m_aboveBelowTime

double? Game.ComponentPilot.m_aboveBelowTime

在文件 ComponentPilot.cs33 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentPilot.m_componentCreature

在文件 ComponentPilot.cs13 行定义.

◆ m_flyOrder

Vector3? Game.ComponentPilot.m_flyOrder

在文件 ComponentPilot.cs19 行定义.

◆ m_jumpOrder

float Game.ComponentPilot.m_jumpOrder

在文件 ComponentPilot.cs25 行定义.

◆ m_lastStuckCheckPosition

Vector3? Game.ComponentPilot.m_lastStuckCheckPosition

在文件 ComponentPilot.cs35 行定义.

◆ m_lastStuckCheckTime

double Game.ComponentPilot.m_lastStuckCheckTime

在文件 ComponentPilot.cs29 行定义.

◆ m_maxFallHeight

int Game.ComponentPilot.m_maxFallHeight = 5

在文件 ComponentPilot.cs43 行定义.

◆ m_maxFallHeightRisk

int Game.ComponentPilot.m_maxFallHeightRisk = 7

在文件 ComponentPilot.cs45 行定义.

◆ m_nearbyBodies

DynamicArray<ComponentBody> Game.ComponentPilot.m_nearbyBodies = []

在文件 ComponentPilot.cs37 行定义.

◆ m_nextBodiesUpdateTime

double Game.ComponentPilot.m_nextBodiesUpdateTime

在文件 ComponentPilot.cs39 行定义.

◆ m_nextUpdateTime

double Game.ComponentPilot.m_nextUpdateTime

在文件 ComponentPilot.cs27 行定义.

◆ m_random

Random Game.ComponentPilot.m_random = new()

在文件 ComponentPilot.cs15 行定义.

◆ m_stuckCount

int Game.ComponentPilot.m_stuckCount

在文件 ComponentPilot.cs31 行定义.

◆ m_subsystemBodies

SubsystemBodies Game.ComponentPilot.m_subsystemBodies

在文件 ComponentPilot.cs9 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentPilot.m_subsystemTerrain

在文件 ComponentPilot.cs11 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentPilot.m_subsystemTime

在文件 ComponentPilot.cs7 行定义.

◆ m_swimOrder

Vector3? Game.ComponentPilot.m_swimOrder

在文件 ComponentPilot.cs21 行定义.

◆ m_turnOrder

Vector2 Game.ComponentPilot.m_turnOrder

在文件 ComponentPilot.cs23 行定义.

◆ m_walkOrder

Vector2? Game.ComponentPilot.m_walkOrder

在文件 ComponentPilot.cs17 行定义.

属性说明

◆ Destination

Vector3? Game.ComponentPilot.Destination
getset

在文件 ComponentPilot.cs47 行定义.

◆ DoNotAvoidBody

ComponentBody Game.ComponentPilot.DoNotAvoidBody
getset

在文件 ComponentPilot.cs59 行定义.

◆ IgnoreHeightDifference

bool Game.ComponentPilot.IgnoreHeightDifference
getset

在文件 ComponentPilot.cs53 行定义.

◆ IsStuck

bool Game.ComponentPilot.IsStuck
getset

在文件 ComponentPilot.cs61 行定义.

◆ Range

float Game.ComponentPilot.Range
getset

在文件 ComponentPilot.cs51 行定义.

◆ RaycastDestination

bool Game.ComponentPilot.RaycastDestination
getset

在文件 ComponentPilot.cs55 行定义.

◆ Speed

float Game.ComponentPilot.Speed
getset

在文件 ComponentPilot.cs49 行定义.

◆ TakeRisks

bool Game.ComponentPilot.TakeRisks
getset

在文件 ComponentPilot.cs57 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentPilot.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentPilot.cs63 行定义.


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