Data Structures | |
| class | QuickBarItem |
Functions | |
| void | QuickBarBase (PlayerBase player) |
| void | SetSize (int newSize) |
| int | GetNonEmptyCount () |
| EntityAI | GetEntity (int index) |
| int | GetSize () |
| int | FindEntityIndex (EntityAI entity) |
| bool | OnInputUserDataProcess (int userDataType, ParamsReadContext ctx) |
| void | UpdateShotcutVisibility (int index) |
| void | SetShotcutEnable (int index, bool value) |
| bool | CanAddAsShortcut (EntityAI entity) |
| void | SetEntityShortcut (EntityAI entity, int index, bool force=false) |
| void | OnSetEntityNoSync (EntityAI entity, int index, bool force=false) |
| void | OnSetEntityRPC (ParamsReadContext ctx) |
| Reaction on Rpc from server for set inicial state for quickbar. | |
| void | OnSetEntityRequest (ParamsReadContext ctx) |
| Reaction on SetEntityShortcut from client. | |
| protected void | _SetEntityShortcut (EntityAI entity, int index, bool force=false) |
| void | updateSlotsCount () |
| protected void | _RemoveEntity (int index) |
| protected void | _SetEntity (EntityAI entity, int index, bool force=false) |
| void | ~QuickBarBase () |
| protected void | CancelContinuousUse (int index) |
Variables | |
| const int | MAX_QUICKBAR_SLOTS_COUNT = 10 |
| class QuickBarItem | m_aQuickbarEnts [MAX_QUICKBAR_SLOTS_COUNT] |
| protected PlayerBase | _player |
| protected int | m_slotsCount |
| protected void _RemoveEntity | ( | int | index | ) |
References _player, CancelContinuousUse(), m_aQuickbarEnts, QuickBarItem::m_enabled, QuickBarItem::m_entity, and MAX_QUICKBAR_SLOTS_COUNT.
Referenced by _SetEntityShortcut().
References _player, CanAddAsShortcut(), CancelContinuousUse(), m_aQuickbarEnts, QuickBarItem::m_enabled, QuickBarItem::m_entity, and MAX_QUICKBAR_SLOTS_COUNT.
Referenced by _SetEntityShortcut().
References _RemoveEntity(), _SetEntity(), and FindEntityIndex().
Referenced by OnSetEntityNoSync(), OnSetEntityRequest(), OnSetEntityRPC(), and SetEntityShortcut().
References _player, and InventoryLocation::GetParent().
Referenced by _SetEntity(), SetShotcutEnable(), and UpdateShotcutVisibility().
| protected void CancelContinuousUse | ( | int | index | ) |
References _player, and HumanInputController::IsQuickBarSlot().
Referenced by _RemoveEntity(), _SetEntity(), SetShotcutEnable(), and UpdateShotcutVisibility().
References m_aQuickbarEnts, and MAX_QUICKBAR_SLOTS_COUNT.
Referenced by _SetEntityShortcut().
References m_aQuickbarEnts, QuickBarItem::m_entity, and m_slotsCount.
| int GetNonEmptyCount | ( | ) |
References m_aQuickbarEnts, and m_slotsCount.
| int GetSize | ( | ) |
References m_slotsCount.
| bool OnInputUserDataProcess | ( | int | userDataType, |
| ParamsReadContext | ctx | ||
| ) |
References INPUT_UDT_QUICKABARSHORTCUT, and OnSetEntityRequest().
References _SetEntityShortcut().
| void OnSetEntityRequest | ( | ParamsReadContext | ctx | ) |
Reaction on SetEntityShortcut from client.
References _SetEntityShortcut(), and Serializer::Read().
Referenced by OnInputUserDataProcess().
| void OnSetEntityRPC | ( | ParamsReadContext | ctx | ) |
Reaction on Rpc from server for set inicial state for quickbar.
References _SetEntityShortcut(), and Serializer::Read().
| void QuickBarBase | ( | PlayerBase | player | ) |
References _player, m_aQuickbarEnts, QuickBarItem::m_enabled, QuickBarItem::m_entity, m_slotsCount, and MAX_QUICKBAR_SLOTS_COUNT.
Referenced by ManBase::Init().
References _player, CanAddAsShortcut(), CancelContinuousUse(), m_aQuickbarEnts, and QuickBarItem::m_enabled.
| void SetSize | ( | int | newSize | ) |
References _player, m_aQuickbarEnts, QuickBarItem::m_enabled, QuickBarItem::m_entity, m_slotsCount, and MAX_QUICKBAR_SLOTS_COUNT.
| void UpdateShotcutVisibility | ( | int | index | ) |
References _player, CanAddAsShortcut(), CancelContinuousUse(), m_aQuickbarEnts, and QuickBarItem::m_enabled.
| void updateSlotsCount | ( | ) |
References _player, Math::Min(), and SetSize().
| void ~QuickBarBase | ( | ) |
| protected PlayerBase _player |
| class QuickBarItem m_aQuickbarEnts[MAX_QUICKBAR_SLOTS_COUNT] |
Referenced by _RemoveEntity(), _SetEntity(), FindEntityIndex(), GetEntity(), GetNonEmptyCount(), QuickBarBase(), SetShotcutEnable(), SetSize(), and UpdateShotcutVisibility().
| protected int m_slotsCount |
Referenced by GetEntity(), GetNonEmptyCount(), GetSize(), QuickBarBase(), and SetSize().
| const int MAX_QUICKBAR_SLOTS_COUNT = 10 |
Referenced by _RemoveEntity(), _SetEntity(), FindEntityIndex(), QuickBarBase(), and SetSize().