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

Защищенные члены

void ActionVariantManager (typename type)
 
ScriptInvoker GetOnUpdateInvoker ()
 
void Clear ()
 
void SetActionVariantCount (int count)
 
int GetActions (out array< ref ActionBase > variants_action)
 
int GetActionsCount ()
 
void UpdateVariants (Object item, Object target, int componet_index)
 

Защищенные данные

ref array< ref ActionBasem_VariantActions
 
 m_type
 
ref ScriptInvoker e_OnUpdate
 

Подробное описание

Конструктор(ы)

◆ ActionVariantManager()

void ActionVariantManager ( typename type )
inlineprotected
8 {
9 m_type = type;
12 }
m_type
Definition ActionVariantsManager.c:4
ref ScriptInvoker e_OnUpdate
Definition ActionVariantsManager.c:5
ref array< ref ActionBase > m_VariantActions
Definition ActionVariantsManager.c:3
Definition EntityAI.c:95
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116

Перекрестные ссылки e_OnUpdate, m_type и m_VariantActions.

Методы

◆ Clear()

void Clear ( )
inlineprotected
20 {
21 m_VariantActions.Clear();
22 }

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

Используется в CraftingManager::OnUpdate(), ConstructionActionData::OnUpdateActions() и ConstructionActionData::OnUpdateActionsNoTool().

◆ GetActions()

int GetActions ( out array< ref ActionBase > variants_action)
inlineprotected
41 {
43 return m_VariantActions.Count();
44 }

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

◆ GetActionsCount()

int GetActionsCount ( )
inlineprotected
47 {
48 return m_VariantActions.Count();
49 }

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

◆ GetOnUpdateInvoker()

ScriptInvoker GetOnUpdateInvoker ( )
inlineprotected
15 {
16 return e_OnUpdate;
17 }

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

Используется в ConstructionActionData::ConstructionActionData() и CraftingManager::CraftingManager().

◆ SetActionVariantCount()

void SetActionVariantCount ( int count)
inlineprotected
25 {
26 if ( count < m_VariantActions.Count() )
27 {
28 m_VariantActions.Clear();
29 }
30
31 for (int i = m_VariantActions.Count(); i < count; i++ )
32 {
33 ActionBase action = ActionManagerBase.GetActionVariant( m_type );
34 action.SetVariantID(i);
36 }
37
38 }

Перекрестные ссылки m_type и m_VariantActions.

Используется в CraftingManager::OnUpdate(), ConstructionActionData::OnUpdateActions() и ConstructionActionData::OnUpdateActionsNoTool().

◆ UpdateVariants()

void UpdateVariants ( Object item,
Object target,
int componet_index )
inlineprotected
52 {
54 }

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

Поля

◆ e_OnUpdate

ref ScriptInvoker e_OnUpdate
protected

◆ m_type

m_type
protected

Используется в ActionVariantManager() и SetActionVariantCount().

◆ m_VariantActions

ref array<ref ActionBase> m_VariantActions
protected

Объявления и описания членов класса находятся в файле: