PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
CraftingManager Class Reference

Client only - manage set up crafting on client. More...

Private Member Functions

void CraftingManager (PlayerBase player, PluginRecipesManager recipesManager)
 
void ~CraftingManager ()
 
void SetRecipeID (int recipeID)
 
int GetRecipeID ()
 
bool IsInventoryCraft ()
 
bool IsWorldCraft ()
 
int GetRecipesCount ()
 
void SetNextRecipe ()
 
void OnUpdate (Object item, Object target, int component_index)
 
bool SetInventoryCraft (int recipeID, ItemBase item1, ItemBase item2)
 
void ResetInventoryCraft ()
 
bool IsEnableDebugCrafting ()
 
int GetRecipeID (int action_index)
 

Private Attributes

const int CM_MODE_NONE = 0
 
const int CM_MODE_WORLD = 1
 
const int CM_MODE_INVENTORY = 2
 
PlayerBase m_player
 
PluginRecipesManager m_recipesManager
 
ActionVariantManager m_actionVariantManager
 
int m_recipeID
 
int m_contextualRecipeID
 
int m_recipeCount
 
int m_craftingMode
 
ItemBase m_item1
 
ItemBase m_item2
 
ref array< intm_recipes
 

Detailed Description

Client only - manage set up crafting on client.

Constructor & Destructor Documentation

◆ CraftingManager()

◆ ~CraftingManager()

Member Function Documentation

◆ GetRecipeID() [1/2]

int GetRecipeID ( )
inlineprivate

References m_recipeID.

◆ GetRecipeID() [2/2]

int GetRecipeID ( int  action_index)
inlineprivate

References m_recipes.

◆ GetRecipesCount()

int GetRecipesCount ( )
inlineprivate

References m_recipeCount.

◆ IsEnableDebugCrafting()

bool IsEnableDebugCrafting ( )
inlineprivate

◆ IsInventoryCraft()

bool IsInventoryCraft ( )
inlineprivate

◆ IsWorldCraft()

bool IsWorldCraft ( )
inlineprivate

References CM_MODE_WORLD, and m_craftingMode.

◆ OnUpdate()

◆ ResetInventoryCraft()

void ResetInventoryCraft ( )
inlineprivate

◆ SetInventoryCraft()

◆ SetNextRecipe()

void SetNextRecipe ( )
inlineprivate

◆ SetRecipeID()

void SetRecipeID ( int  recipeID)
inlineprivate

References m_recipeID.

Field Documentation

◆ CM_MODE_INVENTORY

const int CM_MODE_INVENTORY = 2
private

◆ CM_MODE_NONE

const int CM_MODE_NONE = 0
private

◆ CM_MODE_WORLD

const int CM_MODE_WORLD = 1
private

Referenced by IsWorldCraft(), and OnUpdate().

◆ m_actionVariantManager

ActionVariantManager m_actionVariantManager
private

◆ m_contextualRecipeID

int m_contextualRecipeID
private

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_craftingMode

◆ m_item1

ItemBase m_item1
private

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_item2

ItemBase m_item2
private

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_player

PlayerBase m_player
private

◆ m_recipeCount

int m_recipeCount
private

◆ m_recipeID

int m_recipeID
private

◆ m_recipes

ref array<int> m_recipes
private

◆ m_recipesManager

PluginRecipesManager m_recipesManager
private

The documentation for this class was generated from the following file: