Dayz Explorer 1.28.160049
Loading...
Searching...
No Matches
PluginRecipesManagerBase Class Reference

Protected Member Functions

void GenerateRecipeCache ()
 
void WalkRecipes ()
 
void MatchItems (TStringArray full_path)
 
bool IsRecipePossibleToPerform (int id, ItemBase itemA, ItemBase itemB, PlayerBase player)
 
void PerformRecipeServer (int id, ItemBase item_a, ItemBase item_b, PlayerBase player)
 
void GenerateHumanReadableRecipeList ()
 
array< RecipeBaseGetRecipesForItem (string itemName)
 
bool RecipeSanityCheck (int num_of_ingredients, InventoryItemBase items[], PlayerBase player)
 
void RegisterRecipe (RecipeBase recipe)
 
void UnregisterRecipe (string clasname)
 
bool CheckRecipe (int id, ItemBase item1, ItemBase item2, PlayerBase player)
 
void PrintCache ()
 
bool SortIngredientsInRecipe (int id, int num_of_ingredients, ItemBase ingredients_unsorted[], ItemBase ingredients_sorted[])
 sorts ingredients correctly as either first or second ingredient based on their masks
 
void ClearResults ()
 
bool ResolveIngredients (int num_of_ingredients, int passes=0)
 
void PrintResultMasks (int num)
 
int GetRecipeIntersection (int num_of_ingredients, ItemBase items[])
 fills an array with recipe IDs which 'item_a' and 'item_b' share
 
int SortIngredients (int num_of_ingredients, ItemBase items_unsorted[], int resolved_recipes[])
 
void CreateAllRecipes ()
 
string GetSoundCategory (int recipeID, ItemBase item1, ItemBase item2)
 
RecipeAnimationInfo GetRecipeAnimationInfo (int recipeID, PlayerBase player, ItemBase mainItem, ItemBase target)
 
int GetAnimationCommandUID (int recipeID)
 

Static Protected Member Functions

static int RecipeIDFromClassname (string classname)
 

Protected Attributes

ref array< intm_RcpsArray
 
string m_BaseName
 
int m_RecipeID
 
int item_mask
 
int m_BaseMask
 
string m_ItemName
 
ref CacheObject m_CoItem
 
ref CacheObject m_CoBase
 

Detailed Description

Definition at line 12 of file pluginrecipesmanager.c.

Member Function Documentation

◆ CheckRecipe()

bool PluginRecipesManagerBase::CheckRecipe ( int id,
ItemBase item1,
ItemBase item2,
PlayerBase player )
protected

Definition at line 470 of file pluginrecipesmanager.c.

◆ ClearResults()

void PluginRecipesManagerBase::ClearResults ( )
protected

Definition at line 514 of file pluginrecipesmanager.c.

◆ CreateAllRecipes()

void PluginRecipesManagerBase::CreateAllRecipes ( )
protected

Definition at line 653 of file pluginrecipesmanager.c.

◆ GenerateHumanReadableRecipeList()

void PluginRecipesManagerBase::GenerateHumanReadableRecipeList ( )
protected

Definition at line 342 of file pluginrecipesmanager.c.

◆ GenerateRecipeCache()

void PluginRecipesManagerBase::GenerateRecipeCache ( )
protected

Definition at line 173 of file pluginrecipesmanager.c.

◆ GetAnimationCommandUID()

int PluginRecipesManagerBase::GetAnimationCommandUID ( int recipeID)
protected

Definition at line 686 of file pluginrecipesmanager.c.

◆ GetRecipeAnimationInfo()

RecipeAnimationInfo PluginRecipesManagerBase::GetRecipeAnimationInfo ( int recipeID,
PlayerBase player,
ItemBase mainItem,
ItemBase target )
protected

Definition at line 681 of file pluginrecipesmanager.c.

◆ GetRecipeIntersection()

int PluginRecipesManagerBase::GetRecipeIntersection ( int num_of_ingredients,
ItemBase items[] )
protected

fills an array with recipe IDs which 'item_a' and 'item_b' share

Definition at line 583 of file pluginrecipesmanager.c.

◆ GetRecipesForItem()

array< RecipeBase > PluginRecipesManagerBase::GetRecipesForItem ( string itemName)
protected

Definition at line 386 of file pluginrecipesmanager.c.

◆ GetSoundCategory()

string PluginRecipesManagerBase::GetSoundCategory ( int recipeID,
ItemBase item1,
ItemBase item2 )
protected

Definition at line 659 of file pluginrecipesmanager.c.

◆ IsRecipePossibleToPerform()

bool PluginRecipesManagerBase::IsRecipePossibleToPerform ( int id,
ItemBase itemA,
ItemBase itemB,
PlayerBase player )
protected

Definition at line 289 of file pluginrecipesmanager.c.

◆ MatchItems()

void PluginRecipesManagerBase::MatchItems ( TStringArray full_path)
protected

Definition at line 256 of file pluginrecipesmanager.c.

◆ PerformRecipeServer()

void PluginRecipesManagerBase::PerformRecipeServer ( int id,
ItemBase item_a,
ItemBase item_b,
PlayerBase player )
protected

Definition at line 310 of file pluginrecipesmanager.c.

◆ PrintCache()

void PluginRecipesManagerBase::PrintCache ( )
protected

Definition at line 476 of file pluginrecipesmanager.c.

◆ PrintResultMasks()

void PluginRecipesManagerBase::PrintResultMasks ( int num)
protected

Definition at line 574 of file pluginrecipesmanager.c.

◆ RecipeIDFromClassname()

static int PluginRecipesManagerBase::RecipeIDFromClassname ( string classname)
staticprotected

Definition at line 463 of file pluginrecipesmanager.c.

◆ RecipeSanityCheck()

bool PluginRecipesManagerBase::RecipeSanityCheck ( int num_of_ingredients,
InventoryItemBase items[],
PlayerBase player )
protected

Definition at line 400 of file pluginrecipesmanager.c.

◆ RegisterRecipe()

void PluginRecipesManagerBase::RegisterRecipe ( RecipeBase recipe)
protected

Definition at line 436 of file pluginrecipesmanager.c.

◆ ResolveIngredients()

bool PluginRecipesManagerBase::ResolveIngredients ( int num_of_ingredients,
int passes = 0 )
protected

Definition at line 523 of file pluginrecipesmanager.c.

◆ SortIngredients()

int PluginRecipesManagerBase::SortIngredients ( int num_of_ingredients,
ItemBase items_unsorted[],
int resolved_recipes[] )
protected

Definition at line 633 of file pluginrecipesmanager.c.

◆ SortIngredientsInRecipe()

bool PluginRecipesManagerBase::SortIngredientsInRecipe ( int id,
int num_of_ingredients,
ItemBase ingredients_unsorted[],
ItemBase ingredients_sorted[] )
protected

sorts ingredients correctly as either first or second ingredient based on their masks

Definition at line 489 of file pluginrecipesmanager.c.

◆ UnregisterRecipe()

void PluginRecipesManagerBase::UnregisterRecipe ( string clasname)
protected

Definition at line 450 of file pluginrecipesmanager.c.

◆ WalkRecipes()

void PluginRecipesManagerBase::WalkRecipes ( )
protected

Definition at line 212 of file pluginrecipesmanager.c.

Member Data Documentation

◆ item_mask

int PluginRecipesManagerBase::item_mask
protected

Definition at line 249 of file pluginrecipesmanager.c.

◆ m_BaseMask

int PluginRecipesManagerBase::m_BaseMask
protected

Definition at line 250 of file pluginrecipesmanager.c.

◆ m_BaseName

string PluginRecipesManagerBase::m_BaseName
protected

Definition at line 247 of file pluginrecipesmanager.c.

◆ m_CoBase

ref CacheObject PluginRecipesManagerBase::m_CoBase
protected

Definition at line 253 of file pluginrecipesmanager.c.

◆ m_CoItem

ref CacheObject PluginRecipesManagerBase::m_CoItem
protected

Definition at line 252 of file pluginrecipesmanager.c.

◆ m_ItemName

string PluginRecipesManagerBase::m_ItemName
protected

Definition at line 251 of file pluginrecipesmanager.c.

◆ m_RcpsArray

ref array<int> PluginRecipesManagerBase::m_RcpsArray
protected

Definition at line 246 of file pluginrecipesmanager.c.

◆ m_RecipeID

int PluginRecipesManagerBase::m_RecipeID
protected

Definition at line 248 of file pluginrecipesmanager.c.


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