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

◆ AddAction()

void BoatScript::AddAction ( typename actionName )
inlineprotected

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

699 {
700 ActionBase action = ActionManagerBase.GetAction(actionName);
701
702 if (!action)
703 {
704 Debug.LogError("Action " + actionName + " dosn't exist!");
705 return;
706 }
707
708 typename ai = action.GetInputType();
709 if (!ai)
710 {
711 m_ActionsInitialized = false;
712 return;
713 }
714
715 array<ActionBase_Basic> actionArray = m_InputActionMap.Get(ai);
716
717 if (!actionArray)
718 {
719 actionArray = new array<ActionBase_Basic>;
720 m_InputActionMap.Insert(ai, actionArray);
721 }
722
723 if (LogManager.IsActionLogEnable())
724 {
725 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
726 }
727
728 actionArray.Insert(action);
729 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
GetInputType()
Определения ActionBase.c:215
TInputActionMap m_InputActionMap
Определения BoatScript.c:43
bool m_ActionsInitialized
Определения BoatScript.c:44

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

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