My Project v1
Project
载入中...
搜索中...
未找到
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 = String.Empty
 
bool EnableArmorProtection = true
 
bool EnableResilienceFactor = true
 
bool EnableHitValueParticleSystem = true
 
string AttackSoundName = "Audio/Impacts/Body"
 
float AttackSoundVolume = 1f
 
float AttackSoundPitch = 0f
 
bool AllowImpulseAndStunWhenDamageIsZero = true
 
float? m_injuryAmount = null
 
ValuesDictionary DictionaryForOtherMods = new ValuesDictionary()
 模组可以向Dictionary里面添加内容,另一个模组可以从Dictionary读取内容,以实现模组联动效果
 

Protected 属性

Random m_random = new Random()
 

属性

virtual ComponentBody TargetBody [get, set]
 

详细描述

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() [1/2]

Game.Attackment.Attackment ( Entity target,
Entity attacker,
Vector3 hitPoint,
Vector3 hitDirection,
float attackPower )
函数调用图:

◆ Attackment() [2/2]

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

成员函数说明

◆ AddHitValueParticleSystem()

virtual void Game.Attackment.AddHitValueParticleSystem ( float damage)
virtual
函数调用图:
这是这个函数的调用关系图:

◆ CalculateInjuryAmount()

virtual float Game.Attackment.CalculateInjuryAmount ( )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ DisableFriendlyFire()

virtual bool Game.Attackment.DisableFriendlyFire ( )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ ImpulseTarget()

virtual void Game.Attackment.ImpulseTarget ( )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ ProcessAttackment()

virtual void Game.Attackment.ProcessAttackment ( )
virtual
函数调用图:
这是这个函数的调用关系图:

◆ ProcessAttackmentToCreature()

virtual void Game.Attackment.ProcessAttackmentToCreature ( out float injuryAmount)
virtual
函数调用图:
这是这个函数的调用关系图:

◆ ProcessAttackmentToNonCreature()

virtual void Game.Attackment.ProcessAttackmentToNonCreature ( out float injuryAmount)
virtual
函数调用图:
这是这个函数的调用关系图:

◆ StunTarget()

virtual void Game.Attackment.StunTarget ( )
virtual
这是这个函数的调用关系图:

类成员变量说明

◆ AllowImpulseAndStunWhenDamageIsZero

bool Game.Attackment.AllowImpulseAndStunWhenDamageIsZero = true

◆ Attacker

Entity Game.Attackment.Attacker

◆ AttackPower

float Game.Attackment.AttackPower

◆ AttackSoundName

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

◆ AttackSoundPitch

float Game.Attackment.AttackSoundPitch = 0f

◆ AttackSoundVolume

float Game.Attackment.AttackSoundVolume = 1f

◆ CauseOfDeath

string Game.Attackment.CauseOfDeath = String.Empty

◆ DictionaryForOtherMods

ValuesDictionary Game.Attackment.DictionaryForOtherMods = new ValuesDictionary()

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

◆ EnableArmorProtection

bool Game.Attackment.EnableArmorProtection = true

◆ EnableHitValueParticleSystem

bool Game.Attackment.EnableHitValueParticleSystem = true

◆ EnableResilienceFactor

bool Game.Attackment.EnableResilienceFactor = true

◆ HitDirection

Vector3 Game.Attackment.HitDirection

◆ HitPoint

Vector3 Game.Attackment.HitPoint

◆ ImpulseFactor

float Game.Attackment.ImpulseFactor = 2f

◆ m_injuryAmount

float? Game.Attackment.m_injuryAmount = null

◆ m_random

Random Game.Attackment.m_random = new Random()
protected

◆ StunTimeAdd

float Game.Attackment.StunTimeAdd = 0.2f

◆ StunTimeSet

float? Game.Attackment.StunTimeSet

◆ Target

Entity Game.Attackment.Target

属性说明

◆ TargetBody

virtual ComponentBody Game.Attackment.TargetBody
getset

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