DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ AddAction()

void EntityAI::AddAction ( typename actionName )
inlineprivate

См. определение в файле AdvancedCommunication.c строка 87

88 {
89 ActionBase action = ActionManagerBase.GetAction(actionName);
90
91 if (!action)
92 {
93 Debug.LogError("Action " + actionName + " dosn't exist!");
94 return;
95 }
96
97 typename ai = action.GetInputType();
98 if (!ai)
99 {
100 m_ActionsInitialize = false;
101 return;
102 }
103
104 array<ActionBase_Basic> action_array = m_InputActionMap.Get( ai );
105
106 if (!action_array)
107 {
108 action_array = new array<ActionBase_Basic>;
109 m_InputActionMap.Insert(ai, action_array);
110 }
111
112 if ( LogManager.IsActionLogEnable() )
113 {
114 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
115 }
116 action_array.Insert(action);
117 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
GetInputType()
Определения ActionBase.c:215
TInputActionMap m_InputActionMap
Определения AdvancedCommunication.c:4
bool m_ActionsInitialize
Определения AdvancedCommunication.c:5

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