Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
Serializer Class Reference
Inheritance diagram for Serializer:

Protected Member Functions

void Serializer ()
void ~Serializer ()

Detailed Description

Serialization general interface.

Serializer API works with:

Note
Serializer provides deep serialization (it serialize class memebers and their members etc). To avoid serialization of certain class variable, use NonSerialized attribute.

Usage:

class MyData
{
int m_id;
string m_dbg; // I don't want to serialize this variable
}
{
int statArray[4] = {6,9,2,3};
array<int> dynArray = {8,5,6,4};
MyData data = new MyData();
data.m_id = 965;
data.m_values = map<string, float>;
data.m_values.Insert("value1", 5.98);
data.m_values.Insert("value2", 4.36);
s.Write(10);
s.Write("Hello");
s.Write(statArray);
s.Write(dynArray);
s.Write(data);
}
{
int statArray[4];
array<int> dynArray;
MyData data;
int someInt;
string someString;
s.Read(someInt);
s.Read(someString);
s.Read(statArray);
s.Read(dynArray);
s.Read(data);
}
bool Deserialize(notnull IEntity owner, notnull GenericComponent component, notnull LoadContext context)
SCR_ChimeraCharacterClass ChimeraCharacterClass NonSerialized()] float m_fFaceAlphaTest=0
Get all prefabs that have the spawner data
void Serializer()
Definition Serializer.c:63
Definition Types.c:486
ScriptBitReader Managed Serialize(inout void data, int sizeInBits)
Serializes the data pointer. The size is the amount of bits serialized.

Definition at line 58 of file Serializer.c.

Constructor & Destructor Documentation

◆ Serializer()

void Serializer::Serializer ( )
inlineprotected

Definition at line 63 of file Serializer.c.

◆ ~Serializer()

void Serializer::~Serializer ( )
inlineprotected

Definition at line 64 of file Serializer.c.


The documentation for this class was generated from the following file: