nil-ffi 0.7.2

Multiplayer strategy game
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
// Copyright (C) Call of Nil contributors
// SPDX-License-Identifier: AGPL-3.0-only

// <auto-generated>
// This code is generated by csbindgen.
// DON'T CHANGE THIS DIRECTLY.
// </auto-generated>
#pragma warning disable CS8500
#pragma warning disable CS8981
using System;
using System.Runtime.InteropServices;


namespace CsBindgen
{
    public static unsafe partial class libnil
    {
        const string __DllName = "libnil";





        [DllImport(__DllName, EntryPoint = "nil_ffi_free_str", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_ffi_free_str(byte* ptr);

        [DllImport(__DllName, EntryPoint = "nil_ffi_poll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern StatusCode nil_ffi_poll(byte** @out);

        [DllImport(__DllName, EntryPoint = "nil_ffi_shutdown", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_ffi_shutdown();

        [DllImport(__DllName, EntryPoint = "nil_ffi_version", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_ffi_version(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_client_version", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_client_version(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_is_local", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_is_local(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_is_ready", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_is_ready(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_is_remote", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_is_remote(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_server_addr", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_server_addr(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_set_user_agent", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_set_user_agent(uint request_id, byte* user_agent);

        [DllImport(__DllName, EntryPoint = "nil_stop_client", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_stop_client(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_update_client", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_update_client(uint request_id, byte* options);

        [DllImport(__DllName, EntryPoint = "nil_user_agent", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_user_agent(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_world(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_add_academy_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_add_academy_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_add_prefecture_build_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_add_prefecture_build_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_add_stable_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_add_stable_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_add_workshop_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_add_workshop_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_authorize", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_authorize(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cancel_academy_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cancel_academy_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cancel_maneuver", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cancel_maneuver(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cancel_prefecture_build_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cancel_prefecture_build_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cancel_stable_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cancel_stable_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cancel_workshop_recruit_order", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cancel_workshop_recruit_order(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_fill_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_fill_world(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_academy_recruit_queue", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_academy_recruit_queue(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_academy_recruit_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_academy_recruit_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_all_academy_recruit_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_all_academy_recruit_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_all_prefecture_build_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_all_prefecture_build_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_all_stable_recruit_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_all_stable_recruit_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_build_steps", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_build_steps(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_cities", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_cities(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_ethics", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_ethics(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_idle_armies_at", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_idle_armies_at(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_idle_personnel_at", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_idle_personnel_at(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_infrastructure", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_infrastructure(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_maneuvers", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_maneuvers(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_maneuvers_of", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_maneuvers_of(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_player", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_player(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_players", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_players(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_prefecture_build_queue", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_prefecture_build_queue(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_prefecture_build_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_prefecture_build_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_resources", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_resources(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_stable_recruit_queue", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_stable_recruit_queue(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_stable_recruit_queues", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_stable_recruit_queues(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_get_storage_capacity", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_get_storage_capacity(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_bot_ethics", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_bot_ethics(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_building_level", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_building_level(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_food", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_food(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_iron", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_iron(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_food", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_food(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_infrastructure", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_infrastructure(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_iron", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_iron(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_resources", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_resources(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_silo_resources", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_silo_resources(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_stone", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_stone(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_warehouse_resources", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_warehouse_resources(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_max_wood", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_max_wood(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_resources", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_resources(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_stability", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_stability(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_stone", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_stone(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_set_wood", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_set_wood(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_skip_round", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_skip_round(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_spawn_bot", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_spawn_bot(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_spawn_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_spawn_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_cheat_spawn_personnel", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_cheat_spawn_personnel(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_create_remote_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_create_remote_world(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_create_user", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_create_user(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_delete_remote_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_delete_remote_world(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_forward_report", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_forward_report(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_academy_recruit_catalog", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_academy_recruit_catalog(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_armies", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_armies(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_army", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_army(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_army_owner", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_army_owner(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_bot_coords", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_bot_coords(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_chat_history", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_chat_history(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_cities", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_cities(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_city_score", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_city_score(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_continent_size", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_continent_size(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_idle_armies_at", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_idle_armies_at(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_idle_armies_coords", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_idle_armies_coords(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_maneuver", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_maneuver(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_coords", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_coords(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_ids", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_ids(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_maintenance", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_maintenance(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_military", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_military(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_status", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_status(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_storage_capacity", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_storage_capacity(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_player_worlds", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_player_worlds(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_precursor_coords", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_precursor_coords(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_prefecture_build_catalog", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_prefecture_build_catalog(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_bot", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_bot(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_bots", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_bots(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_cities", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_cities(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_field", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_field(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_fields", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_fields(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_player", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_player(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_players", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_players(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_precursor", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_precursor(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_public_precursors", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_public_precursors(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_rank", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_rank(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_ranking", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_ranking(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_remote_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_remote_world(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_remote_world_limit", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_remote_world_limit(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_get_remote_world_limit_per_user", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_remote_world_limit_per_user(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_get_remote_worlds", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_remote_worlds(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_get_round", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_round(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_server_kind", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_server_kind(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_get_stable_recruit_catalog", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_stable_recruit_catalog(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_workshop_recruit_catalog", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_workshop_recruit_catalog(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_bots", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_bots(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_config", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_config(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_personnel", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_personnel(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_players", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_players(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_precursors", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_precursors(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_get_world_stats", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_get_world_stats(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_player_exists", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_player_exists(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_push_chat_message", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_push_chat_message(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_rename_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_rename_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_request_maneuver", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_request_maneuver(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_save_local_world", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_save_local_world(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_search_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_search_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_search_public_city", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_search_public_city(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_server_version", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_server_version(uint request_id);

        [DllImport(__DllName, EntryPoint = "nil_set_player_ready", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_set_player_ready(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_set_player_status", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_set_player_status(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_simulate_battle", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_simulate_battle(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_spawn_player", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_spawn_player(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_start_round", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_start_round(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_toggle_building", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_toggle_building(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_user_exists", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_user_exists(uint request_id, byte* req);

        [DllImport(__DllName, EntryPoint = "nil_validate_token", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true)]
        public static extern void nil_validate_token(uint request_id, byte* req);


    }


    public enum StatusCode : int
    {
        OK = 0,
        ERR_NULL_POINTER = 1,
        ERR_NOTHING_TO_POLL = 2,
        ERR_SERIALIZATION = 3,
        ERR_UNKNOWN,
    }


}