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

◆ FindContextualUserActions()

void ActionManagerClient::FindContextualUserActions ( int pCurrentCommandID)
inlineprotected

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

529 {
530 // TODO: NEEDS OPTIMIZATION (focus on UpdatePossibleActions > CraftingManager::OnUpdate)
531
532 m_ActionsAvaibale = false;
533 if (!m_ActionPossible || HasHandInventoryReservation() || GetGame().IsInventoryOpen())
534 {
536 return;
537 }
538
539 if (!GetRunningAction())
540 {
541 ActionBase action;
542 ActionTarget target;
543 ItemBase item;
544
545 // Gathering current inputs
546 m_ActionsAvaibale = true;
547
548 item = FindActionItem();
549 target = FindActionTarget();
550
551 int actionConditionMask = ActionBase.ComputeConditionMask(m_Player,target,item);
552 for (int i = 0; i < m_OrederedAllActionInput.Count();i++)
553 {
554 ActionInput ain = m_OrederedAllActionInput[i];
555 ain.UpdatePossibleActions(m_Player,target,item, actionConditionMask);
556 }
557
559 SetActionContext(target,item);
560 }
561 }
void SetActionContext(ActionTarget target, ItemBase item)
Определения ActionManagerBase.c:255
bool m_ActionsAvaibale
Определения ActionManagerBase.c:55
class ActionTargets ActionTarget
class GP5GasMask extends MaskBase ItemBase
DayZPlayer m_Player
Определения Hand_Events.c:42
void UpdatePossibleActions(PlayerBase player, ActionTarget target, ItemBase item, int action_condition_mask)
Определения ActionInput.c:178
override ActionTarget FindActionTarget()
Определения ActionManagerClient.c:476
ref array< ActionInput > m_OrederedAllActionInput
Определения ActionManagerClient.c:14
bool HasHandInventoryReservation()
Определения ActionManagerClient.c:520
void ResetInputsActions()
Определения ActionManagerClient.c:714
void UpdateActionCategoryPriority()
Определения ActionManagerClient.c:808
bool m_ActionPossible
Определения ActionManagerClient.c:9
ItemBase FindActionItem()
Определения ActionManagerClient.c:510
proto native CGame GetGame()
proto native int GetRunningAction()
returns -1 when no action is running or RELOAD,MECHANISM, ....
Определения ActionManagerBase.c:91

Перекрестные ссылки ActionTarget, ActionBase::ComputeConditionMask(), FindActionItem(), FindActionTarget(), GetGame(), GetRunningAction(), HasHandInventoryReservation(), m_ActionPossible, m_ActionsAvaibale, m_OrederedAllActionInput, m_Player, ResetInputsActions(), SetActionContext(), UpdateActionCategoryPriority() и ActionInput::UpdatePossibleActions().

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