Dayz Explorer
1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
jsonapistruct.c
Go to the documentation of this file.
1
4
// -------------------------------------------------------------------------
5
// object which allow to parse upon generic JSON structure and format it back
6
//
7
//
8
class
JsonApiStruct
:
Managed
9
{
10
11
void
JsonApiStruct
()
12
{
13
}
14
15
void
~
JsonApiStruct
()
16
{
17
}
18
22
void
OnExpand()
23
{
24
}
25
29
void
OnPack()
30
{
31
Print
(
"OnPack() "
);
32
}
33
37
void
OnBufferReady()
38
{
39
}
40
44
void
OnSuccess(
int
errorCode )
45
{
46
// errorCode is EJsonApiError
47
}
48
52
void
OnError(
int
errorCode )
53
{
54
// errorCode is EJsonApiError
55
}
56
60
void
OnObject(
string
name
)
61
{
62
Print
(
"OnObject: "
+
name
);
63
}
64
68
void
OnInteger(
string
name
,
int
value )
69
{
70
Print
(
"OnInteger: "
+ value );
71
}
72
76
void
OnFloat(
string
name
,
float
value )
77
{
78
Print
(
"OnFloat: "
+ value );
79
}
80
84
void
OnBoolean(
string
name
,
bool
value )
85
{
86
Print
(
"OnBoolean: "
+ value );
87
}
88
92
void
OnString(
string
name
,
string
value )
93
{
94
Print
(
"OnString: "
+ value );
95
}
96
100
void
OnVector(
string
name
,
vector
value )
101
{
102
Print
(
"OnVector: "
+ value );
103
}
104
108
void
OnStartArray(
string
name
)
109
{
110
Print
(
"OnStartArray: "
+
name
);
111
}
112
116
void
OnEndArray(
int
itemCount )
117
{
118
Print
(
"OnEndArray: "
+ itemCount );
119
}
120
124
void
OnItemObject(
int
index,
string
name
)
125
{
126
Print
(
"OnItemObject: "
+
name
);
127
}
128
132
void
OnItemInteger(
int
index,
int
value )
133
{
134
Print
(
"OnItemInteger: "
+ value );
135
}
136
140
void
OnItemFloat(
int
index,
float
value )
141
{
142
Print
(
"OnItemFloat: "
+ value );
143
}
144
148
void
OnItemBoolean(
int
index,
bool
value )
149
{
150
Print
(
"OnItemBoolean: "
+ value );
151
}
152
156
void
OnItemString(
int
index,
string
value )
157
{
158
Print
(
"OnItemString: "
+ value );
159
}
160
164
void
OnItemVector(
int
index,
vector
value )
165
{
166
Print
(
"OnItemVector: "
+ value );
167
}
168
172
proto native
void
RegV(
string
name
);
173
177
proto native
void
Push(
JsonApiStruct
obj );
178
182
proto native
void
StartObject(
string
name
);
183
187
proto native
void
EndObject();
188
192
proto native
void
StoreObject(
string
name
,
JsonApiStruct
obj );
193
197
proto native
void
StoreFloat(
string
name
,
float
value );
198
202
proto native
void
StoreInteger(
string
name
,
int
value );
203
207
proto native
void
StoreBoolean(
string
name
,
bool
value );
208
212
proto native
void
StoreString(
string
name
,
string
value );
213
217
proto native
void
StoreVector(
string
name
,
vector
value );
218
222
proto native
void
StartArray(
string
name
);
223
227
proto native
void
EndArray();
228
232
proto native
void
ItemObject(
JsonApiStruct
obj );
233
237
proto native
void
ItemFloat(
float
value );
238
242
proto native
void
ItemInteger(
int
value );
243
247
proto native
void
ItemBoolean(
bool
value );
248
252
proto native
void
ItemString(
string
value );
253
257
proto native
void
ItemVector(
vector
value );
258
262
proto native
void
SetDone();
263
267
proto native
void
SetFail();
268
272
proto native
void
Pack();
273
277
proto native
void
InstantPack();
278
282
proto native
void
ExpandFromRAW(
string
data );
283
287
proto native
string
AsString();
288
292
proto native
bool
PackToFile(
string
FileName );
296
proto native
bool
SaveToFile(
string
FileName );
300
proto native
bool
LoadFromFile(
string
FileName );
301
302
};
303
JsonApiStruct
Definition:
jsonapistruct.c:8
Managed
TODO doc.
Definition:
enscript.c:117
Print
proto void Print(void var)
Prints content of variable to console/log.
vector
Definition:
enconvert.c:105
name
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DAYZ
scripts_v1.24.157551
scripts
game
http
jsonapistruct.c
Generated by
1.8.17