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

Enumerations

enum  DSLevels { WARNING = 1 , CRITICAL = 2 , BLINKING = 3 , EXTRA = 4 }
 

Functions

void VirtualHud (PlayerBase player)
 
void OnScheduledTick ()
 
void RegisterElement (DisplayElementBase element)
 
DisplayElementBase GetElement (eDisplayElements element_id)
 
void SerializeElements (array< int > mask_array)
 
void DeserializeElements (array< int > mask_array)
 
int BitToDec (int mask, int index, int compareMask)
 
void PrintElements ()
 
void SendRPC ()
 
bool AreArraysSame (notnull array< int > array_a, notnull array< int > array_b)
 
void ImmediateUpdate ()
 
void UpdateStatus ()
 
void OnRPC (ParamsReadContext ctx)
 
void Debug ()
 

Variables

enum DSLevels NORMAL = 0
 
enum DSLevels WARNING_MINUS = 1
 
enum DSLevels CRITICAL_MINUS = 2
 
enum DSLevels BLINKING_MINUS = 3
 
enum DSLevels WARNING_PLUS = 4
 
enum DSLevels CRITICAL_PLUS = 5
 
enum DSLevels BLINKING_PLUS = 6
 
enum DSLevels NUMBER_OF_MASKS = 2
 
ref array< intm_LastSentArray
 
const int NUMBER_OF_ELEMENTS = eDisplayElements.COUNT
 
ref DisplayElementBase m_Elements [NUMBER_OF_ELEMENTS]
 
Mission mission
 
Hud m_Hud
 
int m_LastTick
 
PlayerBase m_Player
 
string m_System = "VirtualHud"
 
ref array< ref ParamrpcParams
 

Enumeration Type Documentation

◆ DSLevels

enum DSLevels
Enumerator
WARNING 
CRITICAL 
BLINKING 
EXTRA 

Function Documentation

◆ AreArraysSame()

bool AreArraysSame ( notnull array< int array_a,
notnull array< int array_b 
)

Referenced by SendRPC().

◆ BitToDec()

int BitToDec ( int  mask,
int  index,
int  compareMask 
)

Referenced by DeserializeElements().

◆ Debug()

◆ DeserializeElements()

void DeserializeElements ( array< int mask_array)

References BIT_INT_SIZE, BitToDec(), GetElement(), and NUMBER_OF_ELEMENTS.

Referenced by OnRPC().

◆ GetElement()

◆ ImmediateUpdate()

void ImmediateUpdate ( )

◆ OnRPC()

◆ OnScheduledTick()

◆ PrintElements()

void PrintElements ( )

◆ RegisterElement()

void RegisterElement ( DisplayElementBase  element)

References m_Elements.

Referenced by VirtualHud().

◆ SendRPC()

◆ SerializeElements()

void SerializeElements ( array< int mask_array)

References BIT_INT_SIZE, GetElement(), and NUMBER_OF_ELEMENTS.

Referenced by SendRPC().

◆ UpdateStatus()

void UpdateStatus ( )

◆ VirtualHud()

Variable Documentation

◆ BLINKING_MINUS

enum DSLevels BLINKING_MINUS = 3

◆ BLINKING_PLUS

enum DSLevels BLINKING_PLUS = 6

◆ CRITICAL_MINUS

enum DSLevels CRITICAL_MINUS = 2

◆ CRITICAL_PLUS

enum DSLevels CRITICAL_PLUS = 5

◆ m_Elements

◆ m_Hud

◆ m_LastSentArray

ref array<int> m_LastSentArray

Referenced by SendRPC().

◆ m_LastTick

int m_LastTick

◆ m_Player

PlayerBase m_Player

◆ m_System

string m_System = "VirtualHud"

◆ mission

◆ NORMAL

@ NORMAL = 0

◆ NUMBER_OF_ELEMENTS

◆ NUMBER_OF_MASKS

enum DSLevels NUMBER_OF_MASKS = 2

◆ rpcParams

ref array<ref Param> rpcParams

◆ WARNING_MINUS

enum DSLevels WARNING_MINUS = 1

◆ WARNING_PLUS

enum DSLevels WARNING_PLUS = 4