Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.Attackment

The spell "Attackment" is wrong, But it is not recommended to change it because many mods rely on this class. Change of its name will make a lot of mods unavailable. 更多...

类 Game.Attackment 继承关系图:
Game.Attackment 的协作图:

Public 成员函数

 Attackment (Entity target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower)
 Attackment (ComponentBody target, Entity attacker, Vector3 hitPoint, Vector3 hitDirection, float attackPower)
virtual float CalculateInjuryAmount ()
virtual void AddHitValueParticleSystem (float damage)
virtual void ProcessAttackmentToCreature (out float injuryAmount)
virtual void ProcessAttackmentToNonCreature (out float injuryAmount)
virtual bool DisableFriendlyFire ()
virtual void ImpulseTarget ()
virtual void StunTarget ()
virtual void ProcessAttackment ()

Public 属性

Entity Target
Entity Attacker
Vector3 HitPoint
Vector3 HitDirection
float AttackPower
float? StunTimeSet
float StunTimeAdd = 0.2f
float ImpulseFactor = 2f
string CauseOfDeath
bool EnableArmorProtection = true
bool EnableResilienceFactor = true
bool EnableHitValueParticleSystem = true
string AttackSoundName = "Audio/Impacts/Body"
float AttackSoundVolume = 1f
float AttackSoundPitch
bool AllowImpulseAndStunWhenDamageIsZero = true
float? m_injuryAmount
ValuesDictionary DictionaryForOtherMods = new()
 模组可以向Dictionary里面添加内容,另一个模组可以从Dictionary读取内容,以实现模组联动效果

Protected 属性

Random m_random = new()

属性

virtual ComponentBody TargetBody [get, set]
virtual float ArmorProtectionDivision = 1f [get, set]
 该攻击被护甲结算时,护甲的防御值会除以ArmorProtectionDivision。 例如当ArmorProtectionDivision = 2,模组护甲的ArmorProtection = 150时,实际防御75伤害。 可以基于此设计模组生物的攻击力和护甲数值

详细描述

The spell "Attackment" is wrong, But it is not recommended to change it because many mods rely on this class. Change of its name will make a lot of mods unavailable.

在文件 Attackment.cs12 行定义.

构造及析构函数说明

◆ Attackment() [1/2]

Game.Attackment.Attackment ( Entity target,
Entity attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower )

在文件 Attackment.cs17 行定义.

函数调用图:

◆ Attackment() [2/2]

Game.Attackment.Attackment ( ComponentBody target,
Entity attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower )

在文件 Attackment.cs39 行定义.

成员函数说明

◆ AddHitValueParticleSystem()

virtual void Game.Attackment.AddHitValueParticleSystem ( float damage)
virtual

在文件 Attackment.cs113 行定义.

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

◆ CalculateInjuryAmount()

virtual float Game.Attackment.CalculateInjuryAmount ( )
virtual

在文件 Attackment.cs82 行定义.

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

◆ DisableFriendlyFire()

virtual bool Game.Attackment.DisableFriendlyFire ( )
virtual

在文件 Attackment.cs182 行定义.

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

◆ ImpulseTarget()

virtual void Game.Attackment.ImpulseTarget ( )
virtual

在文件 Attackment.cs192 行定义.

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

◆ ProcessAttackment()

virtual void Game.Attackment.ProcessAttackment ( )
virtual

在文件 Attackment.cs213 行定义.

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

◆ ProcessAttackmentToCreature()

virtual void Game.Attackment.ProcessAttackmentToCreature ( out float injuryAmount)
virtual

在文件 Attackment.cs137 行定义.

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

◆ ProcessAttackmentToNonCreature()

virtual void Game.Attackment.ProcessAttackmentToNonCreature ( out float injuryAmount)
virtual

在文件 Attackment.cs160 行定义.

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

◆ StunTarget()

virtual void Game.Attackment.StunTarget ( )
virtual

在文件 Attackment.cs200 行定义.

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

类成员变量说明

◆ AllowImpulseAndStunWhenDamageIsZero

bool Game.Attackment.AllowImpulseAndStunWhenDamageIsZero = true

在文件 Attackment.cs73 行定义.

◆ Attacker

Entity Game.Attackment.Attacker

在文件 Attackment.cs14 行定义.

◆ AttackPower

float Game.Attackment.AttackPower

在文件 Attackment.cs54 行定义.

◆ AttackSoundName

string Game.Attackment.AttackSoundName = "Audio/Impacts/Body"

在文件 Attackment.cs62 行定义.

◆ AttackSoundPitch

float Game.Attackment.AttackSoundPitch

在文件 Attackment.cs64 行定义.

◆ AttackSoundVolume

float Game.Attackment.AttackSoundVolume = 1f

在文件 Attackment.cs63 行定义.

◆ CauseOfDeath

string Game.Attackment.CauseOfDeath

在文件 Attackment.cs58 行定义.

◆ DictionaryForOtherMods

ValuesDictionary Game.Attackment.DictionaryForOtherMods = new()

模组可以向Dictionary里面添加内容,另一个模组可以从Dictionary读取内容,以实现模组联动效果

在文件 Attackment.cs80 行定义.

◆ EnableArmorProtection

bool Game.Attackment.EnableArmorProtection = true

在文件 Attackment.cs59 行定义.

◆ EnableHitValueParticleSystem

bool Game.Attackment.EnableHitValueParticleSystem = true

在文件 Attackment.cs61 行定义.

◆ EnableResilienceFactor

bool Game.Attackment.EnableResilienceFactor = true

在文件 Attackment.cs60 行定义.

◆ HitDirection

Vector3 Game.Attackment.HitDirection

在文件 Attackment.cs53 行定义.

◆ HitPoint

Vector3 Game.Attackment.HitPoint

在文件 Attackment.cs52 行定义.

◆ ImpulseFactor

float Game.Attackment.ImpulseFactor = 2f

在文件 Attackment.cs57 行定义.

◆ m_injuryAmount

float? Game.Attackment.m_injuryAmount

在文件 Attackment.cs75 行定义.

◆ m_random

Random Game.Attackment.m_random = new()
protected

在文件 Attackment.cs15 行定义.

◆ StunTimeAdd

float Game.Attackment.StunTimeAdd = 0.2f

在文件 Attackment.cs56 行定义.

◆ StunTimeSet

float? Game.Attackment.StunTimeSet

在文件 Attackment.cs55 行定义.

◆ Target

Entity Game.Attackment.Target

在文件 Attackment.cs13 行定义.

属性说明

◆ ArmorProtectionDivision

virtual float Game.Attackment.ArmorProtectionDivision = 1f
getset

该攻击被护甲结算时,护甲的防御值会除以ArmorProtectionDivision。 例如当ArmorProtectionDivision = 2,模组护甲的ArmorProtection = 150时,实际防御75伤害。 可以基于此设计模组生物的攻击力和护甲数值

在文件 Attackment.cs71 行定义.

◆ TargetBody

virtual ComponentBody Game.Attackment.TargetBody
getset

在文件 Attackment.cs47 行定义.


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