Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
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中的一些参数
virtual Color GetColor (ComponentClothing componentClothing, int value)
 获取衣物穿着在身上时的颜色附加

Public 属性

string _textureName
Texture2D Texture
XElement xElement
int Index
int DisplayIndex
ClothingSlot Slot
float ArmorProtection
float Sturdiness
float Insulation
float MovementSpeedFactor
float SteedMovementSpeedFactor
float DensityModifier
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()
 模组可以向Dictionary里面添加特殊数据,另一个模组可以从Dictionary读取数据,以实现模组联动效果

详细描述

在文件 ClothingData.cs8 行定义.

构造及析构函数说明

◆ ClothingData() [1/2]

Game.ClothingData.ClothingData ( )

在文件 ClothingData.cs9 行定义.

◆ ClothingData() [2/2]

Game.ClothingData.ClothingData ( XElement item)

在文件 ClothingData.cs11 行定义.

函数调用图:

成员函数说明

◆ 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.cs125 行定义.

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

◆ GetColor()

virtual Color Game.ClothingData.GetColor ( ComponentClothing componentClothing,
int value )
virtual

获取衣物穿着在身上时的颜色附加

返回

在文件 ClothingData.cs237 行定义.

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

◆ OnClotheSet()

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

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

参数
componentClothing

在文件 ClothingData.cs227 行定义.

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

◆ UpdateGraduallyDamagedOverTime()

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

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

参数
componentClothing
indexInClothesList
dt

在文件 ClothingData.cs178 行定义.

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

类成员变量说明

◆ _textureName

string Game.ClothingData._textureName

在文件 ClothingData.cs58 行定义.

◆ ArmorProtection

float Game.ClothingData.ArmorProtection

在文件 ClothingData.cs70 行定义.

◆ CanBeDyed

bool Game.ClothingData.CanBeDyed

在文件 ClothingData.cs90 行定义.

◆ DensityModifier

float Game.ClothingData.DensityModifier

在文件 ClothingData.cs80 行定义.

◆ Description

string Game.ClothingData.Description

在文件 ClothingData.cs84 行定义.

◆ DictionaryForOtherMods

ValuesDictionary Game.ClothingData.DictionaryForOtherMods = new()

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

在文件 ClothingData.cs114 行定义.

◆ Dismount

Action<int, ComponentClothing> Game.ClothingData.Dismount

卸载

在文件 ClothingData.cs104 行定义.

◆ DisplayIndex

int Game.ClothingData.DisplayIndex

在文件 ClothingData.cs66 行定义.

◆ DisplayName

string Game.ClothingData.DisplayName

在文件 ClothingData.cs82 行定义.

◆ ImpactSoundsFolder

string Game.ClothingData.ImpactSoundsFolder

在文件 ClothingData.cs86 行定义.

◆ Index

int Game.ClothingData.Index

在文件 ClothingData.cs64 行定义.

◆ Insulation

float Game.ClothingData.Insulation

在文件 ClothingData.cs74 行定义.

◆ IsOuter

bool Game.ClothingData.IsOuter

在文件 ClothingData.cs88 行定义.

◆ Layer

int Game.ClothingData.Layer

在文件 ClothingData.cs92 行定义.

◆ Mount

Action<int, ComponentClothing> Game.ClothingData.Mount

装备

在文件 ClothingData.cs99 行定义.

◆ MovementSpeedFactor

float Game.ClothingData.MovementSpeedFactor

在文件 ClothingData.cs76 行定义.

◆ PlayerLevelRequired

int Game.ClothingData.PlayerLevelRequired

在文件 ClothingData.cs94 行定义.

◆ Slot

ClothingSlot Game.ClothingData.Slot

在文件 ClothingData.cs68 行定义.

◆ SteedMovementSpeedFactor

float Game.ClothingData.SteedMovementSpeedFactor

在文件 ClothingData.cs78 行定义.

◆ Sturdiness

float Game.ClothingData.Sturdiness

在文件 ClothingData.cs72 行定义.

◆ Texture

Texture2D Game.ClothingData.Texture

在文件 ClothingData.cs60 行定义.

◆ Update

Action<int, ComponentClothing> Game.ClothingData.Update

ComponentClothing更新时触发。

在文件 ClothingData.cs109 行定义.

◆ xElement

XElement Game.ClothingData.xElement

在文件 ClothingData.cs62 行定义.


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