DayZ 1.24
Loading...
Searching...
No Matches
ActionVariantManager Class Reference
Collaboration diagram for ActionVariantManager:
[legend]

Protected Member Functions

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)
 

Protected Attributes

ref array< ref ActionBasem_VariantActions
 
 m_type
 
ref ScriptInvoker e_OnUpdate
 

Detailed Description

Definition at line 1 of file ActionVariantsManager.c.

Constructor & Destructor Documentation

◆ ActionVariantManager()

void ActionVariantManager::ActionVariantManager ( typename type )
inlineprotected

Definition at line 7 of file ActionVariantsManager.c.

8 {
9 m_type = type;
12 }
ref ScriptInvoker e_OnUpdate
ref array< ref ActionBase > m_VariantActions
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116

References e_OnUpdate, m_type, and m_VariantActions.

Member Function Documentation

◆ Clear()

void ActionVariantManager::Clear ( )
inlineprotected

◆ GetActions()

int ActionVariantManager::GetActions ( out array< ref ActionBase > variants_action)
inlineprotected

Definition at line 38 of file ActionVariantsManager.c.

39 {
41 return m_VariantActions.Count();
42 }

References m_VariantActions.

◆ GetActionsCount()

int ActionVariantManager::GetActionsCount ( )
inlineprotected

Definition at line 44 of file ActionVariantsManager.c.

45 {
46 return m_VariantActions.Count();
47 }

References m_VariantActions.

◆ GetOnUpdateInvoker()

ScriptInvoker ActionVariantManager::GetOnUpdateInvoker ( )
inlineprotected

Definition at line 14 of file ActionVariantsManager.c.

15 {
16 return e_OnUpdate;
17 }

References e_OnUpdate.

Referenced by ConstructionActionData::ConstructionActionData(), and CraftingManager::CraftingManager().

◆ SetActionVariantCount()

void ActionVariantManager::SetActionVariantCount ( int count)
inlineprotected

Definition at line 24 of file ActionVariantsManager.c.

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

References m_type, and m_VariantActions.

Referenced by CraftingManager::OnUpdate(), ConstructionActionData::OnUpdateActions(), and ConstructionActionData::OnUpdateActionsNoTool().

◆ UpdateVariants()

void ActionVariantManager::UpdateVariants ( Object item,
Object target,
int componet_index )
inlineprotected

Definition at line 49 of file ActionVariantsManager.c.

50 {
52 }

References e_OnUpdate.

Member Data Documentation

◆ e_OnUpdate

ref ScriptInvoker ActionVariantManager::e_OnUpdate
protected

Definition at line 5 of file ActionVariantsManager.c.

Referenced by ActionVariantManager(), GetOnUpdateInvoker(), and UpdateVariants().

◆ m_type

ActionVariantManager::m_type
protected

Definition at line 4 of file ActionVariantsManager.c.

Referenced by ActionVariantManager(), and SetActionVariantCount().

◆ m_VariantActions

ref array<ref ActionBase> ActionVariantManager::m_VariantActions
protected

The documentation for this class was generated from the following file: