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

◆ AddAction()

void InventoryItem::AddAction ( typename actionName )
inlineprivate

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

329 {
330 ActionBase action = ActionManagerBase.GetAction(actionName);
331
332 if (!action)
333 {
334 Debug.LogError("Action " + actionName + " dosn't exist!");
335 return;
336 }
337
338 typename ai = action.GetInputType();
339 if (!ai)
340 {
341 m_ActionsInitialize = false;
342 return;
343 }
344
345 array<ActionBase_Basic> action_array = m_InputActionMap.Get(ai);
346 if (!action_array)
347 {
348 action_array = new array<ActionBase_Basic>;
349 m_InputActionMap.Insert(ai, action_array);
350 }
351 if (LogManager.IsActionLogEnable())
352 {
353 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action");
354 }
355
356 if (action_array.Find(action) != -1)
357 {
358 Debug.Log("Action " + action.Type() + " already added to " + this + ", skipping!");
359 }
360 else
361 {
362 action_array.Insert(action);
363 }
364 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
string Debug()
Определения CachedEquipmentStorageBase.c:29
GetInputType()
Определения ActionBase.c:221
bool m_ActionsInitialize
Определения ItemBase.c:26
TInputActionMap m_InputActionMap
Определения ItemBase.c:23

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