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

◆ AddAction()

void AddAction ( typename actionName )
protected

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

374 {
375 ActionBase action = ActionManagerBase.GetAction(actionName);
376
377 if (!action)
378 {
379 Debug.LogError("Action " + actionName + " doesn't exist!");
380 return;
381 }
382
383 typename ai = action.GetInputType();
384 if (!ai)
385 {
386 m_ActionsInitialized = false;
387 return;
388 }
389
390 array<ActionBase_Basic> actionArray = m_InputActionMap.Get(ai);
391
392 if (!actionArray)
393 {
394 actionArray = new array<ActionBase_Basic>;
395 m_InputActionMap.Insert(ai, actionArray);
396 }
397
399 {
400 Debug.ActionLog(action.ToString() + " -> " + ai, this.ToString() , "n/a", "Add action" );
401 }
402
403 actionArray.Insert(action);
404 }
void ActionBase()
Определения ActionBase.c:82
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
TInputActionMap m_InputActionMap
Определения AdvancedCommunication.c:137
bool m_ActionsInitialized
Определения MotorbikeScript.c:314
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
Определения 3_Game/DayZ/tools/Debug.c:318
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Определения 3_Game/DayZ/tools/Debug.c:188
Определения 3_Game/DayZ/tools/Debug.c:2
static bool IsActionLogEnable()
Определения 3_Game/DayZ/tools/Debug.c:749
Result for an object found in CGame.IsBoxCollidingGeometryProxy.

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