Data Structures | |
class | RecipeAnimationInfo |
Functions | |
void | RecipeBase () |
void | Init () |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system) | |
protected void | SetAnimation (DayZPlayerConstants uid) |
float | GetLengthInSecs () |
float | GetSpecialty () |
bool | IsRecipeAnywhere () |
bool | IsRepeatable () |
bool | CheckIngredientMatch (ItemBase item1, ItemBase item2) |
void | InsertIngredient (int index, string ingredient, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false) |
void | InsertIngredientEx (int index, string ingredient, string soundCategory, DayZPlayerConstants uid=BASE_CRAFT_ANIMATION_ID, bool showItem=false) |
void | RemoveIngredient (int index, string ingredient) |
void | AddResult (string item) |
string | GetName () |
Test name getter. Strictly for UI porposes! | |
bool | IsInstaRecipe () |
void | SpawnItems (ItemBase ingredients[], PlayerBase player, array< ItemBase > spawned_objects) |
void | ApplyModificationsResults (ItemBase sorted[], array< ItemBase > results, ItemBase result, PlayerBase player) |
void | DeleleIngredientsPass () |
void | ApplyModificationsIngredients (ItemBase sorted[], PlayerBase player) |
bool | CheckConditions (ItemBase sorted[]) |
bool | CheckRecipe (ItemBase item1, ItemBase item2, PlayerBase player) |
void | OnSelectedRecipe (ItemBase item1, ItemBase item2, PlayerBase player) |
void | OnSelected (ItemBase item1, ItemBase item2, PlayerBase player) |
void | PerformRecipe (ItemBase item1, ItemBase item2, PlayerBase player) |
void | ApplySoftSkillsSpecialty (PlayerBase player) |
bool | CanDo (ItemBase ingredients[], PlayerBase player) |
void | Do (ItemBase ingredients[], PlayerBase player, array< ItemBase > results, float specialty_weight) |
int | GetID () |
void | SetID (int id) |
void | GetAllItems (array< string > items) |
string | GetSoundCategory (int ingredientIndex, ItemBase item) |
bool | IsItemInRecipe (string item) |
int | GetIngredientMaskForItem (string item) |
returns a mask which marks ingredient positions for a given item in this recipe(for example mask of value 3 [....000011] means this item is both ingredient 1 and 2 in this recipe[from right to left]) | |
int | GetAnimationCommandUID () |
RecipeAnimationInfo | GetRecipeAnimationInfo (PlayerBase player, ItemBase mainItem, ItemBase target) |
void AddResult | ( | string | item | ) |
References m_ItemsToCreate, and m_NumberOfResults.
Referenced by RecipeBase::Init(), CraftDrysackBag::Init(), CraftTorch::Init(), CraftWitchHoodCoif::Init(), CutOutSeeds::Init(), PrepareFish::Init(), and PrepareAnimal::Init().
void ApplyModificationsIngredients | ( | ItemBase | sorted[], |
PlayerBase | player | ||
) |
References m_IngredientAddHealth, m_IngredientAddQuantity, m_IngredientDestroy, m_IngredientSetHealth, m_IngredientsToBeDeleted, and MAX_NUMBER_OF_INGREDIENTS.
Referenced by PerformRecipe().
void ApplyModificationsResults | ( | ItemBase | sorted[], |
array< ItemBase > | results, | ||
ItemBase | result, | ||
PlayerBase | player | ||
) |
void ApplySoftSkillsSpecialty | ( | PlayerBase | player | ) |
bool CanDo | ( | ItemBase | ingredients[], |
PlayerBase | player | ||
) |
References MAX_NUMBER_OF_INGREDIENTS.
References m_MaxDamageIngredient, m_MaxQuantityIngredient, m_MinDamageIngredient, m_MinQuantityIngredient, and MAX_NUMBER_OF_INGREDIENTS.
Referenced by CheckRecipe().
References GetGame(), m_Ingredients, m_IngredientsSorted, m_Items, MAX_NUMBER_OF_INGREDIENTS, and x.
bool CheckRecipe | ( | ItemBase | item1, |
ItemBase | item2, | ||
PlayerBase | player | ||
) |
References RecipeBase::CanDo(), CheckConditions(), Error(), IsRecipeAnywhere(), and m_IngredientsSorted.
Referenced by PerformRecipe().
void DeleleIngredientsPass | ( | ) |
References m_IngredientsToBeDeleted.
Referenced by PerformRecipe().
void Do | ( | ItemBase | ingredients[], |
PlayerBase | player, | ||
array< ItemBase > | results, | ||
float | specialty_weight | ||
) |
References m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, and x.
int GetAnimationCommandUID | ( | ) |
References BASE_CRAFT_ANIMATION_ID.
returns a mask which marks ingredient positions for a given item in this recipe(for example mask of value 3 [....000011] means this item is both ingredient 1 and 2 in this recipe[from right to left])
References m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, Math::Pow(), and x.
float GetLengthInSecs | ( | ) |
References CRAFTING_TIME_UNIT_SIZE, and m_AnimationLength.
RecipeAnimationInfo GetRecipeAnimationInfo | ( | PlayerBase | player, |
ItemBase | mainItem, | ||
ItemBase | target | ||
) |
References BASE_CRAFT_ANIMATION_ID, GetGame(), m_AnimationInfos, and RecipeAnimationInfo::m_IngredientName.
References GetGame(), m_Ingredients, m_SoundCategories, and x.
float GetSpecialty | ( | ) |
References m_Specialty.
void Init | ( | ) |
Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
whole body slots
upper body part slots
bottom body part slots
lower body part slots
heat comfort related slots
pre-init arrays
void InsertIngredient | ( | int | index, |
string | ingredient, | ||
DayZPlayerConstants | uid = BASE_CRAFT_ANIMATION_ID , |
||
bool | showItem = false |
||
) |
References InsertIngredientEx().
Referenced by RecipeBase::Init(), CleanWeapon::Init(), CraftDrysackBag::Init(), CraftTorch::Init(), CraftWitchHoodCoif::Init(), CutOutSeeds::Init(), PrepareFish::Init(), and PrepareAnimal::Init().
void InsertIngredientEx | ( | int | index, |
string | ingredient, | ||
string | soundCategory, | ||
DayZPlayerConstants | uid = BASE_CRAFT_ANIMATION_ID , |
||
bool | showItem = false |
||
) |
References BASE_CRAFT_ANIMATION_ID, GetGame(), m_AnimationInfos, m_Ingredients, and m_SoundCategories.
Referenced by RecipeBase::Init(), and InsertIngredient().
bool IsInstaRecipe | ( | ) |
References m_IsInstaRecipe.
References m_Ingredients, MAX_NUMBER_OF_INGREDIENTS, and x.
bool IsRecipeAnywhere | ( | ) |
References m_AnywhereInInventory.
Referenced by CheckRecipe().
bool IsRepeatable | ( | ) |
void OnSelected | ( | ItemBase | item1, |
ItemBase | item2, | ||
PlayerBase | player | ||
) |
void OnSelectedRecipe | ( | ItemBase | item1, |
ItemBase | item2, | ||
PlayerBase | player | ||
) |
References Error(), and OnSelected().
void PerformRecipe | ( | ItemBase | item1, |
ItemBase | item2, | ||
PlayerBase | player | ||
) |
void RecipeBase | ( | ) |
References m_Ingredients, and m_SoundCategories.
protected void SetAnimation | ( | DayZPlayerConstants | uid | ) |
References m_RecipeUID.
void SpawnItems | ( | ItemBase | ingredients[], |
PlayerBase | player, | ||
array< ItemBase > | spawned_objects | ||
) |
class RecipeAnimationInfo BASE_CRAFT_ANIMATION_ID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING |
Referenced by GetAnimationCommandUID(), GetRecipeAnimationInfo(), InsertIngredientEx(), and RecipeBase().
const float DEFAULT_SPAWN_DISTANCE = 0.6 |
Referenced by RecipeBase::Do(), ActionEmptyMagazine::OnExecuteServer(), OnSuccess(), and RecipeBase().
protected ref array<ref RecipeAnimationInfo> m_AnimationInfos = new array<ref RecipeAnimationInfo>() |
Referenced by GetRecipeAnimationInfo(), and InsertIngredientEx().
float m_AnimationLength = 1 |
bool m_AnywhereInInventory |
Referenced by RecipeBase::Init(), and IsRecipeAnywhere().
int m_ID |
float m_IngredientAddHealth[MAX_NUMBER_OF_INGREDIENTS] |
float m_IngredientAddQuantity[MAX_NUMBER_OF_INGREDIENTS] |
bool m_IngredientDestroy[MAX_NUMBER_OF_INGREDIENTS] |
ref array<string> m_Ingredients[MAX_NUMBER_OF_INGREDIENTS] |
Referenced by CheckIngredientMatch(), GetAllItems(), GetIngredientMaskForItem(), GetSoundCategory(), PluginRecipesManagerBase::GetValidRecipes(), InsertIngredientEx(), IsItemInRecipe(), PluginRecipesManagerBase::IsRecipePossibleToPerform(), PluginRecipesManagerBase::PerformRecipeServer(), RecipeBase(), and RemoveIngredient().
float m_IngredientSetHealth[MAX_NUMBER_OF_INGREDIENTS] |
ItemBase m_IngredientsSorted[MAX_NUMBER_OF_INGREDIENTS] |
Referenced by CheckIngredientMatch(), CheckRecipe(), PerformRecipe(), and RecipeBase().
Referenced by ApplyModificationsIngredients(), and DeleleIngredientsPass().
bool m_IngredientUseSoftSkills[MAX_NUMBER_OF_INGREDIENTS] |
Referenced by RecipeBase::Init(), CleanWeapon::Init(), CraftTorch::Init(), and CutOutSeeds::Init().
bool m_IsInstaRecipe |
ItemBase m_Items[MAX_NUMBER_OF_INGREDIENTS] |
Referenced by ScriptedWidgetEventHandler::AddItem(), CTObjectFollower::AddItem(), CheckIngredientMatch(), UIScriptedMenu::CreateContent(), UIScriptedMenu::GetItems(), ScriptedWidgetEventHandler::HasItem(), ScriptedWidgetEventHandler::InventoryGrid(), InventoryGridController::InventoryQuickbar(), UIScriptedMenu::RadialQuickbarMenu(), UIScriptedMenu::RefreshQuickbar(), ScriptedWidgetEventHandler::RemoveItem(), ScriptedWidgetEventHandler::ResetItem(), ScriptedWidgetEventHandler::SetItem(), ScriptedWidgetEventHandler::SetItemColor(), CTObjectFollower::SetItems(), ScriptedWidgetEventHandler::UpdateItems(), InventoryGridController::UpdateItems(), ScriptedWidgetEventHandler::UpdateQuantityItems(), ScriptedWidgetEventHandler::UpdateQuickbarItems(), and ScriptedWidgetEventHandler::UpdateTemperatureItems().
string m_ItemsToCreate[MAXIMUM_RESULTS] |
Referenced by AddResult(), and SpawnItems().
float m_MaxDamageIngredient[MAX_NUMBER_OF_INGREDIENTS] |
float m_MaxQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS] |
float m_MinDamageIngredient[MAX_NUMBER_OF_INGREDIENTS] |
float m_MinQuantityIngredient[MAX_NUMBER_OF_INGREDIENTS] |
string m_Name |
int m_NumberOfResults |
Referenced by AddResult(), ApplyModificationsResults(), RecipeBase(), and SpawnItems().
int m_RecipeUID |
Referenced by RecipeBase::Init(), RecipeBase(), and SetAnimation().
int m_ResultInheritsColor[MAXIMUM_RESULTS] |
int m_ResultInheritsHealth[MAXIMUM_RESULTS] |
int m_ResultReplacesIngredient[MAXIMUM_RESULTS] |
bool m_ResultSetFullQuantity[MAXIMUM_RESULTS] |
float m_ResultSetHealth[MAXIMUM_RESULTS] |
float m_ResultSetQuantity[MAXIMUM_RESULTS] |
float m_ResultSpawnDistance[MAXIMUM_RESULTS] |
Referenced by RecipeBase(), and SpawnItems().
int m_ResultToInventory[MAXIMUM_RESULTS] |
bool m_ResultUseSoftSkills[MAXIMUM_RESULTS] |
Referenced by RecipeBase::Init(), and CraftTorch::Init().
ref array<string> m_SoundCategories[MAX_NUMBER_OF_INGREDIENTS] |
Referenced by GetSoundCategory(), InsertIngredientEx(), RecipeBase(), and RemoveIngredient().
float m_Specialty = 0 |
Referenced by CleanWeapon::Do(), RecipeBase::Do(), GetSpecialty(), RecipeBase::Init(), CleanWeapon::Init(), CraftTorch::Init(), and PerformRecipe().
const int MAX_NUMBER_OF_INGREDIENTS = 2 |
const int MAXIMUM_RESULTS = 10 |
Referenced by RecipeBase().