My Project v1
Project
载入中...
搜索中...
未找到
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 成员函数 继承自 Game.IInventory
- Public 成员函数 继承自 Game.IUpdateable

Public 属性

int m_craftingGridSize
 
string[] m_matchedIngredients = new string[9]
 
CraftingRecipe m_matchedRecipe
 
bool m_recipeUpdateNeeded = false
 
bool m_recipeRefindNeeded = false
 
bool m_resetWhenSlotItemsRemoved
 
- Public 属性 继承自 Game.ComponentInventoryBase
List< Slotm_slots = []
 
Random m_random = new()
 

属性

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]
 
- 属性 继承自 Game.IInventory
- 属性 继承自 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)
 

成员函数说明

◆ AddSlotItems()

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

重载 Game.ComponentInventoryBase .

函数调用图:

◆ DropAllItems()

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

重载 Game.ComponentInventoryBase .

函数调用图:

◆ GetSlotCapacity()

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

◆ Load()

override void Game.ComponentCraftingTable.Load ( ValuesDictionary valuesDictionary,
IdToEntityMap idToEntityMap )
函数调用图:

◆ RemoveSlotItems()

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

重载 Game.ComponentInventoryBase .

函数调用图:

◆ Update()

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

实现了 Game.IUpdateable.

函数调用图:

◆ UpdateCraftingResult()

virtual void Game.ComponentCraftingTable.UpdateCraftingResult ( bool recipeRefindNeeded)
virtual
函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_craftingGridSize

int Game.ComponentCraftingTable.m_craftingGridSize

◆ m_matchedIngredients

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

◆ m_matchedRecipe

CraftingRecipe Game.ComponentCraftingTable.m_matchedRecipe

◆ m_recipeRefindNeeded

bool Game.ComponentCraftingTable.m_recipeRefindNeeded = false

◆ m_recipeUpdateNeeded

bool Game.ComponentCraftingTable.m_recipeUpdateNeeded = false

◆ m_resetWhenSlotItemsRemoved

bool Game.ComponentCraftingTable.m_resetWhenSlotItemsRemoved

属性说明

◆ RemainsSlotIndex

int Game.ComponentCraftingTable.RemainsSlotIndex
get

◆ ResultSlotIndex

int Game.ComponentCraftingTable.ResultSlotIndex
get

◆ UpdateOrder

UpdateOrder Game.ComponentCraftingTable.UpdateOrder
get

实现了 Game.IUpdateable.


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