![]() |
Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
|
Protected Member Functions | |
| bool | CheckRecipe (int id, ItemBase item1, ItemBase item2, PlayerBase player) |
| void | ClearResults () |
| void | CreateAllRecipes () |
| void | GenerateHumanReadableRecipeList () |
| void | GenerateRecipeCache () |
| int | GetAnimationCommandUID (int recipeID) |
| RecipeAnimationInfo | GetRecipeAnimationInfo (int recipeID, PlayerBase player, ItemBase mainItem, ItemBase target) |
| int | GetRecipeIntersection (int num_of_ingredients, ItemBase items[]) |
| fills an array with recipe IDs which 'item_a' and 'item_b' share | |
| array< RecipeBase > | GetRecipesForItem (string itemName) |
| string | GetSoundCategory (int recipeID, ItemBase item1, ItemBase item2) |
| bool | IsRecipePossibleToPerform (int id, ItemBase itemA, ItemBase itemB, PlayerBase player) |
| void | MatchItems (TStringArray full_path) |
| void | PerformRecipeServer (int id, ItemBase item_a, ItemBase item_b, PlayerBase player) |
| void | PrintCache () |
| void | PrintResultMasks (int num) |
| bool | RecipeSanityCheck (int num_of_ingredients, InventoryItemBase items[], PlayerBase player) |
| void | RegisterRecipe (RecipeBase recipe) |
| bool | ResolveIngredients (int num_of_ingredients, int passes=0) |
| int | SortIngredients (int num_of_ingredients, ItemBase items_unsorted[], int resolved_recipes[]) |
| 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 | UnregisterRecipe (string clasname) |
| void | WalkRecipes () |
Static Protected Member Functions | |
| static int | RecipeIDFromClassname (string classname) |
Protected Attributes | |
| int | item_mask |
| int | m_BaseMask |
| string | m_BaseName |
| ref CacheObject | m_CoBase |
| ref CacheObject | m_CoItem |
| string | m_ItemName |
| ref array< int > | m_RcpsArray |
| int | m_RecipeID |
Private Member Functions | |
| void | ~PluginRecipesManager () |
| void | CallbackGenerateCache () |
| bool | GetIsInstaRecipe (int recipe_id) |
| bool | GetIsRepeatable (int recipe_id) |
| float | GetRecipeLengthInSecs (int recipe_id) |
| string | GetRecipeName (int recipe_id) |
| float | GetRecipeSpecialty (int recipe_id) |
| int | GetValidRecipes (ItemBase item1, ItemBase item2, array< int > ids, PlayerBase player) |
| int | GetValidRecipesProper (int num_of_items, ItemBase items[], array< int > ids, PlayerBase player) |
| bool | IsEnableDebugCrafting () |
| override void | OnInit () |
| void | PluginRecipesManager () |
| void | SetEnableDebugCrafting (bool enable) |
Static Private Member Functions | |
| static int | GetMaxNumberOfRecipes () |
Private Attributes | |
| int | m_BitsResults [MAX_INGREDIENTS] |
| ref array< string > | m_CachedItems = new array<string> |
| bool | m_EnableDebugCrafting = false |
| ItemBase | m_ingredient1 [MAX_CONCURENT_RECIPES] |
| ItemBase | m_ingredient2 [MAX_CONCURENT_RECIPES] |
| ItemBase | m_ingredient3 [MAX_CONCURENT_RECIPES] |
| int | m_IngredientBitMask [MAX_INGREDIENTS] |
| int | m_IngredientBitMaskSize [MAX_INGREDIENTS] |
| ItemBase | m_Ingredients [MAX_INGREDIENTS] |
| ref array< ref RecipeBase > | m_RecipeList = new array<ref RecipeBase> |
| ref array< int > | m_RecipesMatched = new array<int> |
| int | m_RegRecipeIndex |
| int | m_ResolvedRecipes [MAX_CONCURENT_RECIPES] |
| ItemBase | m_sortedIngredients [MAX_NUMBER_OF_INGREDIENTS] |
| ref Timer | m_TestTimer |
| const int | MAX_CONCURENT_RECIPES = 128 |
| const int | MAX_INGREDIENTS = 5 |
| const int | MAX_NUMBER_OF_RECIPES = GetMaxNumberOfRecipes() |
| ref Timer | myTimer1 |
Static Private Attributes | |
| static ref map< string, ref CacheObject > | m_RecipeCache = new map<string,ref CacheObject > |
| static ref map< string, int > | m_RecipeNamesList = new map<string, int> |
| static ref map< typename, bool > | m_RecipesInitializedItem = new map<typename, bool> |
Definition at line 12 of file pluginrecipesmanager.c.
|
inlineprivate |
Definition at line 61 of file pluginrecipesmanager.c.
|
inlineprivate |
Definition at line 165 of file pluginrecipesmanager.c.
References GenerateRecipeCache(), and Debug::Log().
|
inlineprotected |
Definition at line 470 of file pluginrecipesmanager.c.
References m_RecipeList.
Referenced by IsRecipePossibleToPerform(), and PerformRecipeServer().
|
inlineprotected |
Definition at line 514 of file pluginrecipesmanager.c.
References m_BitsResults, and MAX_INGREDIENTS.
Referenced by SortIngredientsInRecipe().
|
inlineprotected |
Definition at line 653 of file pluginrecipesmanager.c.
References RegisterRecipies().
Referenced by PluginRecipesManager().
|
inlineprotected |
Definition at line 342 of file pluginrecipesmanager.c.
References CacheObject(), CloseFile(), FPrintln(), GetRecipeName(), OpenFile(), PluginRecipesManager(), PrintString, and x.
|
inlineprotected |
Definition at line 173 of file pluginrecipesmanager.c.
References CFG_MAGAZINESPATH, CFG_VEHICLESPATH, CFG_WEAPONSPATH, g_Game, m_CachedItems, MatchItems(), PluginRecipesManager(), WalkRecipes(), and x.
Referenced by CallbackGenerateCache(), and PluginRecipesManager().
Definition at line 686 of file pluginrecipesmanager.c.
References m_RecipeList.
Definition at line 145 of file pluginrecipesmanager.c.
References m_RecipeList.
Definition at line 151 of file pluginrecipesmanager.c.
References m_RecipeList.
|
inlinestaticprivate |
Definition at line 47 of file pluginrecipesmanager.c.
|
inlineprotected |
Definition at line 681 of file pluginrecipesmanager.c.
References m_RecipeList.
fills an array with recipe IDs which 'item_a' and 'item_b' share
Definition at line 583 of file pluginrecipesmanager.c.
References CacheObject(), GetType(), m_RecipesMatched, PluginRecipesManager(), and x.
Referenced by GetValidRecipesProper().
Definition at line 133 of file pluginrecipesmanager.c.
References m_RecipeList.
Definition at line 76 of file pluginrecipesmanager.c.
References m_RecipeList.
Referenced by GenerateHumanReadableRecipeList().
|
inlineprotected |
Definition at line 386 of file pluginrecipesmanager.c.
References CacheObject(), m_RecipeList, and PluginRecipesManager().
Definition at line 139 of file pluginrecipesmanager.c.
References m_RecipeList.
Definition at line 659 of file pluginrecipesmanager.c.
References m_RecipeList, and SortIngredientsInRecipe().
|
inlineprivate |
Definition at line 86 of file pluginrecipesmanager.c.
References ItemBase::DisassembleOnLastDetach(), GetValidRecipesProper(), and m_Ingredients.
|
inlineprivate |
Definition at line 105 of file pluginrecipesmanager.c.
References GetRecipeIntersection(), m_ingredient1, m_ingredient2, m_RecipeList, m_ResolvedRecipes, and SortIngredients().
Referenced by GetValidRecipes().
|
inlineprivate |
Definition at line 66 of file pluginrecipesmanager.c.
References m_EnableDebugCrafting.
|
inlineprotected |
Definition at line 289 of file pluginrecipesmanager.c.
References CheckRecipe(), m_Ingredients, m_sortedIngredients, RecipeSanityCheck(), and SortIngredientsInRecipe().
|
inlineprotected |
Definition at line 256 of file pluginrecipesmanager.c.
References CacheObject(), m_BaseMask, m_BaseName, m_CoBase, m_CoItem, m_ItemName, m_RcpsArray, m_RecipeCache, m_RecipeID, and x.
Referenced by GenerateRecipeCache().
|
inlineprivate |
Definition at line 157 of file pluginrecipesmanager.c.
|
inlineprotected |
Definition at line 310 of file pluginrecipesmanager.c.
References CheckRecipe(), Error(), m_Ingredients, m_RecipeList, m_sortedIngredients, RecipeSanityCheck(), and SortIngredientsInRecipe().
|
inlineprivate |
Definition at line 52 of file pluginrecipesmanager.c.
References CreateAllRecipes(), GenerateRecipeCache(), and myTimer1.
Referenced by GenerateHumanReadableRecipeList(), GenerateRecipeCache(), GetRecipeIntersection(), GetRecipesForItem(), PrintCache(), and SortIngredientsInRecipe().
|
inlineprotected |
Definition at line 476 of file pluginrecipesmanager.c.
References CacheObject(), PluginRecipesManager(), and PrintString.
|
inlineprotected |
Definition at line 574 of file pluginrecipesmanager.c.
References Debug::Log(), and m_BitsResults.
Definition at line 463 of file pluginrecipesmanager.c.
References m_RecipeNamesList.
Referenced by UnregisterRecipe().
|
inlineprotected |
Definition at line 400 of file pluginrecipesmanager.c.
References ACCEPTABLE_DISTANCE, vector::Distance(), MAX_INGREDIENTS, and SANITY_CHECK_ACCEPTABLE_RESULT.
Referenced by IsRecipePossibleToPerform(), and PerformRecipeServer().
|
inlineprotected |
Definition at line 436 of file pluginrecipesmanager.c.
References Error(), m_RecipeList, m_RecipeNamesList, m_RegRecipeIndex, and MAX_NUMBER_OF_RECIPES.
Referenced by RegisterRecipies().
Definition at line 523 of file pluginrecipesmanager.c.
References m_BitsResults, m_IngredientBitMask, m_IngredientBitMaskSize, Math::Pow(), ResolveIngredients(), and x.
Referenced by ResolveIngredients(), and SortIngredientsInRecipe().
|
inlineprivate |
Definition at line 71 of file pluginrecipesmanager.c.
References m_EnableDebugCrafting.
|
inlineprotected |
Definition at line 633 of file pluginrecipesmanager.c.
References m_ingredient1, m_ingredient2, m_RecipesMatched, m_sortedIngredients, MAX_CONCURENT_RECIPES, and SortIngredientsInRecipe().
Referenced by GetValidRecipesProper().
|
inlineprotected |
sorts ingredients correctly as either first or second ingredient based on their masks
Definition at line 489 of file pluginrecipesmanager.c.
References CacheObject(), ClearResults(), GetType(), Math::Log2(), m_BitsResults, m_IngredientBitMask, m_IngredientBitMaskSize, PluginRecipesManager(), and ResolveIngredients().
Referenced by GetSoundCategory(), IsRecipePossibleToPerform(), PerformRecipeServer(), and SortIngredients().
|
inlineprotected |
Definition at line 450 of file pluginrecipesmanager.c.
References m_RecipeList, m_RecipeNamesList, and RecipeIDFromClassname().
|
inlineprotected |
Definition at line 212 of file pluginrecipesmanager.c.
References CacheObject(), m_RecipeCache, m_RecipeList, MAX_NUMBER_OF_INGREDIENTS, Math::Pow(), and x.
Referenced by GenerateRecipeCache().
|
protected |
Definition at line 249 of file pluginrecipesmanager.c.
|
protected |
Definition at line 250 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
protected |
Definition at line 247 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
private |
Definition at line 31 of file pluginrecipesmanager.c.
Referenced by ClearResults(), PrintResultMasks(), ResolveIngredients(), and SortIngredientsInRecipe().
Definition at line 40 of file pluginrecipesmanager.c.
Referenced by GenerateRecipeCache().
|
protected |
Definition at line 253 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
protected |
Definition at line 252 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
private |
Definition at line 26 of file pluginrecipesmanager.c.
Referenced by IsEnableDebugCrafting(), and SetEnableDebugCrafting().
|
private |
Definition at line 33 of file pluginrecipesmanager.c.
Referenced by GetValidRecipesProper(), and SortIngredients().
|
private |
Definition at line 34 of file pluginrecipesmanager.c.
Referenced by GetValidRecipesProper(), and SortIngredients().
|
private |
Definition at line 35 of file pluginrecipesmanager.c.
|
private |
Definition at line 28 of file pluginrecipesmanager.c.
Referenced by ResolveIngredients(), and SortIngredientsInRecipe().
|
private |
Definition at line 29 of file pluginrecipesmanager.c.
Referenced by ResolveIngredients(), and SortIngredientsInRecipe().
|
private |
Definition at line 27 of file pluginrecipesmanager.c.
Referenced by GetValidRecipes(), IsRecipePossibleToPerform(), and PerformRecipeServer().
|
protected |
Definition at line 251 of file pluginrecipesmanager.c.
Referenced by MatchItems().
Definition at line 246 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
staticprivate |
Definition at line 14 of file pluginrecipesmanager.c.
Referenced by MatchItems(), and WalkRecipes().
|
protected |
Definition at line 248 of file pluginrecipesmanager.c.
Referenced by MatchItems().
|
private |
Definition at line 42 of file pluginrecipesmanager.c.
Referenced by CheckRecipe(), GetAnimationCommandUID(), GetIsInstaRecipe(), GetIsRepeatable(), GetRecipeAnimationInfo(), GetRecipeLengthInSecs(), GetRecipeName(), GetRecipesForItem(), GetRecipeSpecialty(), GetSoundCategory(), GetValidRecipesProper(), PerformRecipeServer(), RegisterRecipe(), UnregisterRecipe(), and WalkRecipes().
Definition at line 43 of file pluginrecipesmanager.c.
Referenced by RecipeIDFromClassname(), RegisterRecipe(), and UnregisterRecipe().
Definition at line 15 of file pluginrecipesmanager.c.
Definition at line 39 of file pluginrecipesmanager.c.
Referenced by GetRecipeIntersection(), and SortIngredients().
|
private |
Definition at line 23 of file pluginrecipesmanager.c.
Referenced by RegisterRecipe().
|
private |
Definition at line 24 of file pluginrecipesmanager.c.
Referenced by GetValidRecipesProper().
|
private |
Definition at line 37 of file pluginrecipesmanager.c.
Referenced by IsRecipePossibleToPerform(), PerformRecipeServer(), and SortIngredients().
|
private |
Definition at line 18 of file pluginrecipesmanager.c.
|
private |
Definition at line 20 of file pluginrecipesmanager.c.
Referenced by SortIngredients().
|
private |
Definition at line 21 of file pluginrecipesmanager.c.
Referenced by ClearResults(), and RecipeSanityCheck().
|
private |
Definition at line 19 of file pluginrecipesmanager.c.
Referenced by RegisterRecipe().
|
private |
Definition at line 45 of file pluginrecipesmanager.c.
Referenced by PluginRecipesManager().