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

class  Order

Public 成员函数

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 属性

List< int > m_slots = []
int m_activeSlotIndex
int m_visibleSlotsCount = 10
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

静态 Public 属性

const int m_largeNumber = 0x1fffffff

属性

int OpenSlotsCount [get, set]
int CategoryIndex [get, set]
int PageIndex [get, set]
Project IInventory. Project [get]
int ActiveSlotIndex [get, set]
int SlotsCount [get]
int VisibleSlotsCount [get, set]
属性 继承自 GameEntitySystem.Component
ValuesDictionary ValuesDictionary [get]
Entity Entity [get]
Project Project [get]
bool IsAddedToProject [get]

额外继承的成员函数

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

详细描述

在文件 ComponentCreativeInventory.cs7 行定义.

成员函数说明

◆ AddSlotItems()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs162 行定义.

◆ DropAllItems()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs222 行定义.

◆ GetSlotCapacity()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs126 行定义.

函数调用图:

◆ GetSlotCount()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs115 行定义.

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

◆ GetSlotProcessCapacity()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs142 行定义.

函数调用图:

◆ GetSlotValue()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs107 行定义.

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

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentCreativeInventory.cs62 行定义.

函数调用图:

◆ ProcessSlotItems()

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

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs169 行定义.

函数调用图:

◆ RemoveSlotItems()

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

返回
实际移除的数量

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs202 行定义.

函数调用图:

◆ Save()

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

重载 GameEntitySystem.Component .

在文件 ComponentCreativeInventory.cs92 行定义.

类成员变量说明

◆ m_activeSlotIndex

int Game.ComponentCreativeInventory.m_activeSlotIndex

在文件 ComponentCreativeInventory.cs22 行定义.

◆ m_largeNumber

const int Game.ComponentCreativeInventory.m_largeNumber = 0x1fffffff
static

在文件 ComponentCreativeInventory.cs26 行定义.

◆ m_slots

List<int> Game.ComponentCreativeInventory.m_slots = []

在文件 ComponentCreativeInventory.cs20 行定义.

◆ m_visibleSlotsCount

int Game.ComponentCreativeInventory.m_visibleSlotsCount = 10

在文件 ComponentCreativeInventory.cs24 行定义.

属性说明

◆ ActiveSlotIndex

int Game.ComponentCreativeInventory.ActiveSlotIndex
getset

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs35 行定义.

◆ CategoryIndex

int Game.ComponentCreativeInventory.CategoryIndex
getset

在文件 ComponentCreativeInventory.cs29 行定义.

◆ OpenSlotsCount

int Game.ComponentCreativeInventory.OpenSlotsCount
getset

在文件 ComponentCreativeInventory.cs27 行定义.

◆ PageIndex

int Game.ComponentCreativeInventory.PageIndex
getset

在文件 ComponentCreativeInventory.cs31 行定义.

◆ Project

Project IInventory. Game.ComponentCreativeInventory.Project
getprivate

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs33 行定义.

◆ SlotsCount

int Game.ComponentCreativeInventory.SlotsCount
get

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs40 行定义.

◆ VisibleSlotsCount

int Game.ComponentCreativeInventory.VisibleSlotsCount
getset

实现了 Game.IInventory.

在文件 ComponentCreativeInventory.cs42 行定义.


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