Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
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 ()
int GetRecipeID ()
int GetRecipeID (int action_index)
int GetRecipesCount ()
bool IsEnableDebugCrafting ()
bool IsInventoryCraft ()
bool IsWorldCraft ()
void OnUpdate (Object item, Object target, int component_index)
void ResetInventoryCraft ()
bool SetInventoryCraft (int recipeID, ItemBase item1, ItemBase item2)
void SetNextRecipe ()
void SetRecipeID (int recipeID)

Private Attributes

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

Detailed Description

Client only - manage set up crafting on client.

Definition at line 2 of file craftingmanager.c.

Constructor & Destructor Documentation

◆ CraftingManager()

void CraftingManager ( PlayerBase player,
PluginRecipesManager recipesManager )
inlineprivate

◆ ~CraftingManager()

void ~CraftingManager ( )
inlineprivate

Definition at line 31 of file craftingmanager.c.

References m_actionVariantManager, and OnUpdate().

Member Function Documentation

◆ GetRecipeID() [1/2]

int GetRecipeID ( )
inlineprivate

Definition at line 44 of file craftingmanager.c.

References m_recipeID.

◆ GetRecipeID() [2/2]

int GetRecipeID ( int action_index)
inlineprivate

Definition at line 183 of file craftingmanager.c.

References m_recipes.

◆ GetRecipesCount()

int GetRecipesCount ( )
inlineprivate

Definition at line 59 of file craftingmanager.c.

References m_recipeCount.

◆ IsEnableDebugCrafting()

bool IsEnableDebugCrafting ( )
inlineprivate

Definition at line 178 of file craftingmanager.c.

◆ IsInventoryCraft()

bool IsInventoryCraft ( )
inlineprivate

Definition at line 49 of file craftingmanager.c.

References CM_MODE_INVENTORY, and m_craftingMode.

◆ IsWorldCraft()

bool IsWorldCraft ( )
inlineprivate

Definition at line 54 of file craftingmanager.c.

References CM_MODE_WORLD, and m_craftingMode.

◆ OnUpdate()

◆ ResetInventoryCraft()

void ResetInventoryCraft ( )
inlineprivate

Definition at line 172 of file craftingmanager.c.

References CM_MODE_NONE, m_craftingMode, and m_recipeCount.

◆ SetInventoryCraft()

◆ SetNextRecipe()

void SetNextRecipe ( )
inlineprivate

Definition at line 64 of file craftingmanager.c.

◆ SetRecipeID()

void SetRecipeID ( int recipeID)
inlineprivate

Definition at line 39 of file craftingmanager.c.

References m_recipeID.

Field Documentation

◆ CM_MODE_INVENTORY

const int CM_MODE_INVENTORY = 2
private

Definition at line 6 of file craftingmanager.c.

Referenced by IsInventoryCraft(), OnUpdate(), and SetInventoryCraft().

◆ CM_MODE_NONE

const int CM_MODE_NONE = 0
private

Definition at line 4 of file craftingmanager.c.

Referenced by CraftingManager(), OnUpdate(), and ResetInventoryCraft().

◆ CM_MODE_WORLD

const int CM_MODE_WORLD = 1
private

Definition at line 5 of file craftingmanager.c.

Referenced by IsWorldCraft(), and OnUpdate().

◆ m_actionVariantManager

ActionVariantManager m_actionVariantManager
private

Definition at line 10 of file craftingmanager.c.

Referenced by CraftingManager(), ~CraftingManager(), and OnUpdate().

◆ m_contextualRecipeID

int m_contextualRecipeID
private

Definition at line 12 of file craftingmanager.c.

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_craftingMode

int m_craftingMode
private

◆ m_item1

ItemBase m_item1
private

Definition at line 15 of file craftingmanager.c.

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_item2

ItemBase m_item2
private

Definition at line 16 of file craftingmanager.c.

Referenced by OnUpdate(), and SetInventoryCraft().

◆ m_player

PlayerBase m_player
private

Definition at line 8 of file craftingmanager.c.

Referenced by CraftingManager(), OnUpdate(), and SetInventoryCraft().

◆ m_recipeCount

int m_recipeCount
private

◆ m_recipeID

int m_recipeID
private

Definition at line 11 of file craftingmanager.c.

Referenced by GetRecipeID(), OnUpdate(), SetInventoryCraft(), and SetRecipeID().

◆ m_recipes

ref array<int> m_recipes
private

Definition at line 18 of file craftingmanager.c.

Referenced by CraftingManager(), GetRecipeID(), OnUpdate(), and SetInventoryCraft().

◆ m_recipesManager

PluginRecipesManager m_recipesManager
private

Definition at line 9 of file craftingmanager.c.

Referenced by CraftingManager(), OnUpdate(), and SetInventoryCraft().


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