DayZ 1.28
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Файл RecipeBase.c

См. исходные тексты.

Структуры данных

class  RecipeAnimationInfo
 

Функции

void RecipeBase ()
 
void Init ()
 Launched from 'DayZGame.DeferredInit' to make earlier access, use, and updates impossible (downside of a non-static system)
 
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)
 

Переменные

const int MAX_NUMBER_OF_INGREDIENTS = 2
 
const int MAXIMUM_RESULTS = 10
 
const float DEFAULT_SPAWN_DISTANCE = 0.6
 
class RecipeAnimationInfo BASE_CRAFT_ANIMATION_ID = DayZPlayerConstants.CMD_ACTIONFB_CRAFTING
 
string m_ItemsToCreate [MAXIMUM_RESULTS]
 
ref array< stringm_Ingredients [MAX_NUMBER_OF_INGREDIENTS]
 
ref array< stringm_SoundCategories [MAX_NUMBER_OF_INGREDIENTS]
 
ref array< ref RecipeAnimationInfom_AnimationInfos = new array<ref RecipeAnimationInfo>()
 
ItemBase m_Items [MAX_NUMBER_OF_INGREDIENTS]
 
ItemBase m_IngredientsSorted [MAX_NUMBER_OF_INGREDIENTS]
 
ref array< ItemBasem_IngredientsToBeDeleted = new array<ItemBase>
 
string m_Name
 
int m_ID
 
int m_NumberOfResults
 
int m_RecipeUID
 
float m_AnimationLength = 1
 
float m_Specialty = 0
 
bool m_IsInstaRecipe
 
bool m_AnywhereInInventory
 
float m_MinQuantityIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MaxQuantityIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MinDamageIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
float m_MaxDamageIngredient [MAX_NUMBER_OF_INGREDIENTS]
 
bool m_IngredientUseSoftSkills [MAX_NUMBER_OF_INGREDIENTS]
 
float m_IngredientAddHealth [MAX_NUMBER_OF_INGREDIENTS]
 
float m_IngredientAddQuantity [MAX_NUMBER_OF_INGREDIENTS]
 
float m_IngredientSetHealth [MAX_NUMBER_OF_INGREDIENTS]
 
bool m_IngredientDestroy [MAX_NUMBER_OF_INGREDIENTS]
 
bool m_ResultSetFullQuantity [MAXIMUM_RESULTS]
 
float m_ResultSetQuantity [MAXIMUM_RESULTS]
 
float m_ResultSetHealth [MAXIMUM_RESULTS]
 
float m_ResultSpawnDistance [MAXIMUM_RESULTS]
 
int m_ResultToInventory [MAXIMUM_RESULTS]
 
int m_ResultInheritsHealth [MAXIMUM_RESULTS]
 
int m_ResultInheritsColor [MAXIMUM_RESULTS]
 
int m_ResultReplacesIngredient [MAXIMUM_RESULTS]
 
bool m_ResultUseSoftSkills [MAXIMUM_RESULTS]