Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.ComponentClothing
类 Game.ComponentClothing 继承关系图:
Game.ComponentClothing 的协作图:

Public 成员函数

virtual ReadOnlyList< int > GetClothes (ClothingSlot slot)
float CalculateInsulationFromSlots ()
virtual void SetClothes (ClothingSlot slot, IEnumerable< int > clothes)
float ApplyArmorProtection (float attackPower)
float ApplyArmorProtection (Attackment attackment)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
override void Dispose ()
virtual void Update (float dt)
virtual int GetSlotValue (int slotIndex)
virtual int GetSlotCount (int slotIndex)
virtual int GetSlotCapacity (int slotIndex, int value)
virtual int GetSlotProcessCapacity (int slotIndex, int value)
virtual void AddSlotItems (int slotIndex, int value, int count)
virtual void ProcessSlotItems (int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount)
virtual int RemoveSlotItems (int slotIndex, int count)
 
返回
实际移除的数量

virtual void DropAllItems (Vector3 position)
virtual void Display_DeviceReset ()
virtual bool CanWearClothing (int value)
virtual void UpdateRenderTargets ()
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

SubsystemGameInfo m_subsystemGameInfo
SubsystemParticles m_subsystemParticles
SubsystemAudio m_subsystemAudio
SubsystemTime m_subsystemTime
SubsystemTerrain m_subsystemTerrain
SubsystemPickables m_subsystemPickables
ComponentGui m_componentGui
ComponentHumanModel m_componentHumanModel
ComponentBody m_componentBody
ComponentOuterClothingModel m_componentOuterClothingModel
ComponentVitalStats m_componentVitalStats
ComponentLocomotion m_componentLocomotion
ComponentPlayer m_componentPlayer
Texture2D m_skinTexture
string m_skinTextureName
RenderTarget2D m_innerClothedTexture
RenderTarget2D m_outerClothedTexture
PrimitivesRenderer2D m_primitivesRenderer = new()
Random m_random = new()
float m_densityModifierApplied
double? m_lastTotalElapsedGameTime
bool m_clothedTexturesValid
bool EnableDressLimit
 穿戴衣服限制
List< int > m_clothesList = []
Dictionary< ClothingSlot, List< int > > m_clothes = []
Dictionary< ClothingSlot, float > InsulationBySlots = []
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

static string fName = "ComponentClothing"
static List< ClothingSlotm_innerSlotsOrderList = []
static List< ClothingSlotm_outerSlotsOrderList = []
static bool ShowClothedTexture = false
static bool DrawClothedTexture = true

属性

static ClothingSlot[] m_innerSlotsOrder [get]
static ClothingSlot[] m_outerSlotsOrder [get]
Texture2D InnerClothedTexture [get]
Texture2D OuterClothedTexture [get]
float Insulation [get, set]
ClothingSlot LeastInsulatedSlot [get, set]
float SteedMovementSpeedFactor [get, set]
UpdateOrder UpdateOrder [get]
Project IInventory. Project [get]
int SlotsCount [get]
int VisibleSlotsCount [get, set]
int ActiveSlotIndex [get, set]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [get]

额外继承的成员函数

包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentClothing.cs8 行定义.

成员函数说明

◆ AddSlotItems()

virtual void Game.ComponentClothing.AddSlotItems ( int slotIndex,
int value,
int count )
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs438 行定义.

◆ ApplyArmorProtection() [1/2]

float Game.ComponentClothing.ApplyArmorProtection ( Attackment attackment)

在文件 ComponentClothing.cs154 行定义.

函数调用图:

◆ ApplyArmorProtection() [2/2]

float Game.ComponentClothing.ApplyArmorProtection ( float attackPower)

在文件 ComponentClothing.cs151 行定义.

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

◆ CalculateInsulationFromSlots()

float Game.ComponentClothing.CalculateInsulationFromSlots ( )

在文件 ComponentClothing.cs102 行定义.

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

◆ CanWearClothing()

virtual bool Game.ComponentClothing.CanWearClothing ( int value)
virtual

在文件 ComponentClothing.cs554 行定义.

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

◆ Display_DeviceReset()

virtual void Game.ComponentClothing.Display_DeviceReset ( )
virtual

在文件 ComponentClothing.cs550 行定义.

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

◆ Dispose()

override void Game.ComponentClothing.Dispose ( )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentClothing.cs290 行定义.

函数调用图:

◆ DropAllItems()

virtual void Game.ComponentClothing.DropAllItems ( Vector3 position)
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs535 行定义.

函数调用图:

◆ GetClothes()

virtual ReadOnlyList< int > Game.ComponentClothing.GetClothes ( ClothingSlot slot)
virtual

在文件 ComponentClothing.cs100 行定义.

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

◆ GetSlotCapacity()

virtual int Game.ComponentClothing.GetSlotCapacity ( int slotIndex,
int value )
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs411 行定义.

◆ GetSlotCount()

virtual int Game.ComponentClothing.GetSlotCount ( int slotIndex)
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs404 行定义.

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

◆ GetSlotProcessCapacity()

virtual int Game.ComponentClothing.GetSlotProcessCapacity ( int slotIndex,
int value )
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs413 行定义.

函数调用图:

◆ GetSlotValue()

virtual int Game.ComponentClothing.GetSlotValue ( int slotIndex)
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs402 行定义.

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

◆ Load()

override void Game.ComponentClothing.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentClothing.cs248 行定义.

函数调用图:

◆ ProcessSlotItems()

virtual void Game.ComponentClothing.ProcessSlotItems ( int slotIndex,
int value,
int count,
int processCount,
out int processedValue,
out int processedCount )
virtual

实现了 Game.IInventory.

在文件 ComponentClothing.cs440 行定义.

函数调用图:

◆ RemoveSlotItems()

virtual int Game.ComponentClothing.RemoveSlotItems ( int slotIndex,
int count )
virtual

返回
实际移除的数量

实现了 Game.IInventory.

在文件 ComponentClothing.cs519 行定义.

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

◆ Save()

override void Game.ComponentClothing.Save ( ValuesDictionary valuesDictionary,
EntityToIdMap entityToIdMap )
virtual

重载 GameEntitySystem.Component .

在文件 ComponentClothing.cs282 行定义.

◆ SetClothes()

virtual void Game.ComponentClothing.SetClothes ( ClothingSlot slot,
IEnumerable< int > clothes )
virtual

在文件 ComponentClothing.cs118 行定义.

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

◆ Update()

virtual void Game.ComponentClothing.Update ( float dt)
virtual

实现了 Game.IUpdateable.

在文件 ComponentClothing.cs308 行定义.

函数调用图:

◆ UpdateRenderTargets()

virtual void Game.ComponentClothing.UpdateRenderTargets ( )
virtual

在文件 ComponentClothing.cs573 行定义.

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

类成员变量说明

◆ DrawClothedTexture

bool Game.ComponentClothing.DrawClothedTexture = true
static

在文件 ComponentClothing.cs72 行定义.

◆ EnableDressLimit

bool Game.ComponentClothing.EnableDressLimit

穿戴衣服限制

在文件 ComponentClothing.cs56 行定义.

◆ fName

string Game.ComponentClothing.fName = "ComponentClothing"
static

在文件 ComponentClothing.cs58 行定义.

◆ InsulationBySlots

Dictionary<ClothingSlot, float> Game.ComponentClothing.InsulationBySlots = []

在文件 ComponentClothing.cs77 行定义.

◆ m_clothedTexturesValid

bool Game.ComponentClothing.m_clothedTexturesValid

在文件 ComponentClothing.cs51 行定义.

◆ m_clothes

Dictionary<ClothingSlot, List<int> > Game.ComponentClothing.m_clothes = []

在文件 ComponentClothing.cs62 行定义.

◆ m_clothesList

List<int> Game.ComponentClothing.m_clothesList = []

在文件 ComponentClothing.cs60 行定义.

◆ m_componentBody

ComponentBody Game.ComponentClothing.m_componentBody

在文件 ComponentClothing.cs25 行定义.

◆ m_componentGui

ComponentGui Game.ComponentClothing.m_componentGui

在文件 ComponentClothing.cs21 行定义.

◆ m_componentHumanModel

ComponentHumanModel Game.ComponentClothing.m_componentHumanModel

在文件 ComponentClothing.cs23 行定义.

◆ m_componentLocomotion

ComponentLocomotion Game.ComponentClothing.m_componentLocomotion

在文件 ComponentClothing.cs31 行定义.

◆ m_componentOuterClothingModel

ComponentOuterClothingModel Game.ComponentClothing.m_componentOuterClothingModel

在文件 ComponentClothing.cs27 行定义.

◆ m_componentPlayer

ComponentPlayer Game.ComponentClothing.m_componentPlayer

在文件 ComponentClothing.cs33 行定义.

◆ m_componentVitalStats

ComponentVitalStats Game.ComponentClothing.m_componentVitalStats

在文件 ComponentClothing.cs29 行定义.

◆ m_densityModifierApplied

float Game.ComponentClothing.m_densityModifierApplied

在文件 ComponentClothing.cs47 行定义.

◆ m_innerClothedTexture

RenderTarget2D Game.ComponentClothing.m_innerClothedTexture

在文件 ComponentClothing.cs39 行定义.

◆ m_innerSlotsOrderList

List<ClothingSlot> Game.ComponentClothing.m_innerSlotsOrderList = []
static

在文件 ComponentClothing.cs66 行定义.

◆ m_lastTotalElapsedGameTime

double? Game.ComponentClothing.m_lastTotalElapsedGameTime

在文件 ComponentClothing.cs49 行定义.

◆ m_outerClothedTexture

RenderTarget2D Game.ComponentClothing.m_outerClothedTexture

在文件 ComponentClothing.cs41 行定义.

◆ m_outerSlotsOrderList

List<ClothingSlot> Game.ComponentClothing.m_outerSlotsOrderList = []
static

在文件 ComponentClothing.cs68 行定义.

◆ m_primitivesRenderer

PrimitivesRenderer2D Game.ComponentClothing.m_primitivesRenderer = new()

在文件 ComponentClothing.cs43 行定义.

◆ m_random

Random Game.ComponentClothing.m_random = new()

在文件 ComponentClothing.cs45 行定义.

◆ m_skinTexture

Texture2D Game.ComponentClothing.m_skinTexture

在文件 ComponentClothing.cs35 行定义.

◆ m_skinTextureName

string Game.ComponentClothing.m_skinTextureName

在文件 ComponentClothing.cs37 行定义.

◆ m_subsystemAudio

SubsystemAudio Game.ComponentClothing.m_subsystemAudio

在文件 ComponentClothing.cs13 行定义.

◆ m_subsystemGameInfo

SubsystemGameInfo Game.ComponentClothing.m_subsystemGameInfo

在文件 ComponentClothing.cs9 行定义.

◆ m_subsystemParticles

SubsystemParticles Game.ComponentClothing.m_subsystemParticles

在文件 ComponentClothing.cs11 行定义.

◆ m_subsystemPickables

SubsystemPickables Game.ComponentClothing.m_subsystemPickables

在文件 ComponentClothing.cs19 行定义.

◆ m_subsystemTerrain

SubsystemTerrain Game.ComponentClothing.m_subsystemTerrain

在文件 ComponentClothing.cs17 行定义.

◆ m_subsystemTime

SubsystemTime Game.ComponentClothing.m_subsystemTime

在文件 ComponentClothing.cs15 行定义.

◆ ShowClothedTexture

bool Game.ComponentClothing.ShowClothedTexture = false
static

在文件 ComponentClothing.cs70 行定义.

属性说明

◆ ActiveSlotIndex

int Game.ComponentClothing.ActiveSlotIndex
getset

实现了 Game.IInventory.

在文件 ComponentClothing.cs95 行定义.

◆ InnerClothedTexture

Texture2D Game.ComponentClothing.InnerClothedTexture
get

在文件 ComponentClothing.cs74 行定义.

◆ Insulation

float Game.ComponentClothing.Insulation
getset

在文件 ComponentClothing.cs78 行定义.

◆ LeastInsulatedSlot

ClothingSlot Game.ComponentClothing.LeastInsulatedSlot
getset

在文件 ComponentClothing.cs80 行定义.

◆ m_innerSlotsOrder

ClothingSlot [] Game.ComponentClothing.m_innerSlotsOrder
staticget

在文件 ComponentClothing.cs63 行定义.

◆ m_outerSlotsOrder

ClothingSlot [] Game.ComponentClothing.m_outerSlotsOrder
staticget

在文件 ComponentClothing.cs64 行定义.

◆ OuterClothedTexture

Texture2D Game.ComponentClothing.OuterClothedTexture
get

在文件 ComponentClothing.cs75 行定义.

◆ Project

Project IInventory. Game.ComponentClothing.Project
getprivate

实现了 Game.IInventory.

在文件 ComponentClothing.cs86 行定义.

◆ SlotsCount

int Game.ComponentClothing.SlotsCount
get

实现了 Game.IInventory.

在文件 ComponentClothing.cs88 行定义.

◆ SteedMovementSpeedFactor

float Game.ComponentClothing.SteedMovementSpeedFactor
getset

在文件 ComponentClothing.cs82 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentClothing.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentClothing.cs84 行定义.

◆ VisibleSlotsCount

int Game.ComponentClothing.VisibleSlotsCount
getset

实现了 Game.IInventory.

在文件 ComponentClothing.cs90 行定义.


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