◆ 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 | 被该件护甲结算后,剩余的攻击力 |
在文件 ClothingData.cs 第 125 行定义.
◆ GetColor()
◆ OnClotheSet()
在ComponentClothing执行SetClothes()时触发,用于调整ComponentClothing中的一些参数
- 参数
-
在文件 ClothingData.cs 第 227 行定义.
◆ UpdateGraduallyDamagedOverTime()
| virtual void Game.ClothingData.UpdateGraduallyDamagedOverTime |
( |
ComponentClothing | componentClothing, |
|
|
int | indexInClothesList, |
|
|
float | dt ) |
|
virtual |
在ComponentClothing中每帧都会调用的UpdateGraduallyDamagedOverTime(),主要用于控制衣物随时间逐渐损坏
- 参数
-
| componentClothing | |
| indexInClothesList | |
| dt | |
在文件 ClothingData.cs 第 178 行定义.
◆ _textureName
| string Game.ClothingData._textureName |
◆ ArmorProtection
| float Game.ClothingData.ArmorProtection |
◆ CanBeDyed
| bool Game.ClothingData.CanBeDyed |
◆ DensityModifier
| float Game.ClothingData.DensityModifier |
◆ Description
| string Game.ClothingData.Description |
◆ DictionaryForOtherMods
◆ 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
◆ MovementSpeedFactor
| float Game.ClothingData.MovementSpeedFactor |
◆ PlayerLevelRequired
| int Game.ClothingData.PlayerLevelRequired |
◆ Slot
◆ SteedMovementSpeedFactor
| float Game.ClothingData.SteedMovementSpeedFactor |
◆ Sturdiness
| float Game.ClothingData.Sturdiness |
◆ Texture
◆ Update
◆ xElement
| XElement Game.ClothingData.xElement |
该类的文档由以下文件生成:
- E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Game/ClothingData.cs