Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_PersistenceSerializationContext.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
class
SCR_PersistenceJsonSaveContext :
JsonSaveContext
3
{
4
void
SCR_PersistenceJsonSaveContext(
bool
skipEmptyObjects =
true
)
5
{
6
ConfigureTypeDiscriminator();
7
EnableTypeDiscriminator(
true
);
8
SetMaxDecimalPlaces(4);
9
}
10
}
11
12
//------------------------------------------------------------------------------------------------
13
class
SCR_PersistencePrettyJsonSaveContext
:
PrettyJsonSaveContext
14
{
15
void
SCR_PersistencePrettyJsonSaveContext
(
bool
skipEmptyObjects =
true
)
16
{
17
ConfigureTypeDiscriminator();
18
EnableTypeDiscriminator(
true
);
19
SetMaxDecimalPlaces(4);
20
}
21
}
22
23
//------------------------------------------------------------------------------------------------
24
class
SCR_PersistenceJsonLoadContext :
JsonLoadContext
25
{
26
void
SCR_PersistenceJsonLoadContext(
bool
skipEmptyObjects =
true
)
27
{
28
ConfigureTypeDiscriminator();
29
EnableTypeDiscriminator(
true
);
30
}
31
}
32
33
//------------------------------------------------------------------------------------------------
34
class
SCR_PersistenceBinarySaveContext
:
BinarySaveContext
35
{
36
void
SCR_PersistenceBinarySaveContext
(
bool
skipEmptyObjects =
true
)
37
{
38
ConfigureTypeDiscriminator();
39
EnableTypeDiscriminator(
true
);
40
ConfigureObjectSeeking(
true
);
41
ConfigureSkippableObjects(
true
);
42
}
43
}
44
45
//------------------------------------------------------------------------------------------------
46
class
SCR_PersistenceBinaryLoadContext :
BinaryLoadContext
47
{
48
void
SCR_PersistenceBinaryLoadContext(
bool
skipEmptyObjects =
true
)
49
{
50
ConfigureTypeDiscriminator();
51
EnableTypeDiscriminator(
true
);
52
ConfigureObjectSeeking(
true
);
53
ConfigureSkippableObjects(
true
);
54
}
55
}
SCR_PersistencePrettyJsonSaveContext
SCR_PersistenceJsonSaveContext JsonSaveContext SCR_PersistencePrettyJsonSaveContext(bool skipEmptyObjects=true)
Definition
SCR_PersistenceSerializationContext.c:15
SCR_PersistenceBinarySaveContext
SCR_PersistenceJsonLoadContext JsonLoadContext SCR_PersistenceBinarySaveContext(bool skipEmptyObjects=true)
Definition
SCR_PersistenceSerializationContext.c:36
BinaryLoadContext
Container context loading binary format.
Definition
BinaryLoadContext.c:14
BinarySaveContext
Container context saving in binary format.
Definition
BinarySaveContext.c:14
JsonLoadContext
Container context loading JSON format.
Definition
JsonLoadContext.c:14
JsonSaveContext
Container context saving in JSON format.
Definition
JsonSaveContext.c:14
PrettyJsonSaveContext
Container context saving in prettified JSON format.
Definition
PrettyJsonSaveContext.c:14
scripts
Game
Plugins
Persistence
System
SCR_PersistenceSerializationContext.c
Generated by
1.17.0