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

Public 成员函数

void CallNearbyCreaturesHelp (ComponentCreature target, float maxRange, float maxChaseTime, bool isPersistent)
Vector3FindHerdCenter ()
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 属性

SubsystemCreatureSpawn m_subsystemCreatureSpawn
SubsystemTime m_subsystemTime
ComponentCreature m_componentCreature
ComponentPathfinding m_componentPathfinding
StateMachine m_stateMachine = new()
float m_dt
float m_importanceLevel
Random m_random = new()
Vector2 m_look
float m_herdingRange
bool m_autoNearbyCreaturesHelp
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

属性

string HerdName [get, set]
UpdateOrder UpdateOrder [get]
override float ImportanceLevel [get]
属性 继承自 Game.ComponentBehavior
float ImportanceLevel [get]
virtual bool IsActive [get, set]
virtual string DebugInfo [get]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

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

详细描述

在文件 ComponentHerdBehavior.cs6 行定义.

成员函数说明

◆ CallNearbyCreaturesHelp()

void Game.ComponentHerdBehavior.CallNearbyCreaturesHelp ( ComponentCreature target,
float maxRange,
float maxChaseTime,
bool isPersistent )

在文件 ComponentHerdBehavior.cs35 行定义.

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

◆ FindHerdCenter()

Vector3? Game.ComponentHerdBehavior.FindHerdCenter ( )

在文件 ComponentHerdBehavior.cs65 行定义.

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

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentHerdBehavior.cs112 行定义.

函数调用图:

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentHerdBehavior.cs103 行定义.

类成员变量说明

◆ m_autoNearbyCreaturesHelp

bool Game.ComponentHerdBehavior.m_autoNearbyCreaturesHelp

在文件 ComponentHerdBehavior.cs27 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentHerdBehavior.m_componentCreature

在文件 ComponentHerdBehavior.cs11 行定义.

◆ m_componentPathfinding

ComponentPathfinding Game.ComponentHerdBehavior.m_componentPathfinding

在文件 ComponentHerdBehavior.cs13 行定义.

◆ m_dt

float Game.ComponentHerdBehavior.m_dt

在文件 ComponentHerdBehavior.cs17 行定义.

◆ m_herdingRange

float Game.ComponentHerdBehavior.m_herdingRange

在文件 ComponentHerdBehavior.cs25 行定义.

◆ m_importanceLevel

float Game.ComponentHerdBehavior.m_importanceLevel

在文件 ComponentHerdBehavior.cs19 行定义.

◆ m_look

Vector2 Game.ComponentHerdBehavior.m_look

在文件 ComponentHerdBehavior.cs23 行定义.

◆ m_random

Random Game.ComponentHerdBehavior.m_random = new()

在文件 ComponentHerdBehavior.cs21 行定义.

◆ m_stateMachine

StateMachine Game.ComponentHerdBehavior.m_stateMachine = new()

在文件 ComponentHerdBehavior.cs15 行定义.

◆ m_subsystemCreatureSpawn

SubsystemCreatureSpawn Game.ComponentHerdBehavior.m_subsystemCreatureSpawn

在文件 ComponentHerdBehavior.cs7 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentHerdBehavior.m_subsystemTime

在文件 ComponentHerdBehavior.cs9 行定义.

属性说明

◆ HerdName

string Game.ComponentHerdBehavior.HerdName
getset

在文件 ComponentHerdBehavior.cs29 行定义.

◆ ImportanceLevel

override float Game.ComponentHerdBehavior.ImportanceLevel
get

在文件 ComponentHerdBehavior.cs33 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentHerdBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentHerdBehavior.cs31 行定义.


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