Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
NetApiDocs.c
Go to the documentation of this file.
1
8
176
177
#ifdef DOXYGEN
178
180
class
ExampleRequest :
JsonApiStruct
181
{
182
string
input;
183
184
void
ExampleRequest()
185
{
186
RegV(
"input"
);
187
}
188
}
189
190
class
ExampleResponse :
JsonApiStruct
191
{
192
string
output;
193
194
void
ExampleResponse()
195
{
196
RegV(
"output"
);
197
}
198
}
199
200
// Class that is being called
201
class
ExampleCall : NetApiHandler
202
{
203
override
JsonApiStruct
GetRequest
()
204
{
205
return
new
ExampleRequest();
206
}
207
208
override
JsonApiStruct
GetResponse
(JsonApiStruct request)
209
{
210
ExampleRequest req = ExampleRequest.Cast(request);
211
ExampleResponse response =
new
ExampleResponse();
212
213
Print
(req.input);
214
response.output =
"Hello from Workbench"
;
215
216
return
response;
217
}
218
219
}
221
222
223
#endif
GetResponse
override JsonApiStruct GetResponse(JsonApiStruct request)
Definition
AnimExportProfiles.c:97
GetRequest
SCR_AICombatMoveRequestBase GetRequest()
Definition
SCR_AICombatMoveState.c:137
JsonApiStruct
base classes for filtering in server browser
Definition
SCR_FeedbackDialogUI.c:3
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
scripts
WorkbenchGameCommon
NetApiDocs.c
Generated by
1.17.0