81 if ( !
GetGame().IsDedicatedServer() )
90 int id = element.GetType();
116 mask_array.Insert(mask);
120 mask = mask | (
GetElement(i).GetValue() << offset);
121 offset = offset +
GetElement(i).GetNumberOfBits();
124 mask_array.Insert(mask);
129 int maskArrayIndex = 0;
143 mask = mask_array.Get(maskArrayIndex);
145 offset = offset +
GetElement(i).GetNumberOfBits();
153 int value = mask & (compareMask << index);
154 value = value >> index;
174 rpc.
Write(mask_array);
182 if ( array_a.Count() != array_b.Count() )
return false;
183 for (
int i = 0; i <array_a.Count(); i++)
185 if ( array_a.Get(i) != array_b.Get(i) )
198 if ( element && element.IsClientOnly() && element.IsValueChanged() )
209 if ( element && !element.IsClientOnly() && element.IsValueChanged() )
220 ctx.
Read(mask_array);
VIRTUAL_HUD_UPDATE_INTERVAL
how often virtual hud checks if there is a difference since last sync
void DeserializeElements(array< int > mask_array)
void RegisterElement(DisplayElementBase element)
ref DisplayElementBase m_Elements[NUMBER_OF_ELEMENTS]
const int NUMBER_OF_ELEMENTS
enum DSLevels WARNING_MINUS
enum DSLevels NUMBER_OF_MASKS
enum DSLevels CRITICAL_PLUS
enum DSLevels BLINKING_PLUS
void SerializeElements(array< int > mask_array)
ref array< ref Param > rpcParams
enum DSLevels BLINKING_MINUS
DisplayElementBase GetElement(eDisplayElements element_id)
enum DSLevels WARNING_PLUS
ref array< int > m_LastSentArray
bool AreArraysSame(notnull array< int > array_a, notnull array< int > array_b)
void VirtualHud(PlayerBase player)
enum DSLevels CRITICAL_MINUS
int BitToDec(int mask, int index, int compareMask)
class LogTemplates Log(string message, LogTemplateID template_id=0)
Creates debug log (optional) from LogTemplate which are registred.
string m_System
the manager instance
PluginPlayerStatus m_ModulePlayerStatus
max 32 synced modifiers supported, 0 == no sync
override void OnRPC(ParamsReadContext ctx)
PluginBase GetPlugin(typename plugin_type)
proto int GetTime()
returns mission time in milliseconds
proto native Mission GetMission()
override void UpdateHUD()
proto native void Send(Object target, int rpc_type, bool guaranteed, PlayerIdentity recipient=NULL)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto bool Write(void value_out)
proto bool Read(void value_in)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Serializer ParamsReadContext
proto native CGame GetGame()
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.