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

Public 成员函数

override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
override int GetSlotCapacity (int slotIndex, int value)
Public 成员函数 继承自 Game.ComponentInventoryBase
ComponentPlayer FindInteractingPlayer ()
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
override void Save (ValuesDictionary valuesDictionary, EntityToIdMap entityToIdMap)
virtual int GetSlotValue (int slotIndex)
virtual int GetSlotCount (int slotIndex)
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)
Public 成员函数 继承自 GameEntitySystem.Component
virtual IEnumerable< EntityGetOwnedEntities ()
virtual void OnEntityAdded ()
virtual void OnEntityRemoved ()
virtual void Dispose ()
virtual void InheritFromComponent (Component baseComponent)
virtual void Initialize (Entity entity, ValuesDictionary valuesDictionary)

Public 属性

int m_activeSlotIndex
int m_visibleSlotsCount = 10
Public 属性 继承自 Game.ComponentInventoryBase
List< Slotm_slots = []
Random m_random = new()
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

const int ShortInventorySlotsCount = 10

属性

override int ActiveSlotIndex [get, set]
override int VisibleSlotsCount [get, set]
属性 继承自 Game.ComponentInventoryBase
Project IInventory. Project [get]
virtual int SlotsCount [get]
virtual int VisibleSlotsCount [get, set]
virtual int ActiveSlotIndex [get, set]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]

额外继承的成员函数

静态 Public 成员函数 继承自 Game.ComponentInventoryBase
static int FindAcquireSlotForItem (IInventory inventory, int value)
static int AcquireItems (IInventory inventory, int value, int count)
static void DropSlotItems (IInventory inventory, int slotIndex, Vector3 position, Vector3 velocity)
包函数 继承自 GameEntitySystem.Component
void DisposeInternal ()

详细描述

在文件 ComponentInventory.cs6 行定义.

成员函数说明

◆ GetSlotCapacity()

override int Game.ComponentInventory.GetSlotCapacity ( int slotIndex,
int value )
virtual

重载 Game.ComponentInventoryBase .

在文件 ComponentInventory.cs48 行定义.

函数调用图:

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentInventory.cs38 行定义.

◆ Save()

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

重载 GameEntitySystem.Component .

在文件 ComponentInventory.cs43 行定义.

类成员变量说明

◆ m_activeSlotIndex

int Game.ComponentInventory.m_activeSlotIndex

在文件 ComponentInventory.cs7 行定义.

◆ m_visibleSlotsCount

int Game.ComponentInventory.m_visibleSlotsCount = 10

在文件 ComponentInventory.cs9 行定义.

◆ ShortInventorySlotsCount

const int Game.ComponentInventory.ShortInventorySlotsCount = 10
static

在文件 ComponentInventory.cs11 行定义.

属性说明

◆ ActiveSlotIndex

override int Game.ComponentInventory.ActiveSlotIndex
getset

实现了 Game.IInventory.

在文件 ComponentInventory.cs13 行定义.

◆ VisibleSlotsCount

override int Game.ComponentInventory.VisibleSlotsCount
getset

实现了 Game.IInventory.

在文件 ComponentInventory.cs18 行定义.


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