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

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

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

class  House
 

Определения типов

typedef House BuildingSuper
 

Функции

void BuildingBase ()
 
void InitializeActions ()
 
override void GetActions (typename action_input_type, out array< ActionBase_Basic > actions)
 
void SetActions ()
 
void AddAction (typename actionName)
 
void RemoveAction (typename actionName)
 

Переменные

House typename
 
House m_BuildingTypeActionsMap = new map<typename, ref TInputActionMap>
 
TInputActionMap m_InputActionMap
 
bool m_ActionsInitialize
 

Типы

◆ BuildingSuper

typedef House BuildingSuper

Функции

◆ AddAction()

void AddAction ( typename actionName )
48 {
49 ActionBase action = ActionManagerBase.GetAction(actionName);
50
51 if (!action)
52 {
53 Debug.LogError("Action " + actionName + " dosn't exist!");
54 return;
55 }
56
57 typename ai = action.GetInputType();
58 if (!ai)
59 {
60 m_ActionsInitialize = false;
61 return;
62 }
64
65 if (!action_array)
66 {
69 }
70
72 {
73 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
74 }
75 action_array.Insert(action);
76 }
TInputActionMap m_InputActionMap
Definition Building.c:11
bool m_ActionsInitialize
Definition Building.c:12
Definition Debug.c:14
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Definition Debug.c:148
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Definition Debug.c:378
Definition Debug.c:735
static bool IsActionLogEnable()
Definition Debug.c:779
Definition EntityAI.c:95

Перекрестные ссылки Debug::ActionLog(), LogManager::IsActionLogEnable(), Debug::LogError(), m_ActionsInitialize и m_InputActionMap.

◆ BuildingBase()

void BuildingBase ( )
15 {
16 m_ActionsInitialize = false;
17 }

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

◆ GetActions()

32 {
34 {
37 }
38
40 }
void InitializeActions()
Definition Building.c:19

Перекрестные ссылки InitializeActions(), m_ActionsInitialize и m_InputActionMap.

◆ InitializeActions()

void InitializeActions ( )
20 {
23 {
26 SetActions();
28 }
29 }
House m_BuildingTypeActionsMap
void SetActions()
Definition Building.c:42
map< typename, ref array< ActionBase_Basic > > TInputActionMap
Definition ActionManagerClient.c:1
string Type
Definition JsonDataContaminatedArea.c:11

Перекрестные ссылки m_BuildingTypeActionsMap, m_InputActionMap, SetActions() и Type.

◆ RemoveAction()

void RemoveAction ( typename actionName )
79 {
81 ActionBase action = player.GetActionManager().GetAction(actionName);
82 typename ai = action.GetInputType();
84
85 if (action_array)
86 {
87 action_array.RemoveItem(action);
88 }
89 }
PlayerBase GetPlayer()
Definition ModifierBase.c:47
Definition PlayerBaseClient.c:2
proto native CGame GetGame()

Перекрестные ссылки GetGame(), GetPlayer() и m_InputActionMap.

◆ SetActions()

void SetActions ( )
43 {
44 //AddAction();
45 }

Переменные

◆ m_ActionsInitialize

bool m_ActionsInitialize

◆ m_BuildingTypeActionsMap

House m_BuildingTypeActionsMap = new map<typename, ref TInputActionMap>

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

◆ m_InputActionMap

TInputActionMap m_InputActionMap

◆ typename

House typename