Dayz 1.25
Dayz Code Explorer by KGB
Загрузка...
Поиск...
Не найдено
Файл CacheObject.c

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

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

class  RecipeCacheData
 

Функции

void CacheObject ()
 
bool AddRecipe (int recipe_id, int mask)
 
void UpdateMask (int recipe_id, int mask)
 
int GetNumberOfRecipes ()
 
array< intGetRecipes ()
 
bool IsContainRecipe (int recipe_id)
 
int GetMaskByRecipeID (int recipe_id)
 
int GetBitCountByRecipeID (int recipe_id)
 
void DebugPrint ()
 

Переменные

class RecipeCacheData int
 
class RecipeCacheData m_Recipes
 
ref array< intm_RecipeIDs
 

Функции

◆ AddRecipe()

bool AddRecipe ( int recipe_id,
int mask )
42 {
44 if(data)
45 {
47 }
48 else
49 {
51 m_RecipeIDs.Insert(recipe_id);
52
53 }
54 return true;
55 }
ref array< int > m_RecipeIDs
Definition CacheObject.c:33
class RecipeCacheData m_Recipes
void UpdateMask(int recipe_id, int mask)
Definition CacheObject.c:58
Definition EntityAI.c:95
Definition CacheObject.c:3

Перекрестные ссылки m_RecipeIDs, m_Recipes и UpdateMask().

◆ CacheObject()

◆ DebugPrint()

void DebugPrint ( )
98 {
99 for(int i = 0; i < m_Recipes.Count();i++)
100 {
101 Print("recipeID:"+m_Recipes.GetKey(i).ToString());
102 Print("mask:"+m_Recipes.GetElement(i).m_Mask.ToString());
103 Print("m_BitCount:"+m_Recipes.GetElement(i).m_BitCount.ToString());
104
105 }
106 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки m_Recipes и Print().

◆ GetBitCountByRecipeID()

int GetBitCountByRecipeID ( int recipe_id)
90 {
92 if(cache_data)
93 return cache_data.GetBitCount();
94 return 0;
95 }

Перекрестные ссылки m_Recipes.

◆ GetMaskByRecipeID()

int GetMaskByRecipeID ( int recipe_id)
82 {
84 if(cache_data)
85 return cache_data.GetMask();
86 return 0;
87 }

Перекрестные ссылки m_Recipes.

◆ GetNumberOfRecipes()

int GetNumberOfRecipes ( )
67 {
68 return m_Recipes.Count();
69 }

Перекрестные ссылки m_Recipes.

◆ GetRecipes()

array< int > GetRecipes ( )
72 {
73 return m_RecipeIDs;
74 }

Перекрестные ссылки m_RecipeIDs.

◆ IsContainRecipe()

bool IsContainRecipe ( int recipe_id)
77 {
78 return m_Recipes.Contains(recipe_id);
79 }

Перекрестные ссылки m_Recipes.

◆ UpdateMask()

void UpdateMask ( int recipe_id,
int mask )
59 {
61 data.SetMask(data.GetMask() | mask);
62
63 }

Перекрестные ссылки m_Recipes.

Используется в AddRecipe().

Переменные

◆ int

◆ m_RecipeIDs

ref array<int> m_RecipeIDs

Используется в AddRecipe(), CacheObject() и GetRecipes().

◆ m_Recipes