nil-ffi 0.7.21

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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
// Copyright (C) Call of Nil contributors
// SPDX-License-Identifier: AGPL-3.0-only

#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>

enum Status
#if __STDC_VERSION__ >= 202311L
  : int32_t
#endif // __STDC_VERSION__ >= 202311L
 {
  OK = 0,
  ERR_NULL_POINTER = 1,
  ERR_NOTHING_TO_POLL = 2,
  ERR_SERIALIZATION = 3,
  ERR_UNKNOWN = INT32_MAX,
};
#if __STDC_VERSION__ >= 202311L
typedef enum Status Status;
#else
typedef int32_t Status;
#endif // __STDC_VERSION__ >= 202311L

typedef unsigned int RequestId;

void nil_ffi_free_str(char *ptr);

Status nil_ffi_poll(char **json_out);

void nil_ffi_shutdown(void);

void nil_ffi_version(RequestId request_id);

void nil_is_host(RequestId request_id);

/**
 * [`nil_server::local::start`]
 */
void nil_start_server(RequestId request_id, const char *json_options);

/**
 * [`nil_server::local::load`]
 */
void nil_start_server_with_savedata(RequestId request_id, const char *json_path);

/**
 * [`LocalServer::stop`](nil_server::local::LocalServer::stop)
 */
void nil_stop_server(RequestId request_id);

void nil_client_version(RequestId request_id);

/**
 * [`Client::is_local`](nil_client::Client::is_local)
 */
void nil_is_local(RequestId request_id);

/**
 * [`Client::is_ready`](nil_client::Client::is_ready)
 */
void nil_is_ready(RequestId request_id);

/**
 * [`Client::is_remote`](nil_client::Client::is_remote)
 */
void nil_is_remote(RequestId request_id);

/**
 * [`Client::server_addr`](nil_client::Client::server_addr)
 */
void nil_server_addr(RequestId request_id);

/**
 * [`Client::set_user_agent`](nil_client::Client::set_user_agent)
 */
void nil_set_user_agent(RequestId request_id, const char *json_user_agent);

/**
 * [`Client::stop`](nil_client::Client::stop)
 */
void nil_stop_client(RequestId request_id);

/**
 * [`Client::update`](nil_client::Client::update)
 */
void nil_update_client(RequestId request_id, const char *json_options);

/**
 * [`Client::user_agent`](nil_client::Client::user_agent)
 */
void nil_user_agent(RequestId request_id);

/**
 * [`Client::world`](nil_client::Client::world)
 */
void nil_world(RequestId request_id);

/**
 * [`RuntimeMetrics::global_queue_depth`](tokio::runtime::RuntimeMetrics::global_queue_depth)
 */
void nil_runtime_global_queue_depth(RequestId request_id);

/**
 * [`RuntimeMetrics::num_alive_tasks`](tokio::runtime::RuntimeMetrics::num_alive_tasks)
 */
void nil_runtime_num_alive_tasks(RequestId request_id);

/**
 * [`RuntimeMetrics::num_workers`](tokio::runtime::RuntimeMetrics::num_workers)
 */
void nil_runtime_num_workers(RequestId request_id);

/**
 * [`Client::add_academy_recruit_order`](nil_client::Client::add_academy_recruit_order)
 */
void nil_add_academy_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::add_prefecture_build_order`](nil_client::Client::add_prefecture_build_order)
 */
void nil_add_prefecture_build_order(RequestId request_id, const char *json_req);

/**
 * [`Client::add_stable_recruit_order`](nil_client::Client::add_stable_recruit_order)
 */
void nil_add_stable_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::add_workshop_recruit_order`](nil_client::Client::add_workshop_recruit_order)
 */
void nil_add_workshop_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::authorize`](nil_client::Client::authorize)
 */
void nil_authorize(RequestId request_id, const char *json_req);

/**
 * [`Client::buy_resources`](nil_client::Client::buy_resources)
 */
void nil_buy_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::cancel_academy_recruit_order`](nil_client::Client::cancel_academy_recruit_order)
 */
void nil_cancel_academy_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::cancel_maneuver`](nil_client::Client::cancel_maneuver)
 */
void nil_cancel_maneuver(RequestId request_id, const char *json_req);

/**
 * [`Client::cancel_prefecture_build_order`](nil_client::Client::cancel_prefecture_build_order)
 */
void nil_cancel_prefecture_build_order(RequestId request_id, const char *json_req);

/**
 * [`Client::cancel_stable_recruit_order`](nil_client::Client::cancel_stable_recruit_order)
 */
void nil_cancel_stable_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::cancel_workshop_recruit_order`](nil_client::Client::cancel_workshop_recruit_order)
 */
void nil_cancel_workshop_recruit_order(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_fill_world`](nil_client::Client::cheat_fill_world)
 */
void nil_cheat_fill_world(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_academy_recruit_queue`](nil_client::Client::cheat_get_academy_recruit_queue)
 */
void nil_cheat_get_academy_recruit_queue(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_academy_recruit_queues`](nil_client::Client::cheat_get_academy_recruit_queues)
 */
void nil_cheat_get_academy_recruit_queues(RequestId request_id,
                                          const char *json_req);

/**
 * [`Client::cheat_get_all_academy_recruit_queues`](nil_client::Client::cheat_get_all_academy_recruit_queues)
 */
void nil_cheat_get_all_academy_recruit_queues(RequestId request_id,
                                              const char *json_req);

/**
 * [`Client::cheat_get_all_prefecture_build_queues`](nil_client::Client::cheat_get_all_prefecture_build_queues)
 */
void nil_cheat_get_all_prefecture_build_queues(RequestId request_id,
                                               const char *json_req);

/**
 * [`Client::cheat_get_all_stable_recruit_queues`](nil_client::Client::cheat_get_all_stable_recruit_queues)
 */
void nil_cheat_get_all_stable_recruit_queues(RequestId request_id,
                                             const char *json_req);

/**
 * [`Client::cheat_get_build_steps`](nil_client::Client::cheat_get_build_steps)
 */
void nil_cheat_get_build_steps(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_cities`](nil_client::Client::cheat_get_cities)
 */
void nil_cheat_get_cities(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_city`](nil_client::Client::cheat_get_city)
 */
void nil_cheat_get_city(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_ethics`](nil_client::Client::cheat_get_ethics)
 */
void nil_cheat_get_ethics(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_idle_armies_at`](nil_client::Client::cheat_get_idle_armies_at)
 */
void nil_cheat_get_idle_armies_at(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_idle_personnel_at`](nil_client::Client::cheat_get_idle_personnel_at)
 */
void nil_cheat_get_idle_personnel_at(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_influence`](nil_client::Client::cheat_get_influence)
 */
void nil_cheat_get_influence(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_infrastructure`](nil_client::Client::cheat_get_infrastructure)
 */
void nil_cheat_get_infrastructure(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_maneuvers`](nil_client::Client::cheat_get_maneuvers)
 */
void nil_cheat_get_maneuvers(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_maneuvers_of`](nil_client::Client::cheat_get_maneuvers_of)
 */
void nil_cheat_get_maneuvers_of(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_player`](nil_client::Client::cheat_get_player)
 */
void nil_cheat_get_player(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_players`](nil_client::Client::cheat_get_players)
 */
void nil_cheat_get_players(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_prefecture_build_queue`](nil_client::Client::cheat_get_prefecture_build_queue)
 */
void nil_cheat_get_prefecture_build_queue(RequestId request_id,
                                          const char *json_req);

/**
 * [`Client::cheat_get_prefecture_build_queues`](nil_client::Client::cheat_get_prefecture_build_queues)
 */
void nil_cheat_get_prefecture_build_queues(RequestId request_id,
                                           const char *json_req);

/**
 * [`Client::cheat_get_resources`](nil_client::Client::cheat_get_resources)
 */
void nil_cheat_get_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_stable_recruit_queue`](nil_client::Client::cheat_get_stable_recruit_queue)
 */
void nil_cheat_get_stable_recruit_queue(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_stable_recruit_queues`](nil_client::Client::cheat_get_stable_recruit_queues)
 */
void nil_cheat_get_stable_recruit_queues(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_get_storage_capacity`](nil_client::Client::cheat_get_storage_capacity)
 */
void nil_cheat_get_storage_capacity(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_bot_ethics`](nil_client::Client::cheat_set_bot_ethics)
 */
void nil_cheat_set_bot_ethics(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_building_level`](nil_client::Client::cheat_set_building_level)
 */
void nil_cheat_set_building_level(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_food`](nil_client::Client::cheat_set_food)
 */
void nil_cheat_set_food(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_influence`](nil_client::Client::cheat_set_influence)
 */
void nil_cheat_set_influence(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_iron`](nil_client::Client::cheat_set_iron)
 */
void nil_cheat_set_iron(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_market_fee`](nil_client::Client::cheat_set_market_fee)
 */
void nil_cheat_set_market_fee(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_market_vault_resources`](nil_client::Client::cheat_set_market_vault_resources)
 */
void nil_cheat_set_market_vault_resources(RequestId request_id,
                                          const char *json_req);

/**
 * [`Client::cheat_set_max_food`](nil_client::Client::cheat_set_max_food)
 */
void nil_cheat_set_max_food(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_infrastructure`](nil_client::Client::cheat_set_max_infrastructure)
 */
void nil_cheat_set_max_infrastructure(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_iron`](nil_client::Client::cheat_set_max_iron)
 */
void nil_cheat_set_max_iron(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_resources`](nil_client::Client::cheat_set_max_resources)
 */
void nil_cheat_set_max_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_silo_resources`](nil_client::Client::cheat_set_max_silo_resources)
 */
void nil_cheat_set_max_silo_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_stone`](nil_client::Client::cheat_set_max_stone)
 */
void nil_cheat_set_max_stone(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_max_warehouse_resources`](nil_client::Client::cheat_set_max_warehouse_resources)
 */
void nil_cheat_set_max_warehouse_resources(RequestId request_id,
                                           const char *json_req);

/**
 * [`Client::cheat_set_max_wood`](nil_client::Client::cheat_set_max_wood)
 */
void nil_cheat_set_max_wood(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_resources`](nil_client::Client::cheat_set_resources)
 */
void nil_cheat_set_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_stability`](nil_client::Client::cheat_set_stability)
 */
void nil_cheat_set_stability(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_stone`](nil_client::Client::cheat_set_stone)
 */
void nil_cheat_set_stone(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_set_wood`](nil_client::Client::cheat_set_wood)
 */
void nil_cheat_set_wood(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_skip_round`](nil_client::Client::cheat_skip_round)
 */
void nil_cheat_skip_round(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_spawn_bot`](nil_client::Client::cheat_spawn_bot)
 */
void nil_cheat_spawn_bot(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_spawn_city`](nil_client::Client::cheat_spawn_city)
 */
void nil_cheat_spawn_city(RequestId request_id, const char *json_req);

/**
 * [`Client::cheat_spawn_personnel`](nil_client::Client::cheat_spawn_personnel)
 */
void nil_cheat_spawn_personnel(RequestId request_id, const char *json_req);

/**
 * [`Client::create_remote_world`](nil_client::Client::create_remote_world)
 */
void nil_create_remote_world(RequestId request_id, const char *json_req);

/**
 * [`Client::create_user`](nil_client::Client::create_user)
 */
void nil_create_user(RequestId request_id, const char *json_req);

/**
 * [`Client::delete_remote_world`](nil_client::Client::delete_remote_world)
 */
void nil_delete_remote_world(RequestId request_id, const char *json_req);

/**
 * [`Client::forward_report`](nil_client::Client::forward_report)
 */
void nil_forward_report(RequestId request_id, const char *json_req);

/**
 * [`Client::get_academy_recruit_catalog`](nil_client::Client::get_academy_recruit_catalog)
 */
void nil_get_academy_recruit_catalog(RequestId request_id, const char *json_req);

/**
 * [`Client::get_armies`](nil_client::Client::get_armies)
 */
void nil_get_armies(RequestId request_id, const char *json_req);

/**
 * [`Client::get_army`](nil_client::Client::get_army)
 */
void nil_get_army(RequestId request_id, const char *json_req);

/**
 * [`Client::get_army_owner`](nil_client::Client::get_army_owner)
 */
void nil_get_army_owner(RequestId request_id, const char *json_req);

/**
 * [`Client::get_bot_coords`](nil_client::Client::get_bot_coords)
 */
void nil_get_bot_coords(RequestId request_id, const char *json_req);

/**
 * [`Client::get_chat_history`](nil_client::Client::get_chat_history)
 */
void nil_get_chat_history(RequestId request_id, const char *json_req);

/**
 * [`Client::get_cities`](nil_client::Client::get_cities)
 */
void nil_get_cities(RequestId request_id, const char *json_req);

/**
 * [`Client::get_city`](nil_client::Client::get_city)
 */
void nil_get_city(RequestId request_id, const char *json_req);

/**
 * [`Client::get_city_limit`](nil_client::Client::get_city_limit)
 */
void nil_get_city_limit(RequestId request_id, const char *json_req);

/**
 * [`Client::get_city_score`](nil_client::Client::get_city_score)
 */
void nil_get_city_score(RequestId request_id, const char *json_req);

/**
 * [`Client::get_continent_size`](nil_client::Client::get_continent_size)
 */
void nil_get_continent_size(RequestId request_id, const char *json_req);

/**
 * [`Client::get_idle_armies_at`](nil_client::Client::get_idle_armies_at)
 */
void nil_get_idle_armies_at(RequestId request_id, const char *json_req);

/**
 * [`Client::get_idle_armies_coords`](nil_client::Client::get_idle_armies_coords)
 */
void nil_get_idle_armies_coords(RequestId request_id, const char *json_req);

/**
 * [`Client::get_maneuver`](nil_client::Client::get_maneuver)
 */
void nil_get_maneuver(RequestId request_id, const char *json_req);

/**
 * [`Client::get_market`](nil_client::Client::get_market)
 */
void nil_get_market(RequestId request_id, const char *json_req);

/**
 * [`Client::get_market_fee`](nil_client::Client::get_market_fee)
 */
void nil_get_market_fee(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player`](nil_client::Client::get_player)
 */
void nil_get_player(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_coords`](nil_client::Client::get_player_coords)
 */
void nil_get_player_coords(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_ids`](nil_client::Client::get_player_ids)
 */
void nil_get_player_ids(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_maintenance`](nil_client::Client::get_player_maintenance)
 */
void nil_get_player_maintenance(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_military`](nil_client::Client::get_player_military)
 */
void nil_get_player_military(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_status`](nil_client::Client::get_player_status)
 */
void nil_get_player_status(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_storage_capacity`](nil_client::Client::get_player_storage_capacity)
 */
void nil_get_player_storage_capacity(RequestId request_id, const char *json_req);

/**
 * [`Client::get_player_worlds`](nil_client::Client::get_player_worlds)
 */
void nil_get_player_worlds(RequestId request_id, const char *json_req);

/**
 * [`Client::get_precursor_coords`](nil_client::Client::get_precursor_coords)
 */
void nil_get_precursor_coords(RequestId request_id, const char *json_req);

/**
 * [`Client::get_prefecture_build_catalog`](nil_client::Client::get_prefecture_build_catalog)
 */
void nil_get_prefecture_build_catalog(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_bot`](nil_client::Client::get_public_bot)
 */
void nil_get_public_bot(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_bots`](nil_client::Client::get_public_bots)
 */
void nil_get_public_bots(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_cities`](nil_client::Client::get_public_cities)
 */
void nil_get_public_cities(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_city`](nil_client::Client::get_public_city)
 */
void nil_get_public_city(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_field`](nil_client::Client::get_public_field)
 */
void nil_get_public_field(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_fields`](nil_client::Client::get_public_fields)
 */
void nil_get_public_fields(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_player`](nil_client::Client::get_public_player)
 */
void nil_get_public_player(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_players`](nil_client::Client::get_public_players)
 */
void nil_get_public_players(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_precursor`](nil_client::Client::get_public_precursor)
 */
void nil_get_public_precursor(RequestId request_id, const char *json_req);

/**
 * [`Client::get_public_precursors`](nil_client::Client::get_public_precursors)
 */
void nil_get_public_precursors(RequestId request_id, const char *json_req);

/**
 * [`Client::get_rank`](nil_client::Client::get_rank)
 */
void nil_get_rank(RequestId request_id, const char *json_req);

/**
 * [`Client::get_ranking`](nil_client::Client::get_ranking)
 */
void nil_get_ranking(RequestId request_id, const char *json_req);

/**
 * [`Client::get_remote_world`](nil_client::Client::get_remote_world)
 */
void nil_get_remote_world(RequestId request_id, const char *json_req);

/**
 * [`Client::get_remote_world_limit`](nil_client::Client::get_remote_world_limit)
 */
void nil_get_remote_world_limit(RequestId request_id);

/**
 * [`Client::get_remote_world_limit_per_user`](nil_client::Client::get_remote_world_limit_per_user)
 */
void nil_get_remote_world_limit_per_user(RequestId request_id);

/**
 * [`Client::get_remote_worlds`](nil_client::Client::get_remote_worlds)
 */
void nil_get_remote_worlds(RequestId request_id);

/**
 * [`Client::get_round`](nil_client::Client::get_round)
 */
void nil_get_round(RequestId request_id, const char *json_req);

/**
 * [`Client::get_server_kind`](nil_client::Client::get_server_kind)
 */
void nil_get_server_kind(RequestId request_id);

/**
 * [`Client::get_stable_recruit_catalog`](nil_client::Client::get_stable_recruit_catalog)
 */
void nil_get_stable_recruit_catalog(RequestId request_id, const char *json_req);

/**
 * [`Client::get_workshop_recruit_catalog`](nil_client::Client::get_workshop_recruit_catalog)
 */
void nil_get_workshop_recruit_catalog(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_bots`](nil_client::Client::get_world_bots)
 */
void nil_get_world_bots(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_config`](nil_client::Client::get_world_config)
 */
void nil_get_world_config(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_personnel`](nil_client::Client::get_world_personnel)
 */
void nil_get_world_personnel(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_players`](nil_client::Client::get_world_players)
 */
void nil_get_world_players(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_precursors`](nil_client::Client::get_world_precursors)
 */
void nil_get_world_precursors(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_rulers`](nil_client::Client::get_world_rulers)
 */
void nil_get_world_rulers(RequestId request_id, const char *json_req);

/**
 * [`Client::get_world_stats`](nil_client::Client::get_world_stats)
 */
void nil_get_world_stats(RequestId request_id, const char *json_req);

/**
 * [`Client::player_exists`](nil_client::Client::player_exists)
 */
void nil_player_exists(RequestId request_id, const char *json_req);

/**
 * [`Client::push_chat_message`](nil_client::Client::push_chat_message)
 */
void nil_push_chat_message(RequestId request_id, const char *json_req);

/**
 * [`Client::rename_city`](nil_client::Client::rename_city)
 */
void nil_rename_city(RequestId request_id, const char *json_req);

/**
 * [`Client::request_maneuver`](nil_client::Client::request_maneuver)
 */
void nil_request_maneuver(RequestId request_id, const char *json_req);

/**
 * [`Client::save_local_world`](nil_client::Client::save_local_world)
 */
void nil_save_local_world(RequestId request_id, const char *json_req);

/**
 * [`Client::search_city`](nil_client::Client::search_city)
 */
void nil_search_city(RequestId request_id, const char *json_req);

/**
 * [`Client::search_public_city`](nil_client::Client::search_public_city)
 */
void nil_search_public_city(RequestId request_id, const char *json_req);

/**
 * [`Client::sell_resources`](nil_client::Client::sell_resources)
 */
void nil_sell_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::send_resources`](nil_client::Client::send_resources)
 */
void nil_send_resources(RequestId request_id, const char *json_req);

/**
 * [`Client::version`](nil_client::Client::version)
 */
void nil_server_version(RequestId request_id);

/**
 * [`Client::set_player_ready`](nil_client::Client::set_player_ready)
 */
void nil_set_player_ready(RequestId request_id, const char *json_req);

/**
 * [`Client::set_player_status`](nil_client::Client::set_player_status)
 */
void nil_set_player_status(RequestId request_id, const char *json_req);

/**
 * [`Client::simulate_battle`](nil_client::Client::simulate_battle)
 */
void nil_simulate_battle(RequestId request_id, const char *json_req);

/**
 * [`Client::spawn_player`](nil_client::Client::spawn_player)
 */
void nil_spawn_player(RequestId request_id, const char *json_req);

/**
 * [`Client::start_round`](nil_client::Client::start_round)
 */
void nil_start_round(RequestId request_id, const char *json_req);

/**
 * [`Client::toggle_building`](nil_client::Client::toggle_building)
 */
void nil_toggle_building(RequestId request_id, const char *json_req);

/**
 * [`Client::user_exists`](nil_client::Client::user_exists)
 */
void nil_user_exists(RequestId request_id, const char *json_req);

/**
 * [`Client::validate_token`](nil_client::Client::validate_token)
 */
void nil_validate_token(RequestId request_id, const char *json_req);