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

◆ InputBufferCheck()

void MissionBase::InputBufferCheck ( )
inlineprotected

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

1684 {
1685 PlayerBase player;
1687 ActionBase action;
1688
1690 {
1691 if (m_ConnectionMenu && (!GetGame().GetPlayer().IsAlive() || GetGame().GetPlayer().IsUnconscious()))
1692 {
1693 m_ConnectionMenu.Close();
1694
1695 player = PlayerBase.Cast(GetGame().GetPlayer());
1696 if (!player)
1697 return;
1698
1699 amb = player.GetActionManager();
1700 if (!amb)
1701 return;
1702
1703 action = amb.GetRunningAction();
1704 if (action && amb.GetActionState(action) != UA_NONE)
1705 {
1706 amb.RequestInterruptAction();
1707 }
1708 return;
1709 }
1710
1711 if (!m_ConnectionMenu)
1712 {
1713 if (GetGame().GetUIManager().GetMenu() && GetGame().GetUIManager().GetMenu().GetID() == MENU_INVENTORY)
1714 {
1716 }
1717
1720 }
1721 }
1722 else
1723 {
1724 if (m_ConnectionMenu)
1725 {
1727 m_ConnectionMenu.Close();
1728
1729 player = PlayerBase.Cast(GetGame().GetPlayer());
1730 if (!player)
1731 return;
1732
1733 amb = player.GetActionManager();
1734 if (!amb)
1735 return;
1736
1737 action = amb.GetRunningAction();
1738 if (action && amb.GetActionState(action) != UA_NONE)
1739 {
1740 amb.RequestInterruptAction();
1741 }
1742 }
1743 }
1744 }
void ActionManagerBase(PlayerBase player)
Определения ActionManagerBase.c:63
int GetID()
Get the ID registered in SEffectManager.
Определения Effect.c:561
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:1683
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
Определения 3_Game/constants.c:215
const int MENU_INVENTORY
Определения 3_Game/constants.c:180
const int CALL_CATEGORY_GAMEPLAY
Определения 3_Game/tools/tools.c:10
const int UA_NONE
Определения 3_Game/constants.c:462

Перекрестные ссылки 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().