Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
EnNetwork.c File Reference

Go to the source code of this file.

Classes

class  ScriptCtx
class  RplProp
class  OnRpl
class  ScriptBitReader
class  SSnapSerializerBase
class  SSnapSerializer
 Snapshot serializer utility. More...

Typedefs

typedef int RplIdentity
typedef int RplId

Functions

ScriptCtx Managed Obsolete ()] enum RplGroup
void RplRpc (RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
class OnRpl Write (void src, int sizeInBits)
 Writes sizeInBits bits of data to internal storage.
proto void WriteRplId (RplId val)
proto void WriteEntityId (EntityID val)
proto void WriteInt (int val)
proto void WriteIntRange (int val, int min, int max)
proto void WriteHalf (float val)
proto void WriteFloat01 (float val)
proto void WriteRadian (float val)
proto void WriteQuaternion (float val[4])
proto void WriteResourceName (ResourceName val)
proto void WriteString (string val)
 Writes a string to internal storage.
proto native int Tell ()
 Returns the current position in internal storage in bits.
void WriteBool (bool val)
void WriteFloat (float val)
void WriteVector (vector val)
ScriptBitReader Managed Serialize (inout void data, int sizeInBits)
 Serializes the data pointer. The size is the amount of bits serialized.
proto bool Read (out void dst, int sizeInBits)
 Reads sizeInBits bits of data from internal storage.
proto bool ReadRplId (out RplId val)
 Decompresses and returns a RplId from internal storage.
proto bool ReadEntityId (out EntityID val)
 Decompresses and returns a EntityID from internal storage.
proto bool ReadInt (out int val)
 Decompresses and returns an integer from internal storage.
proto bool ReadIntRange (out int val, int min, int max)
 Decompresses and returns an integer from internal storage.
proto bool ReadHalf (out float val)
 Decompresses and returns a float from internal storage.
proto bool ReadFloat01 (out float val)
 Decompresses and returns a float from internal storage.
proto bool ReadRadian (out float val)
 Decompresses and returns a float from internal storage.
proto bool ReadQuaternion (out float val[4])
 Decompresses and returns a quaternion from internal storage.
proto bool ReadResourceName (out ResourceName val)
 Reads and returns a ResourceName from internal storage.
proto bool ReadString (out string val)
 Reads a string from internal storage.
bool ReadBool (out bool val)
bool ReadFloat (out float val)
bool ReadVector (out vector val)
proto bool SerializeRplId (inout RplId val)
proto bool SerializeEntityId (inout EntityID val)
proto bool SerializeInt (inout int val)
proto bool SerializeIntRange (inout int val, int min, int max)
proto bool SerializeHalf (inout float val)
proto bool SerializeFloat01 (inout float val)
proto bool SerializeRadian (inout float val)
proto bool SerializeQuaternion (inout float val[4])
proto bool SerializeResourceName (inout ResourceName val)
proto bool SerializeString (inout string val)
bool SerializeBool (inout bool val)
bool SerializeFloat (inout float val)
bool SerializeVector (inout vector val)
SSnapSerializerBase Managed SSnapshot (int sizeInBytes)
 Binary data container used in conjuction with a serializer.
proto void SerializeBytes (inout void data, int sizeInBytes)
 Serializes the data pointer. The size is the amount of bytes serialized.
bool EncodeBool (ScriptBitSerializer packet)
bool DecodeBool (ScriptBitSerializer packet)
int EncodeInt (ScriptBitSerializer packet)
int DecodeInt (ScriptBitSerializer packet)
float EncodeFloat (ScriptBitSerializer packet)
float DecodeFloat (ScriptBitSerializer packet)
vector EncodeVector (ScriptBitSerializer packet)
vector DecodeVector (ScriptBitSerializer packet)
proto void EncodeString (ScriptBitSerializer packet)
proto void DecodeString (ScriptBitSerializer packet)
proto native bool Serialize (ScriptBitSerializer serializer, int sizeInBytes)
proto bool Compare (void data, int sizeInBytes)
bool CompareBool (bool val)
bool CompareInt (int val)
bool CompareFloat (float val)
bool CompareVector (vector val)
proto bool CompareString (string val)
proto native bool CompareSnapshots (SSnapSerializerBase snapshot, int sizeInBytes)
proto bool CompareStringSnapshots (SSnapSerializerBase snapshot)

Variables

RplProp m_Channel
RplRcver m_Rcver
RplCondition m_Condition
string m_CustomCondName

Function Documentation

◆ Compare()

proto bool SSnapshot::Compare ( void data,
int sizeInBytes )

Compares the insides of the buffer with provided pointer (bitwise). Size is the amount of read bytes from the data.

◆ CompareBool()

bool SSnapshot::CompareBool ( bool val)

Definition at line 86 of file EnNetwork.c.

◆ CompareFloat()

bool SSnapshot::CompareFloat ( float val)

Definition at line 88 of file EnNetwork.c.

◆ CompareInt()

bool SSnapshot::CompareInt ( int val)

Definition at line 87 of file EnNetwork.c.

◆ CompareSnapshots()

proto native bool SSnapshot::CompareSnapshots ( SSnapSerializerBase snapshot,
int sizeInBytes )

Compares the contents of two SnapSerialiers. The size is amount of bytes used.

◆ CompareString()

proto bool SSnapshot::CompareString ( string val)

◆ CompareStringSnapshots()

proto bool SSnapshot::CompareStringSnapshots ( SSnapSerializerBase snapshot)

◆ CompareVector()

bool SSnapshot::CompareVector ( vector val)

Definition at line 89 of file EnNetwork.c.

◆ DecodeBool()

bool SSnapshot::DecodeBool ( ScriptBitSerializer packet)

Definition at line 16 of file EnNetwork.c.

◆ DecodeFloat()

float SSnapshot::DecodeFloat ( ScriptBitSerializer packet)

Definition at line 46 of file EnNetwork.c.

◆ DecodeInt()

int SSnapshot::DecodeInt ( ScriptBitSerializer packet)

Definition at line 31 of file EnNetwork.c.

◆ DecodeString()

proto void SSnapshot::DecodeString ( ScriptBitSerializer packet)

◆ DecodeVector()

vector SSnapshot::DecodeVector ( ScriptBitSerializer packet)

Definition at line 61 of file EnNetwork.c.

◆ EncodeBool()

bool SSnapshot::EncodeBool ( ScriptBitSerializer packet)

Definition at line 9 of file EnNetwork.c.

◆ EncodeFloat()

float SSnapshot::EncodeFloat ( ScriptBitSerializer packet)

Definition at line 39 of file EnNetwork.c.

◆ EncodeInt()

int SSnapshot::EncodeInt ( ScriptBitSerializer packet)

Definition at line 24 of file EnNetwork.c.

◆ EncodeString()

proto void SSnapshot::EncodeString ( ScriptBitSerializer packet)

◆ EncodeVector()

vector SSnapshot::EncodeVector ( ScriptBitSerializer packet)

Definition at line 54 of file EnNetwork.c.

◆ Read()

proto bool Serialize::Read ( out void dst,
int sizeInBits )

Reads sizeInBits bits of data from internal storage.

◆ ReadBool()

bool Serialize::ReadBool ( out bool val)

Definition at line 29 of file EnNetwork.c.

◆ ReadEntityId()

proto bool Serialize::ReadEntityId ( out EntityID val)

Decompresses and returns a EntityID from internal storage.

◆ ReadFloat()

bool Serialize::ReadFloat ( out float val)

Definition at line 30 of file EnNetwork.c.

◆ ReadFloat01()

proto bool Serialize::ReadFloat01 ( out float val)

Decompresses and returns a float from internal storage.

◆ ReadHalf()

proto bool Serialize::ReadHalf ( out float val)

Decompresses and returns a float from internal storage.

◆ ReadInt()

proto bool Serialize::ReadInt ( out int val)

Decompresses and returns an integer from internal storage.

◆ ReadIntRange()

proto bool Serialize::ReadIntRange ( out int val,
int min,
int max )

Decompresses and returns an integer from internal storage.

◆ ReadQuaternion()

proto bool Serialize::ReadQuaternion ( out float val[4])

Decompresses and returns a quaternion from internal storage.

◆ ReadRadian()

proto bool Serialize::ReadRadian ( out float val)

Decompresses and returns a float from internal storage.

◆ ReadResourceName()

proto bool Serialize::ReadResourceName ( out ResourceName val)

Reads and returns a ResourceName from internal storage.

◆ ReadRplId()

proto bool Serialize::ReadRplId ( out RplId val)

Decompresses and returns a RplId from internal storage.

◆ ReadString()

proto bool Serialize::ReadString ( out string val)

Reads a string from internal storage.

◆ ReadVector()

bool Serialize::ReadVector ( out vector val)

Definition at line 31 of file EnNetwork.c.

◆ Serialize()

proto native bool SSnapshot::Serialize ( ScriptBitSerializer serializer,
int sizeInBytes )

Serialization of the BitSerializer type. The size is the amount of bytes written/read from the bit serializer.

◆ SerializeBytes()

proto void SSnapshot::SerializeBytes ( inout void data,
int sizeInBytes )

Serializes the data pointer. The size is the amount of bytes serialized.