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

◆ AddAction()

void Car::AddAction ( typename actionName )
inlineprotected

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

2740 {
2741 ActionBase action = ActionManagerBase.GetAction(actionName);
2742
2743 if (!action)
2744 {
2745 Debug.LogError("Action " + actionName + " dosn't exist!");
2746 return;
2747 }
2748
2749 typename ai = action.GetInputType();
2750 if (!ai)
2751 {
2752 m_ActionsInitialize = false;
2753 return;
2754 }
2755 array<ActionBase_Basic> action_array = m_InputActionMap.Get(ai);
2756
2757 if (!action_array)
2758 {
2759 action_array = new array<ActionBase_Basic>;
2760 m_InputActionMap.Insert(ai, action_array);
2761 }
2762
2763 if ( LogManager.IsActionLogEnable() )
2764 {
2765 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
2766 }
2767 action_array.Insert(action);
2768 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
GetInputType()
Определения ActionBase.c:215
bool m_ActionsInitialize
Определения CarScript.c:169
TInputActionMap m_InputActionMap
Определения CarScript.c:168

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