My Project v1
Project
载入中...
搜索中...
未找到
Game.ClothingData
Game.ClothingData 的协作图:

Public 成员函数

 ClothingData ()
 
 ClothingData (XElement item)
 
virtual void ApplyArmorProtection (ComponentClothing componentClothing, List< int > clothesBeforeProtection, List< int > clothesAfterProtection, int sequence, Attackment attackment, ref float attackPowerAfterProtection)
 计算单件护甲的防御
 
virtual void UpdateGraduallyDamagedOverTime (ComponentClothing componentClothing, int indexInClothesList, float dt)
 在ComponentClothing中每帧都会调用的UpdateGraduallyDamagedOverTime(),主要用于控制衣物随时间逐渐损坏
 
virtual void OnClotheSet (ComponentClothing componentClothing)
 在ComponentClothing执行SetClothes()时触发,用于调整ComponentClothing中的一些参数
 

Public 属性

XElement xElement
 
int Index
 
int DisplayIndex
 
ClothingSlot Slot
 
float ArmorProtection
 
float Sturdiness
 
float Insulation
 
float MovementSpeedFactor
 
float SteedMovementSpeedFactor
 
float DensityModifier
 
Texture2D Texture
 
string DisplayName
 
string Description
 
string ImpactSoundsFolder
 
bool IsOuter
 
bool CanBeDyed
 
int Layer
 
int PlayerLevelRequired
 
Action< int, ComponentClothingMount
 装备
 
Action< int, ComponentClothingDismount
 卸载
 
Action< int, ComponentClothingUpdate
 ComponentClothing更新时触发。
 
ValuesDictionary DictionaryForOtherMods = new ValuesDictionary()
 模组可以向Dictionary里面添加特殊数据,另一个模组可以从Dictionary读取数据,以实现模组联动效果
 

构造及析构函数说明

◆ ClothingData() [1/2]

Game.ClothingData.ClothingData ( )

◆ ClothingData() [2/2]

Game.ClothingData.ClothingData ( XElement item)
函数调用图:

成员函数说明

◆ ApplyArmorProtection()

virtual void Game.ClothingData.ApplyArmorProtection ( ComponentClothing componentClothing,
List< int > clothesBeforeProtection,
List< int > clothesAfterProtection,
int sequence,
Attackment attackment,
ref float attackPowerAfterProtection )
virtual

计算单件护甲的防御

参数
componentClothing
clothesBeforeProtection在结算防御前,玩家的衣物列表
clothesAfterProtection在结算防御后,玩家将会有的的衣物列表
sequence表示这是结算到第几件护甲
attackment导致这次ApplyArmorProtection的攻击,注意attackment.AttackPower指的是被任何护甲结算前的原始攻击力
attackPowerAfterProtection被该件护甲结算后,剩余的攻击力
函数调用图:
这是这个函数的调用关系图:

◆ OnClotheSet()

virtual void Game.ClothingData.OnClotheSet ( ComponentClothing componentClothing)
virtual

在ComponentClothing执行SetClothes()时触发,用于调整ComponentClothing中的一些参数

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

◆ UpdateGraduallyDamagedOverTime()

virtual void Game.ClothingData.UpdateGraduallyDamagedOverTime ( ComponentClothing componentClothing,
int indexInClothesList,
float dt )
virtual

在ComponentClothing中每帧都会调用的UpdateGraduallyDamagedOverTime(),主要用于控制衣物随时间逐渐损坏

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

类成员变量说明

◆ ArmorProtection

float Game.ClothingData.ArmorProtection

◆ CanBeDyed

bool Game.ClothingData.CanBeDyed

◆ DensityModifier

float Game.ClothingData.DensityModifier

◆ Description

string Game.ClothingData.Description

◆ DictionaryForOtherMods

ValuesDictionary Game.ClothingData.DictionaryForOtherMods = new ValuesDictionary()

模组可以向Dictionary里面添加特殊数据,另一个模组可以从Dictionary读取数据,以实现模组联动效果

◆ Dismount

Action<int, ComponentClothing> Game.ClothingData.Dismount

卸载

◆ DisplayIndex

int Game.ClothingData.DisplayIndex

◆ DisplayName

string Game.ClothingData.DisplayName

◆ ImpactSoundsFolder

string Game.ClothingData.ImpactSoundsFolder

◆ Index

int Game.ClothingData.Index

◆ Insulation

float Game.ClothingData.Insulation

◆ IsOuter

bool Game.ClothingData.IsOuter

◆ Layer

int Game.ClothingData.Layer

◆ Mount

Action<int, ComponentClothing> Game.ClothingData.Mount

装备

◆ MovementSpeedFactor

float Game.ClothingData.MovementSpeedFactor

◆ PlayerLevelRequired

int Game.ClothingData.PlayerLevelRequired

◆ Slot

ClothingSlot Game.ClothingData.Slot

◆ SteedMovementSpeedFactor

float Game.ClothingData.SteedMovementSpeedFactor

◆ Sturdiness

float Game.ClothingData.Sturdiness

◆ Texture

Texture2D Game.ClothingData.Texture

◆ Update

Action<int, ComponentClothing> Game.ClothingData.Update

ComponentClothing更新时触发。

◆ xElement

XElement Game.ClothingData.xElement

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