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

◆ AddAction()

void BoatScript::AddAction ( typename actionName )
inlineprotected

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

755 {
756 ActionBase action = ActionManagerBase.GetAction(actionName);
757
758 if (!action)
759 {
760 Debug.LogError("Action " + actionName + " dosn't exist!");
761 return;
762 }
763
764 typename ai = action.GetInputType();
765 if (!ai)
766 {
767 m_ActionsInitialized = false;
768 return;
769 }
770
771 array<ActionBase_Basic> actionArray = m_InputActionMap.Get(ai);
772
773 if (!actionArray)
774 {
775 actionArray = new array<ActionBase_Basic>;
776 m_InputActionMap.Insert(ai, actionArray);
777 }
778
779 if (LogManager.IsActionLogEnable())
780 {
781 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
782 }
783
784 actionArray.Insert(action);
785 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
void Debug()
Определения UniversalTemperatureSource.c:349
GetInputType()
Определения ActionBase.c:215
TInputActionMap m_InputActionMap
Определения BoatScript.c:54
bool m_ActionsInitialized
Определения BoatScript.c:55

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

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