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

Public 成员函数

virtual void OnSpiked (SubsystemBlockBehavior spikeBlockBehavior, float damage, CellFace cellFace, float velocity, ComponentBody componentBody, string causeOfDeath)
virtual float CalculateFallDamage ()
virtual void Heal (float amount)
virtual void Injure (float amount, ComponentCreature attacker, bool ignoreInvulnerability, string cause)
virtual void Injure (Injury injury)
virtual void Die (Injury injury)
virtual void Update (float dt)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

SubsystemTime m_subsystemTime
SubsystemTimeOfDay m_subsystemTimeOfDay
SubsystemTerrain m_subsystemTerrain
SubsystemParticles m_subsystemParticles
SubsystemGameInfo m_subsystemGameInfo
SubsystemPickables m_subsystemPickables
ComponentCreature m_componentCreature
ComponentPlayer m_componentPlayer
ComponentOnFire m_componentOnFire
ComponentFactors m_componentFactors
int ExperienceOrbBlockIndex = 8
float m_lastHealth
bool m_wasStanding
float m_redScreenFactor
Random m_random = new()
bool m_regenerateLifeEnabled = true
float? RedScreenFactorInCrush = 1f
float m_attackResilience
float m_fallResilience
float m_fireResilience
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

const string fName = "ComponentHealth"

属性

virtual float VoidDamageFactor [get, set]
virtual float AirLackResilience [get, set]
virtual float MagmaResilience [get, set]
virtual float CrushResilience [get, set]
virtual float SpikeResilience [get, set]
virtual float ExplosionResilience [get, set]
virtual bool StackExperienceOnKill [get, set]
virtual string CauseOfDeath [get, set]
virtual bool IsInvulnerable [get, set]
virtual float Health [get, set]
virtual float HealthChange [get, set]
virtual BreathingMode BreathingMode [get, set]
virtual float Air [get, set]
virtual float AirCapacity [get, set]
virtual bool CanStrand [get, set]
virtual float AttackResilience [get, set]
 攻击抗性
virtual float FallResilience [get, set]
 掉落抗性
virtual float FireResilience [get, set]
 火焰抗性
virtual ? double DeathTime [get, set]
virtual float CorpseDuration [get, set]
virtual float AttackResilienceFactor [get, set]
 攻击抗性加成系数
virtual float FallResilienceFactor [get, set]
 掉落抗性加成系数
virtual float FireResilienceFactor [get, set]
 火焰伤害抗性系数
virtual float HealFactor [get, set]
 生命恢复速度系数
UpdateOrder UpdateOrder [get]
virtual Action< ComponentCreatureAttacked [get, set]
virtual Action< InjuryInjured [get, set]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

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

详细描述

在文件 ComponentHealth.cs6 行定义.

成员函数说明

◆ CalculateFallDamage()

virtual float Game.ComponentHealth.CalculateFallDamage ( )
virtual

在文件 ComponentHealth.cs52 行定义.

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

◆ Die()

virtual void Game.ComponentHealth.Die ( Injury injury)
virtual

在文件 ComponentHealth.cs178 行定义.

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

◆ Heal()

virtual void Game.ComponentHealth.Heal ( float amount)
virtual

在文件 ComponentHealth.cs140 行定义.

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

◆ Injure() [1/2]

virtual void Game.ComponentHealth.Injure ( float amount,
ComponentCreature attacker,
bool ignoreInvulnerability,
string cause )
virtual

在文件 ComponentHealth.cs149 行定义.

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

◆ Injure() [2/2]

virtual void Game.ComponentHealth.Injure ( Injury injury)
virtual

在文件 ComponentHealth.cs154 行定义.

函数调用图:

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentHealth.cs437 行定义.

函数调用图:

◆ OnSpiked()

virtual void Game.ComponentHealth.OnSpiked ( SubsystemBlockBehavior spikeBlockBehavior,
float damage,
CellFace cellFace,
float velocity,
ComponentBody componentBody,
string causeOfDeath )
virtual

在文件 ComponentHealth.cs35 行定义.

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

◆ Save()

override void Game.ComponentHealth.Save ( ValuesDictionary valuesDictionary,
EntityToIdMap entityToIdMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentHealth.cs478 行定义.

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentHealth.cs250 行定义.

函数调用图:

类成员变量说明

◆ ExperienceOrbBlockIndex

int Game.ComponentHealth.ExperienceOrbBlockIndex = 8

在文件 ComponentHealth.cs20 行定义.

◆ fName

const string Game.ComponentHealth.fName = "ComponentHealth"
static

在文件 ComponentHealth.cs27 行定义.

◆ m_attackResilience

float Game.ComponentHealth.m_attackResilience

在文件 ComponentHealth.cs81 行定义.

◆ m_componentCreature

ComponentCreature Game.ComponentHealth.m_componentCreature

在文件 ComponentHealth.cs13 行定义.

◆ m_componentFactors

ComponentFactors Game.ComponentHealth.m_componentFactors

在文件 ComponentHealth.cs16 行定义.

◆ m_componentOnFire

ComponentOnFire Game.ComponentHealth.m_componentOnFire

在文件 ComponentHealth.cs15 行定义.

◆ m_componentPlayer

ComponentPlayer Game.ComponentHealth.m_componentPlayer

在文件 ComponentHealth.cs14 行定义.

◆ m_fallResilience

float Game.ComponentHealth.m_fallResilience

在文件 ComponentHealth.cs82 行定义.

◆ m_fireResilience

float Game.ComponentHealth.m_fireResilience

在文件 ComponentHealth.cs83 行定义.

◆ m_lastHealth

float Game.ComponentHealth.m_lastHealth

在文件 ComponentHealth.cs21 行定义.

◆ m_random

Random Game.ComponentHealth.m_random = new()

在文件 ComponentHealth.cs24 行定义.

◆ m_redScreenFactor

float Game.ComponentHealth.m_redScreenFactor

在文件 ComponentHealth.cs23 行定义.

◆ m_regenerateLifeEnabled

bool Game.ComponentHealth.m_regenerateLifeEnabled = true

在文件 ComponentHealth.cs25 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.ComponentHealth.m_subsystemGameInfo

在文件 ComponentHealth.cs11 行定义.

◆ m_subsystemParticles

SubsystemParticles Game.ComponentHealth.m_subsystemParticles

在文件 ComponentHealth.cs10 行定义.

◆ m_subsystemPickables

SubsystemPickables Game.ComponentHealth.m_subsystemPickables

在文件 ComponentHealth.cs12 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentHealth.m_subsystemTerrain

在文件 ComponentHealth.cs9 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentHealth.m_subsystemTime

在文件 ComponentHealth.cs7 行定义.

◆ m_subsystemTimeOfDay

SubsystemTimeOfDay Game.ComponentHealth.m_subsystemTimeOfDay

在文件 ComponentHealth.cs8 行定义.

◆ m_wasStanding

bool Game.ComponentHealth.m_wasStanding

在文件 ComponentHealth.cs22 行定义.

◆ RedScreenFactorInCrush

float? Game.ComponentHealth.RedScreenFactorInCrush = 1f

在文件 ComponentHealth.cs26 行定义.

属性说明

◆ Air

virtual float Game.ComponentHealth.Air
getset

在文件 ComponentHealth.cs76 行定义.

◆ AirCapacity

virtual float Game.ComponentHealth.AirCapacity
getset

在文件 ComponentHealth.cs78 行定义.

◆ AirLackResilience

virtual float Game.ComponentHealth.AirLackResilience
getset

在文件 ComponentHealth.cs29 行定义.

◆ Attacked

virtual Action<ComponentCreature> Game.ComponentHealth.Attacked
getset

在文件 ComponentHealth.cs136 行定义.

◆ AttackResilience

virtual float Game.ComponentHealth.AttackResilience
getset

攻击抗性

在文件 ComponentHealth.cs88 行定义.

◆ AttackResilienceFactor

virtual float Game.ComponentHealth.AttackResilienceFactor
getset

攻击抗性加成系数

在文件 ComponentHealth.cs116 行定义.

◆ BreathingMode

virtual BreathingMode Game.ComponentHealth.BreathingMode
getset

在文件 ComponentHealth.cs74 行定义.

◆ CanStrand

virtual bool Game.ComponentHealth.CanStrand
getset

在文件 ComponentHealth.cs80 行定义.

◆ CauseOfDeath

virtual string Game.ComponentHealth.CauseOfDeath
getset

在文件 ComponentHealth.cs66 行定义.

◆ CorpseDuration

virtual float Game.ComponentHealth.CorpseDuration
getset

在文件 ComponentHealth.cs111 行定义.

◆ CrushResilience

virtual float Game.ComponentHealth.CrushResilience
getset

在文件 ComponentHealth.cs31 行定义.

◆ DeathTime

virtual ? double Game.ComponentHealth.DeathTime
getset

在文件 ComponentHealth.cs109 行定义.

◆ ExplosionResilience

virtual float Game.ComponentHealth.ExplosionResilience
getset

在文件 ComponentHealth.cs33 行定义.

◆ FallResilience

virtual float Game.ComponentHealth.FallResilience
getset

掉落抗性

在文件 ComponentHealth.cs96 行定义.

◆ FallResilienceFactor

virtual float Game.ComponentHealth.FallResilienceFactor
getset

掉落抗性加成系数

在文件 ComponentHealth.cs121 行定义.

◆ FireResilience

virtual float Game.ComponentHealth.FireResilience
getset

火焰抗性

在文件 ComponentHealth.cs104 行定义.

◆ FireResilienceFactor

virtual float Game.ComponentHealth.FireResilienceFactor
getset

火焰伤害抗性系数

在文件 ComponentHealth.cs126 行定义.

◆ HealFactor

virtual float Game.ComponentHealth.HealFactor
getset

生命恢复速度系数

在文件 ComponentHealth.cs131 行定义.

◆ Health

virtual float Game.ComponentHealth.Health
getset

在文件 ComponentHealth.cs70 行定义.

◆ HealthChange

virtual float Game.ComponentHealth.HealthChange
getset

在文件 ComponentHealth.cs72 行定义.

◆ Injured

virtual Action<Injury> Game.ComponentHealth.Injured
getset

在文件 ComponentHealth.cs138 行定义.

◆ IsInvulnerable

virtual bool Game.ComponentHealth.IsInvulnerable
getset

在文件 ComponentHealth.cs68 行定义.

◆ MagmaResilience

virtual float Game.ComponentHealth.MagmaResilience
getset

在文件 ComponentHealth.cs30 行定义.

◆ SpikeResilience

virtual float Game.ComponentHealth.SpikeResilience
getset

在文件 ComponentHealth.cs32 行定义.

◆ StackExperienceOnKill

virtual bool Game.ComponentHealth.StackExperienceOnKill
getset

在文件 ComponentHealth.cs64 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentHealth.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentHealth.cs133 行定义.

◆ VoidDamageFactor

virtual float Game.ComponentHealth.VoidDamageFactor
getset

在文件 ComponentHealth.cs28 行定义.


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