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

◆ InputBufferCheck()

void MissionBase::InputBufferCheck ( )
inlineprotected

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

1669 {
1670 PlayerBase player;
1672 ActionBase action;
1673
1675 {
1676 if (m_ConnectionMenu && (!GetGame().GetPlayer().IsAlive() || GetGame().GetPlayer().IsUnconscious()))
1677 {
1678 m_ConnectionMenu.Close();
1679
1680 player = PlayerBase.Cast(GetGame().GetPlayer());
1681 if (!player)
1682 return;
1683
1684 amb = player.GetActionManager();
1685 if (!amb)
1686 return;
1687
1688 action = amb.GetRunningAction();
1689 if (action && amb.GetActionState(action) != UA_NONE)
1690 {
1691 amb.RequestInterruptAction();
1692 }
1693 return;
1694 }
1695
1696 if (!m_ConnectionMenu)
1697 {
1698 if (GetGame().GetUIManager().GetMenu() && GetGame().GetUIManager().GetMenu().GetID() == MENU_INVENTORY)
1699 {
1701 }
1702
1705 }
1706 }
1707 else
1708 {
1709 if (m_ConnectionMenu)
1710 {
1712 m_ConnectionMenu.Close();
1713
1714 player = PlayerBase.Cast(GetGame().GetPlayer());
1715 if (!player)
1716 return;
1717
1718 amb = player.GetActionManager();
1719 if (!amb)
1720 return;
1721
1722 action = amb.GetRunningAction();
1723 if (action && amb.GetActionState(action) != UA_NONE)
1724 {
1725 amb.RequestInterruptAction();
1726 }
1727 }
1728 }
1729 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:536
PlayerBase GetPlayer()
Определения ModifierBase.c:51
proto native UIManager GetUIManager()
override ScriptCallQueue GetCallQueue(int call_category)
Определения DayZGame.c:1187
proto native Mission GetMission()
void HideInventory()
Определения gameplay.c:809
UIManager GetUIManager()
Определения missionGameplay.c:179
void InputBufferCheck()
Определения missionGameplay.c:1668
UIScriptedMenu m_ConnectionMenu
Определения missionGameplay.c:54
bool m_InputBufferFull
Определения missionGameplay.c:53
proto void Remove(func fn)
remove specific call from queue
proto native UIScriptedMenu EnterScriptedMenu(int id, UIMenuPanel parent)
Create & open menu with specific id (see MenuID) and set its parent.
bool CloseAll()
Close all opened menus.
Определения UIManager.c:78
proto native CGame GetGame()
const int MENU_CONNECTION_DIALOGUE
Определения constants.c:215
const int MENU_INVENTORY
Определения constants.c:180
const int CALL_CATEGORY_GAMEPLAY
Определения tools.c:10
const int UA_NONE
Определения constants.c:460

Перекрестные ссылки ActionManagerBase(), CALL_CATEGORY_GAMEPLAY, UIManager::CloseAll(), UIManager::EnterScriptedMenu(), CGame::GetCallQueue(), GetGame(), GetID(), CGame::GetMission(), GetPlayer(), CGame::GetUIManager(), GetUIManager(), Mission::HideInventory(), InputBufferCheck(), m_ConnectionMenu, m_InputBufferFull, MENU_CONNECTION_DIALOGUE, MENU_INVENTORY, ScriptCallQueue::Remove() и UA_NONE.

Используется в InputBufferCheck() и OnInputBufferEvent().