DayZ 1.24
Loading...
Searching...
No Matches
ActionVariantsManager.c
Go to the documentation of this file.
2{
4 protected typename m_type;
6
7 void ActionVariantManager(typename type)
8 {
9 m_type = type;
12 }
13
18
19 void Clear()
20 {
21 m_VariantActions.Clear();
22 }
23
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 }
37
43
45 {
46 return m_VariantActions.Count();
47 }
48
53}
ScriptInvoker GetOnUpdateInvoker()
void UpdateVariants(Object item, Object target, int componet_index)
void ActionVariantManager(typename type)
int GetActions(out array< ref ActionBase > variants_action)
ref ScriptInvoker e_OnUpdate
ref array< ref ActionBase > m_VariantActions
void SetActionVariantCount(int count)
ScriptInvoker Class provide list of callbacks usage:
Definition tools.c:116