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

Public 成员函数

virtual void Update (float dt)
override int GetSlotCapacity (int slotIndex, int value)
override void AddSlotItems (int slotIndex, int value, int count)
override int RemoveSlotItems (int slotIndex, int count)
 
返回
实际移除的数量

override void DropAllItems (Vector3 position)
override void Load (ValuesDictionary valuesDictionary, IdToEntityMap idToEntityMap)
virtual void UpdateCraftingResult (bool recipeRefindNeeded)
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 ProcessSlotItems (int slotIndex, int value, int count, int processCount, out int processedValue, out int processedCount)
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_craftingGridSize
string[] m_matchedIngredients = new string[9]
CraftingRecipe m_matchedRecipe
bool m_recipeUpdateNeeded
bool m_recipeRefindNeeded
bool m_resetWhenSlotItemsRemoved
Public 属性 继承自 Game.ComponentInventoryBase
List< Slotm_slots = []
Random m_random = new()
Public 属性 继承自 GameEntitySystem.Component
Entity m_entity
ValuesDictionary m_valuesDictionary

属性

int RemainsSlotIndex [get]
UpdateOrder UpdateOrder [get]
int ResultSlotIndex [get]
属性 继承自 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]
属性 继承自 Game.IUpdateable
float FloatUpdateOrder [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 ()

详细描述

在文件 ComponentCraftingTable.cs7 行定义.

成员函数说明

◆ AddSlotItems()

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

重载 Game.ComponentInventoryBase .

在文件 ComponentCraftingTable.cs39 行定义.

函数调用图:

◆ DropAllItems()

override void Game.ComponentCraftingTable.DropAllItems ( Vector3 position)
virtual

重载 Game.ComponentInventoryBase .

在文件 ComponentCraftingTable.cs108 行定义.

函数调用图:

◆ GetSlotCapacity()

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

重载 Game.ComponentInventoryBase .

在文件 ComponentCraftingTable.cs32 行定义.

◆ Load()

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

重载 GameEntitySystem.Component .

在文件 ComponentCraftingTable.cs122 行定义.

函数调用图:

◆ RemoveSlotItems()

override int Game.ComponentCraftingTable.RemoveSlotItems ( int slotIndex,
int count )
virtual

返回
实际移除的数量

重载 Game.ComponentInventoryBase .

在文件 ComponentCraftingTable.cs49 行定义.

函数调用图:

◆ Update()

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

实现了 Game.IUpdateable.

在文件 ComponentCraftingTable.cs24 行定义.

函数调用图:

◆ UpdateCraftingResult()

virtual void Game.ComponentCraftingTable.UpdateCraftingResult ( bool recipeRefindNeeded)
virtual

在文件 ComponentCraftingTable.cs128 行定义.

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

类成员变量说明

◆ m_craftingGridSize

int Game.ComponentCraftingTable.m_craftingGridSize

在文件 ComponentCraftingTable.cs8 行定义.

◆ m_matchedIngredients

string [] Game.ComponentCraftingTable.m_matchedIngredients = new string[9]

在文件 ComponentCraftingTable.cs10 行定义.

◆ m_matchedRecipe

CraftingRecipe Game.ComponentCraftingTable.m_matchedRecipe

在文件 ComponentCraftingTable.cs12 行定义.

◆ m_recipeRefindNeeded

bool Game.ComponentCraftingTable.m_recipeRefindNeeded

在文件 ComponentCraftingTable.cs19 行定义.

◆ m_recipeUpdateNeeded

bool Game.ComponentCraftingTable.m_recipeUpdateNeeded

在文件 ComponentCraftingTable.cs17 行定义.

◆ m_resetWhenSlotItemsRemoved

bool Game.ComponentCraftingTable.m_resetWhenSlotItemsRemoved

在文件 ComponentCraftingTable.cs22 行定义.

属性说明

◆ RemainsSlotIndex

int Game.ComponentCraftingTable.RemainsSlotIndex
get

在文件 ComponentCraftingTable.cs13 行定义.

◆ ResultSlotIndex

int Game.ComponentCraftingTable.ResultSlotIndex
get

在文件 ComponentCraftingTable.cs20 行定义.

◆ UpdateOrder

UpdateOrder Game.ComponentCraftingTable.UpdateOrder
get

实现了 Game.IUpdateable.

在文件 ComponentCraftingTable.cs15 行定义.


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