|
My Project v1
Project
|

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, ComponentClothing > | Mount |
| 装备 | |
| Action< int, ComponentClothing > | Dismount |
| 卸载 | |
| Action< int, ComponentClothing > | Update |
| ComponentClothing更新时触发。 | |
| ValuesDictionary | DictionaryForOtherMods = new ValuesDictionary() |
| 模组可以向Dictionary里面添加特殊数据,另一个模组可以从Dictionary读取数据,以实现模组联动效果 | |
| Game.ClothingData.ClothingData | ( | ) |
| Game.ClothingData.ClothingData | ( | XElement | item | ) |

|
virtual |
计算单件护甲的防御
| componentClothing | |
| clothesBeforeProtection | 在结算防御前,玩家的衣物列表 |
| clothesAfterProtection | 在结算防御后,玩家将会有的的衣物列表 |
| sequence | 表示这是结算到第几件护甲 |
| attackment | 导致这次ApplyArmorProtection的攻击,注意attackment.AttackPower指的是被任何护甲结算前的原始攻击力 |
| attackPowerAfterProtection | 被该件护甲结算后,剩余的攻击力 |


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

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


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