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

class  Slot

Public 成员函数

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 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)
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 成员函数

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)

Public 属性

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

属性

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]

额外继承的成员函数

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

详细描述

在文件 ComponentInventoryBase.cs7 行定义.

成员函数说明

◆ AcquireItems()

int Game.ComponentInventoryBase.AcquireItems ( IInventory inventory,
int value,
int count )
static

在文件 ComponentInventoryBase.cs49 行定义.

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

◆ AddSlotItems()

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

实现了 Game.IInventory.

Game.ComponentCraftingTable , 以及 Game.ComponentFurnace 重载.

在文件 ComponentInventoryBase.cs162 行定义.

函数调用图:

◆ DropAllItems()

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

实现了 Game.IInventory.

Game.ComponentCraftingTable 重载.

在文件 ComponentInventoryBase.cs224 行定义.

函数调用图:

◆ DropSlotItems()

void Game.ComponentInventoryBase.DropSlotItems ( IInventory inventory,
int slotIndex,
Vector3 position,
Vector3 velocity )
static

在文件 ComponentInventoryBase.cs73 行定义.

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

◆ FindAcquireSlotForItem()

int Game.ComponentInventoryBase.FindAcquireSlotForItem ( IInventory inventory,
int value )
static

在文件 ComponentInventoryBase.cs32 行定义.

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

◆ FindInteractingPlayer()

ComponentPlayer Game.ComponentInventoryBase.FindInteractingPlayer ( )

在文件 ComponentInventoryBase.cs61 行定义.

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

◆ GetSlotCapacity()

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

实现了 Game.IInventory.

Game.ComponentCraftingTable, Game.ComponentFurnace , 以及 Game.ComponentInventory 重载.

在文件 ComponentInventoryBase.cs137 行定义.

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

◆ GetSlotCount()

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

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs129 行定义.

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

◆ GetSlotProcessCapacity()

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

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs145 行定义.

函数调用图:

◆ GetSlotValue()

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

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs118 行定义.

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

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentInventoryBase.cs88 行定义.

◆ ProcessSlotItems()

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

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs186 行定义.

函数调用图:

◆ RemoveSlotItems()

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

返回
实际移除的数量

实现了 Game.IInventory.

Game.ComponentCraftingTable , 以及 Game.ComponentFurnace 重载.

在文件 ComponentInventoryBase.cs213 行定义.

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

◆ Save()

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

重载 GameEntitySystem.Component .

在文件 ComponentInventoryBase.cs104 行定义.

类成员变量说明

◆ m_random

Random Game.ComponentInventoryBase.m_random = new()

在文件 ComponentInventoryBase.cs16 行定义.

◆ m_slots

List<Slot> Game.ComponentInventoryBase.m_slots = []

在文件 ComponentInventoryBase.cs14 行定义.

属性说明

◆ ActiveSlotIndex

virtual int Game.ComponentInventoryBase.ActiveSlotIndex
getset

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs27 行定义.

◆ Project

Project IInventory. Game.ComponentInventoryBase.Project
getprivate

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs18 行定义.

◆ SlotsCount

virtual int Game.ComponentInventoryBase.SlotsCount
get

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs20 行定义.

◆ VisibleSlotsCount

virtual int Game.ComponentInventoryBase.VisibleSlotsCount
getset

实现了 Game.IInventory.

在文件 ComponentInventoryBase.cs22 行定义.


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