PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
QuickBarBase.c File Reference

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
 

Function Documentation

◆ _RemoveEntity()

◆ _SetEntity()

protected void _SetEntity ( EntityAI  entity,
int  index,
bool  force = false 
)

◆ _SetEntityShortcut()

protected void _SetEntityShortcut ( EntityAI  entity,
int  index,
bool  force = false 
)

◆ CanAddAsShortcut()

bool CanAddAsShortcut ( EntityAI  entity)

◆ CancelContinuousUse()

protected void CancelContinuousUse ( int  index)

◆ FindEntityIndex()

int FindEntityIndex ( EntityAI  entity)

◆ GetEntity()

EntityAI GetEntity ( int  index)

◆ GetNonEmptyCount()

int GetNonEmptyCount ( )

References m_aQuickbarEnts, and m_slotsCount.

◆ GetSize()

int GetSize ( )

References m_slotsCount.

◆ OnInputUserDataProcess()

bool OnInputUserDataProcess ( int  userDataType,
ParamsReadContext  ctx 
)

◆ OnSetEntityNoSync()

void OnSetEntityNoSync ( EntityAI  entity,
int  index,
bool  force = false 
)

References _SetEntityShortcut().

◆ OnSetEntityRequest()

void OnSetEntityRequest ( ParamsReadContext  ctx)

Reaction on SetEntityShortcut from client.

References _SetEntityShortcut(), and Serializer::Read().

Referenced by OnInputUserDataProcess().

◆ OnSetEntityRPC()

void OnSetEntityRPC ( ParamsReadContext  ctx)

Reaction on Rpc from server for set inicial state for quickbar.

References _SetEntityShortcut(), and Serializer::Read().

◆ QuickBarBase()

◆ SetEntityShortcut()

◆ SetShotcutEnable()

void SetShotcutEnable ( int  index,
bool  value 
)

◆ SetSize()

◆ UpdateShotcutVisibility()

void UpdateShotcutVisibility ( int  index)

◆ updateSlotsCount()

void updateSlotsCount ( )

References _player, Math::Min(), and SetSize().

◆ ~QuickBarBase()

void ~QuickBarBase ( )

Variable Documentation

◆ _player

◆ m_aQuickbarEnts

◆ m_slotsCount

protected int m_slotsCount

◆ MAX_QUICKBAR_SLOTS_COUNT

const int MAX_QUICKBAR_SLOTS_COUNT = 10