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

◆ AddAction()

void InventoryItem::AddAction ( typename actionName )
inlineprivate

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

319 {
320 ActionBase action = ActionManagerBase.GetAction(actionName);
321
322 if (!action)
323 {
324 Debug.LogError("Action " + actionName + " dosn't exist!");
325 return;
326 }
327
328 typename ai = action.GetInputType();
329 if (!ai)
330 {
331 m_ActionsInitialize = false;
332 return;
333 }
334
335 array<ActionBase_Basic> action_array = m_InputActionMap.Get(ai);
336 if (!action_array)
337 {
338 action_array = new array<ActionBase_Basic>;
339 m_InputActionMap.Insert(ai, action_array);
340 }
341 if (LogManager.IsActionLogEnable())
342 {
343 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action");
344 }
345
346 if (action_array.Find(action) != -1)
347 {
348 Debug.Log("Action " + action.Type() + " already added to " + this + ", skipping!");
349 }
350 else
351 {
352 action_array.Insert(action);
353 }
354 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
GetInputType()
Определения ActionBase.c:215
bool m_ActionsInitialize
Определения ItemBase.c:20
TInputActionMap m_InputActionMap
Определения ItemBase.c:17

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