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

Public 成员函数

virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual float GetFoodFactor (FoodType foodType)
virtual Pickable FindPickable (Vector3 position)
virtual bool TryAddPickable (Pickable pickable)
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
SubsystemPickables m_subsystemPickables
ComponentCreature m_componentCreature
ComponentPathfinding m_componentPathfinding
StateMachine m_stateMachine = new()
Dictionary< Pickable, bool > m_pickables = []
Random m_random = new()
float[] m_foodFactors
float m_importanceLevel
double m_nextFindPickableTime
double m_nextPickablesUpdateTime
Pickable m_pickable
double m_eatTime
float m_satiation
float m_blockedTime
int m_blockedCount
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

const float m_range = 16f

属性

float Satiation [get]
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 ()

详细描述

在文件 ComponentEatPickableBehavior.cs6 行定义.

成员函数说明

◆ FindPickable()

virtual Pickable Game.ComponentEatPickableBehavior.FindPickable ( Vector3 position)
virtual

在文件 ComponentEatPickableBehavior.cs255 行定义.

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

◆ GetFoodFactor()

virtual float Game.ComponentEatPickableBehavior.GetFoodFactor ( FoodType foodType)
virtual

在文件 ComponentEatPickableBehavior.cs253 行定义.

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentEatPickableBehavior.cs54 行定义.

函数调用图:

◆ TryAddPickable()

virtual bool Game.ComponentEatPickableBehavior.TryAddPickable ( Pickable pickable)
virtual

在文件 ComponentEatPickableBehavior.cs276 行定义.

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

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentEatPickableBehavior.cs47 行定义.

函数调用图:

类成员变量说明

◆ m_blockedCount

int Game.ComponentEatPickableBehavior.m_blockedCount

在文件 ComponentEatPickableBehavior.cs37 行定义.

◆ m_blockedTime

float Game.ComponentEatPickableBehavior.m_blockedTime

在文件 ComponentEatPickableBehavior.cs35 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentEatPickableBehavior.m_componentCreature

在文件 ComponentEatPickableBehavior.cs11 行定义.

◆ m_componentPathfinding

ComponentPathfinding Game.ComponentEatPickableBehavior.m_componentPathfinding

在文件 ComponentEatPickableBehavior.cs13 行定义.

◆ m_eatTime

double Game.ComponentEatPickableBehavior.m_eatTime

在文件 ComponentEatPickableBehavior.cs31 行定义.

◆ m_foodFactors

float [] Game.ComponentEatPickableBehavior.m_foodFactors

在文件 ComponentEatPickableBehavior.cs21 行定义.

◆ m_importanceLevel

float Game.ComponentEatPickableBehavior.m_importanceLevel

在文件 ComponentEatPickableBehavior.cs23 行定义.

◆ m_nextFindPickableTime

double Game.ComponentEatPickableBehavior.m_nextFindPickableTime

在文件 ComponentEatPickableBehavior.cs25 行定义.

◆ m_nextPickablesUpdateTime

double Game.ComponentEatPickableBehavior.m_nextPickablesUpdateTime

在文件 ComponentEatPickableBehavior.cs27 行定义.

◆ m_pickable

Pickable Game.ComponentEatPickableBehavior.m_pickable

在文件 ComponentEatPickableBehavior.cs29 行定义.

◆ m_pickables

Dictionary<Pickable, bool> Game.ComponentEatPickableBehavior.m_pickables = []

在文件 ComponentEatPickableBehavior.cs17 行定义.

◆ m_random

Random Game.ComponentEatPickableBehavior.m_random = new()

在文件 ComponentEatPickableBehavior.cs19 行定义.

◆ m_range

const float Game.ComponentEatPickableBehavior.m_range = 16f
static

在文件 ComponentEatPickableBehavior.cs39 行定义.

◆ m_satiation

float Game.ComponentEatPickableBehavior.m_satiation

在文件 ComponentEatPickableBehavior.cs33 行定义.

◆ m_stateMachine

StateMachine Game.ComponentEatPickableBehavior.m_stateMachine = new()

在文件 ComponentEatPickableBehavior.cs15 行定义.

◆ m_subsystemPickables

SubsystemPickables Game.ComponentEatPickableBehavior.m_subsystemPickables

在文件 ComponentEatPickableBehavior.cs9 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentEatPickableBehavior.m_subsystemTime

在文件 ComponentEatPickableBehavior.cs7 行定义.

属性说明

◆ ImportanceLevel

override float Game.ComponentEatPickableBehavior.ImportanceLevel
get

在文件 ComponentEatPickableBehavior.cs45 行定义.

◆ Satiation

float Game.ComponentEatPickableBehavior.Satiation
get

在文件 ComponentEatPickableBehavior.cs41 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentEatPickableBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentEatPickableBehavior.cs43 行定义.


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