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

Public 成员函数

virtual void Attack (ComponentCreature componentCreature, float maxRange, float maxChaseTime, bool isPersistent)
virtual void StopAttack ()
virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual ComponentCreature FindTarget ()
virtual float ScoreTarget (ComponentCreature componentCreature)
virtual bool IsTargetInWater (ComponentBody target)
virtual bool IsTargetInAttackRange (ComponentBody target)
virtual bool IsBodyInAttackRange (ComponentBody target)
virtual ComponentBody GetHitBody (ComponentBody target, out Vector3 hitPoint)
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 属性

SubsystemGameInfo m_subsystemGameInfo
SubsystemPlayers m_subsystemPlayers
SubsystemSky m_subsystemSky
SubsystemBodies m_subsystemBodies
SubsystemTime m_subsystemTime
SubsystemNoise m_subsystemNoise
ComponentCreature m_componentCreature
ComponentPathfinding m_componentPathfinding
ComponentMiner m_componentMiner
ComponentRandomFeedBehavior m_componentFeedBehavior
ComponentCreatureModel m_componentCreatureModel
DynamicArray< ComponentBodym_componentBodies = []
Random m_random = new()
StateMachine m_stateMachine = new()
ComponentFactors m_componentFactors
float m_dayChaseRange
float m_nightChaseRange
float m_dayChaseTime
float m_nightChaseTime
float m_chaseNonPlayerProbability
float m_chaseWhenAttackedProbability
float m_chaseOnTouchProbability
CreatureCategory m_autoChaseMask
float m_importanceLevel
float m_targetUnsuitableTime
float m_targetInRangeTime
double m_nextUpdateTime
ComponentCreature m_target
float m_dt
float m_range
float m_chaseTime
bool m_isPersistent
float m_autoChaseSuppressionTime
float ImportanceLevelNonPersistent = 200f
float ImportanceLevelPersistent = 200f
float MaxAttackRange = 1.75f
bool AllowAttackingStandingOnBody = true
bool JumpWhenTargetStanding = true
bool AttacksPlayer = true
bool AttacksNonPlayerCreature = true
float ChaseRangeOnTouch = 7f
float ChaseTimeOnTouch = 7f
float? ChaseRangeOnAttacked = null
float? ChaseTimeOnAttacked = null
bool? ChasePersistentOnAttacked = null
float MinHealthToAttackActively = 0.4f
bool Suppressed = false
bool PlayIdleSoundWhenStartToChase = true
bool PlayAngrySoundWhenChasing = true
float TargetInRangeTimeToChase = 3f
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

属性

ComponentCreature Target [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]

Private 属性

Dictionary< ModLoader, Action > Hooks = []

额外继承的成员函数

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

详细描述

在文件 ComponentChaseBehavior.cs6 行定义.

成员函数说明

◆ Attack()

virtual void Game.ComponentChaseBehavior.Attack ( ComponentCreature componentCreature,
float maxRange,
float maxChaseTime,
bool isPersistent )
virtual

在文件 ComponentChaseBehavior.cs116 行定义.

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

◆ FindTarget()

virtual ComponentCreature Game.ComponentChaseBehavior.FindTarget ( )
virtual

在文件 ComponentChaseBehavior.cs424 行定义.

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

◆ GetHitBody()

virtual ComponentBody Game.ComponentChaseBehavior.GetHitBody ( ComponentBody target,
out Vector3 hitPoint )
virtual

在文件 ComponentChaseBehavior.cs552 行定义.

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

◆ IsBodyInAttackRange()

virtual bool Game.ComponentChaseBehavior.IsBodyInAttackRange ( ComponentBody target)
virtual

在文件 ComponentChaseBehavior.cs530 行定义.

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

◆ IsTargetInAttackRange()

virtual bool Game.ComponentChaseBehavior.IsTargetInAttackRange ( ComponentBody target)
virtual

在文件 ComponentChaseBehavior.cs495 行定义.

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

◆ IsTargetInWater()

virtual bool Game.ComponentChaseBehavior.IsTargetInWater ( ComponentBody target)
virtual

在文件 ComponentChaseBehavior.cs479 行定义.

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

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentChaseBehavior.cs204 行定义.

函数调用图:

◆ ScoreTarget()

virtual float Game.ComponentChaseBehavior.ScoreTarget ( ComponentCreature componentCreature)
virtual

在文件 ComponentChaseBehavior.cs443 行定义.

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

◆ StopAttack()

virtual void Game.ComponentChaseBehavior.StopAttack ( )
virtual

在文件 ComponentChaseBehavior.cs135 行定义.

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

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentChaseBehavior.cs153 行定义.

函数调用图:

类成员变量说明

◆ AllowAttackingStandingOnBody

bool Game.ComponentChaseBehavior.AllowAttackingStandingOnBody = true

在文件 ComponentChaseBehavior.cs83 行定义.

◆ AttacksNonPlayerCreature

bool Game.ComponentChaseBehavior.AttacksNonPlayerCreature = true

在文件 ComponentChaseBehavior.cs89 行定义.

◆ AttacksPlayer

bool Game.ComponentChaseBehavior.AttacksPlayer = true

在文件 ComponentChaseBehavior.cs87 行定义.

◆ ChasePersistentOnAttacked

bool? Game.ComponentChaseBehavior.ChasePersistentOnAttacked = null

在文件 ComponentChaseBehavior.cs99 行定义.

◆ ChaseRangeOnAttacked

float? Game.ComponentChaseBehavior.ChaseRangeOnAttacked = null

在文件 ComponentChaseBehavior.cs95 行定义.

◆ ChaseRangeOnTouch

float Game.ComponentChaseBehavior.ChaseRangeOnTouch = 7f

在文件 ComponentChaseBehavior.cs91 行定义.

◆ ChaseTimeOnAttacked

float? Game.ComponentChaseBehavior.ChaseTimeOnAttacked = null

在文件 ComponentChaseBehavior.cs97 行定义.

◆ ChaseTimeOnTouch

float Game.ComponentChaseBehavior.ChaseTimeOnTouch = 7f

在文件 ComponentChaseBehavior.cs93 行定义.

◆ Hooks

Dictionary<ModLoader, Action> Game.ComponentChaseBehavior.Hooks = []
private

在文件 ComponentChaseBehavior.cs8 行定义.

◆ ImportanceLevelNonPersistent

float Game.ComponentChaseBehavior.ImportanceLevelNonPersistent = 200f

在文件 ComponentChaseBehavior.cs77 行定义.

◆ ImportanceLevelPersistent

float Game.ComponentChaseBehavior.ImportanceLevelPersistent = 200f

在文件 ComponentChaseBehavior.cs79 行定义.

◆ JumpWhenTargetStanding

bool Game.ComponentChaseBehavior.JumpWhenTargetStanding = true

在文件 ComponentChaseBehavior.cs85 行定义.

◆ m_autoChaseMask

CreatureCategory Game.ComponentChaseBehavior.m_autoChaseMask

在文件 ComponentChaseBehavior.cs55 行定义.

◆ m_autoChaseSuppressionTime

float Game.ComponentChaseBehavior.m_autoChaseSuppressionTime

在文件 ComponentChaseBehavior.cs75 行定义.

◆ m_chaseNonPlayerProbability

float Game.ComponentChaseBehavior.m_chaseNonPlayerProbability

在文件 ComponentChaseBehavior.cs49 行定义.

◆ m_chaseOnTouchProbability

float Game.ComponentChaseBehavior.m_chaseOnTouchProbability

在文件 ComponentChaseBehavior.cs53 行定义.

◆ m_chaseTime

float Game.ComponentChaseBehavior.m_chaseTime

在文件 ComponentChaseBehavior.cs71 行定义.

◆ m_chaseWhenAttackedProbability

float Game.ComponentChaseBehavior.m_chaseWhenAttackedProbability

在文件 ComponentChaseBehavior.cs51 行定义.

◆ m_componentBodies

DynamicArray<ComponentBody> Game.ComponentChaseBehavior.m_componentBodies = []

在文件 ComponentChaseBehavior.cs33 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentChaseBehavior.m_componentCreature

在文件 ComponentChaseBehavior.cs23 行定义.

◆ m_componentCreatureModel

ComponentCreatureModel Game.ComponentChaseBehavior.m_componentCreatureModel

在文件 ComponentChaseBehavior.cs31 行定义.

◆ m_componentFactors

ComponentFactors Game.ComponentChaseBehavior.m_componentFactors

在文件 ComponentChaseBehavior.cs39 行定义.

◆ m_componentFeedBehavior

ComponentRandomFeedBehavior Game.ComponentChaseBehavior.m_componentFeedBehavior

在文件 ComponentChaseBehavior.cs29 行定义.

◆ m_componentMiner

ComponentMiner Game.ComponentChaseBehavior.m_componentMiner

在文件 ComponentChaseBehavior.cs27 行定义.

◆ m_componentPathfinding

ComponentPathfinding Game.ComponentChaseBehavior.m_componentPathfinding

在文件 ComponentChaseBehavior.cs25 行定义.

◆ m_dayChaseRange

float Game.ComponentChaseBehavior.m_dayChaseRange

在文件 ComponentChaseBehavior.cs41 行定义.

◆ m_dayChaseTime

float Game.ComponentChaseBehavior.m_dayChaseTime

在文件 ComponentChaseBehavior.cs45 行定义.

◆ m_dt

float Game.ComponentChaseBehavior.m_dt

在文件 ComponentChaseBehavior.cs67 行定义.

◆ m_importanceLevel

float Game.ComponentChaseBehavior.m_importanceLevel

在文件 ComponentChaseBehavior.cs57 行定义.

◆ m_isPersistent

bool Game.ComponentChaseBehavior.m_isPersistent

在文件 ComponentChaseBehavior.cs73 行定义.

◆ m_nextUpdateTime

double Game.ComponentChaseBehavior.m_nextUpdateTime

在文件 ComponentChaseBehavior.cs63 行定义.

◆ m_nightChaseRange

float Game.ComponentChaseBehavior.m_nightChaseRange

在文件 ComponentChaseBehavior.cs43 行定义.

◆ m_nightChaseTime

float Game.ComponentChaseBehavior.m_nightChaseTime

在文件 ComponentChaseBehavior.cs47 行定义.

◆ m_random

Random Game.ComponentChaseBehavior.m_random = new()

在文件 ComponentChaseBehavior.cs35 行定义.

◆ m_range

float Game.ComponentChaseBehavior.m_range

在文件 ComponentChaseBehavior.cs69 行定义.

◆ m_stateMachine

StateMachine Game.ComponentChaseBehavior.m_stateMachine = new()

在文件 ComponentChaseBehavior.cs37 行定义.

◆ m_subsystemBodies

SubsystemBodies Game.ComponentChaseBehavior.m_subsystemBodies

在文件 ComponentChaseBehavior.cs17 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.ComponentChaseBehavior.m_subsystemGameInfo

在文件 ComponentChaseBehavior.cs11 行定义.

◆ m_subsystemNoise

SubsystemNoise Game.ComponentChaseBehavior.m_subsystemNoise

在文件 ComponentChaseBehavior.cs21 行定义.

◆ m_subsystemPlayers

SubsystemPlayers Game.ComponentChaseBehavior.m_subsystemPlayers

在文件 ComponentChaseBehavior.cs13 行定义.

◆ m_subsystemSky

SubsystemSky Game.ComponentChaseBehavior.m_subsystemSky

在文件 ComponentChaseBehavior.cs15 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentChaseBehavior.m_subsystemTime

在文件 ComponentChaseBehavior.cs19 行定义.

◆ m_target

ComponentCreature Game.ComponentChaseBehavior.m_target

在文件 ComponentChaseBehavior.cs65 行定义.

◆ m_targetInRangeTime

float Game.ComponentChaseBehavior.m_targetInRangeTime

在文件 ComponentChaseBehavior.cs61 行定义.

◆ m_targetUnsuitableTime

float Game.ComponentChaseBehavior.m_targetUnsuitableTime

在文件 ComponentChaseBehavior.cs59 行定义.

◆ MaxAttackRange

float Game.ComponentChaseBehavior.MaxAttackRange = 1.75f

在文件 ComponentChaseBehavior.cs81 行定义.

◆ MinHealthToAttackActively

float Game.ComponentChaseBehavior.MinHealthToAttackActively = 0.4f

在文件 ComponentChaseBehavior.cs101 行定义.

◆ PlayAngrySoundWhenChasing

bool Game.ComponentChaseBehavior.PlayAngrySoundWhenChasing = true

在文件 ComponentChaseBehavior.cs107 行定义.

◆ PlayIdleSoundWhenStartToChase

bool Game.ComponentChaseBehavior.PlayIdleSoundWhenStartToChase = true

在文件 ComponentChaseBehavior.cs105 行定义.

◆ Suppressed

bool Game.ComponentChaseBehavior.Suppressed = false

在文件 ComponentChaseBehavior.cs103 行定义.

◆ TargetInRangeTimeToChase

float Game.ComponentChaseBehavior.TargetInRangeTimeToChase = 3f

在文件 ComponentChaseBehavior.cs108 行定义.

属性说明

◆ ImportanceLevel

override float Game.ComponentChaseBehavior.ImportanceLevel
get

在文件 ComponentChaseBehavior.cs114 行定义.

◆ Target

ComponentCreature Game.ComponentChaseBehavior.Target
get

在文件 ComponentChaseBehavior.cs110 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentChaseBehavior.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentChaseBehavior.cs112 行定义.


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