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

◆ AddAction()

void BoatScript::AddAction ( typename actionName )
inlineprotected

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

765 {
766 ActionBase action = ActionManagerBase.GetAction(actionName);
767
768 if (!action)
769 {
770 Debug.LogError("Action " + actionName + " dosn't exist!");
771 return;
772 }
773
774 typename ai = action.GetInputType();
775 if (!ai)
776 {
777 m_ActionsInitialized = false;
778 return;
779 }
780
781 array<ActionBase_Basic> actionArray = m_InputActionMap.Get(ai);
782
783 if (!actionArray)
784 {
785 actionArray = new array<ActionBase_Basic>;
786 m_InputActionMap.Insert(ai, actionArray);
787 }
788#ifdef ENABLE_LOGGING
789 if (LogManager.IsActionLogEnable())
790 {
791 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
792 }
793#endif
794
795 actionArray.Insert(action);
796 }
void ActionBase()
Определения ActionBase.c:82
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
string Debug()
Определения CachedEquipmentStorageBase.c:26
TInputActionMap m_InputActionMap
Определения BoatScript.c:54
bool m_ActionsInitialized
Определения BoatScript.c:55

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

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