-
Notifications
You must be signed in to change notification settings - Fork 3
/
prospectorsc_abi.d
753 lines (659 loc) · 8.18 KB
/
prospectorsc_abi.d
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
module prospectorsc_abi;
import transaction;
alias ID = uint64;
alias t_amount = int32;
alias t_balance = int64;
alias t_build = int16;
alias t_byte = uint8;
alias t_coord = int32;
alias t_energy = int16;
alias t_health = int32;
alias t_job = int16;
alias t_logo = uint32;
alias t_name = Name;
alias t_skill = int16;
alias t_type = int16;
alias t_utime = uint32;
struct AccountModel
{
t_name name;
uint32 flags;
ID worker0;
ID worker1;
ID worker2;
Purchase[] purchases;
t_name referer;
t_balance balance;
t_balance referer_fee;
t_name alliance;
t_utime premium_time;
uint32 points;
}
struct AllianceModel
{
t_name name;
t_name owner;
t_utime cr_time;
t_amount members;
t_amount request;
t_logo logo;
uint64 r1;
uint64 r2;
uint64 r3;
uint64 r4;
}
struct AuctionModel
{
ID loc_id;
t_byte type;
t_name owner;
t_name target;
t_balance price;
t_utime end_time;
t_name bid_user;
uint64 r1;
uint64 r2;
}
struct Building
{
t_build build_id;
t_skill build_step;
t_amount build_amount;
t_utime ready_time;
t_amount health;
uint16 param;
uint16 r1;
}
struct LocJob
{
t_job job_type;
t_job job_group;
t_utime ready_time;
t_name owner;
Stuff stuff;
}
struct LocModel
{
ID id;
ID world_id;
t_name owner;
t_utime rent_time;
string name;
t_amount gold;
t_amount wood;
t_amount stone;
t_amount coal;
t_amount clay;
t_amount ore;
LocJob[] jobs;
StorageStuff[] storage;
Building building;
t_amount coffee;
t_amount[] resources;
t_amount moss;
uint16 flags;
uint16 r2;
}
struct MarketModel
{
ID id;
ID loc_id;
t_name owner;
Stuff stuff;
t_amount price;
t_name alliance;
uint64 r2;
}
struct OrderModel
{
ID id;
ID loc_id;
t_name owner;
t_job job_type;
t_amount gold;
t_amount amount;
t_type item_id;
t_amount item_prop;
ID item_tag;
int8 state;
t_name alliance;
t_byte is_stock;
t_byte r2;
uint16 r3;
uint32 r4;
}
struct Purchase
{
ID loc_id;
Stuff stuff;
t_amount reserved;
}
struct RailOrderModel
{
ID id;
t_name target;
t_name owner;
t_name recipient;
Stuff stuff;
t_amount price;
t_amount gold;
uint64 r1;
uint64 r2;
}
struct RailStateModel
{
t_name target;
t_byte state;
t_utime time;
t_name last_index;
t_balance total_weight;
t_balance total_gold;
t_amount orders_cnt;
t_amount orders_done;
uint64 r1;
uint64 r2;
}
struct StatModel
{
ID id;
t_amount rent_price;
t_utime begin_time;
int32 job_count;
int64 job_sum;
uint64 r1;
uint64 r2;
}
struct StorageModel
{
ID loc_id;
StorageStuff[] stuffs;
LocJob[] jobs;
uint64 r0;
}
struct StorageStuff
{
t_type type_id;
t_amount amount;
t_health health;
t_amount reserved;
}
struct Stuff
{
t_type type_id;
t_amount amount;
t_health health;
}
struct WorkerJob
{
t_job job_type;
t_utime ready_time;
Stuff stuff;
uint8 is_backpack;
ID loc_id;
t_utime loc_time;
}
struct WorkerModel
{
ID id;
t_name owner;
ID loc_id;
ID prev_loc_id;
WorkerJob job;
Stuff[] backpack;
Stuff[] equipment;
string name;
uint32 diplomas;
t_energy energy;
uint8 slots;
uint8 r1;
uint64 r2;
}
struct WorldModel
{
ID id;
int64 gold;
int64 coal;
int64 clay;
int64 ore;
uint64 seed;
uint64 r2;
uint64 r3;
uint64 r4;
}
struct accptmember
{
t_name account;
t_name aname;
t_name member;
}
struct arrestuser
{
t_name account;
t_amount days;
}
struct buycert
{
t_name account;
t_amount price;
}
struct buyenergy
{
ID worker_id;
t_amount rent_price;
}
struct buylicense
{
t_name account;
t_type stuff_id;
}
struct buywrkslot
{
ID worker_id;
t_amount price;
}
struct chrailord
{
ID order_id;
t_amount price;
}
struct chsale
{
ID market_id;
t_amount price;
}
struct distribtax
{
}
struct dobuild
{
ID loc_id;
ID worker_id;
t_utime duration;
}
struct dodepart
{
t_name target;
t_amount count;
}
struct domake
{
ID loc_id;
ID worker_id;
t_type type_id;
t_amount amount;
}
struct domine
{
ID loc_id;
ID worker_id;
t_type type_id;
t_utime duration;
}
struct doorder
{
ID order_id;
ID worker_id;
t_amount amount;
}
struct dorepair
{
ID loc_id;
ID worker_id;
t_utime duration;
}
struct dosearch
{
ID loc_id;
ID worker_id;
t_type type_id;
}
struct doself
{
ID worker_id;
t_type type_id;
t_amount amount;
}
struct endauction
{
ID loc_id;
}
struct endlocexpr
{
ID loc_id;
}
struct endlocsale
{
ID loc_id;
}
struct exitmember
{
t_name account;
}
struct getdiploma
{
ID worker_id;
t_byte dip_id;
t_amount price;
}
struct initstat
{
}
struct login
{
t_name name;
t_name referer;
}
struct mkalliance
{
t_name account;
t_name aname;
t_logo logo;
t_amount price;
}
struct mkauction
{
ID loc_id;
t_balance price;
}
struct mkbuild
{
ID loc_id;
t_build build_id;
}
struct mkbuildord
{
ID loc_id;
t_amount gold;
t_utime duration;
t_name alliance;
}
struct mkbuyord
{
t_name account;
ID loc_id;
t_amount gold;
t_type type_id;
t_amount amount;
t_name alliance;
}
struct mkcells
{
ID world_id;
t_coord min_x;
t_coord min_y;
t_coord max_x;
t_coord max_y;
}
struct mkfreeloc
{
ID loc_id;
}
struct mklocexpr
{
ID loc_id;
t_name account;
t_amount price;
}
struct mklocsale
{
ID loc_id;
t_balance price;
t_name target;
}
struct mkmakeord
{
ID loc_id;
t_amount gold;
t_type type_id;
t_amount amount;
t_name alliance;
}
struct mkmineord
{
ID loc_id;
t_amount gold;
t_type type_id;
t_amount duration;
t_name alliance;
}
struct mkpremium
{
t_name account;
t_amount days;
}
struct mkpremiumt
{
t_name account;
}
struct mkpurchase
{
t_name account;
ID market_id;
t_amount price;
t_amount amount;
}
struct mkpurchord
{
t_name account;
ID loc_id;
t_amount gold;
Stuff stuff;
ID dest_loc_id;
t_name alliance;
}
struct mkrailord
{
t_name account;
t_name target;
t_name recipient;
Stuff stuff;
t_amount price;
}
struct mkrepairord
{
ID loc_id;
t_amount gold;
t_utime duration;
t_name alliance;
}
struct mksale
{
t_name account;
ID loc_id;
Stuff stuff;
t_amount price;
t_name alliance;
}
struct mktransord
{
t_name account;
ID loc_id;
t_amount gold;
Stuff stuff;
ID dest_loc_id;
t_name alliance;
}
struct mkworld
{
ID id;
}
struct mvpurchstor
{
t_name account;
ID loc_id;
Stuff stuff;
}
struct mvpurchwrk
{
ID loc_id;
ID worker_id;
Stuff stuff;
bool equip;
}
struct mvstorewrk
{
ID loc_id;
ID worker_id;
Stuff stuff;
bool equip;
}
struct mvstorgold
{
ID loc_id;
t_amount amount;
}
struct mvworker
{
ID worker_id;
t_coord x;
t_coord y;
}
struct mvwrkgold
{
ID worker_id;
t_amount amount;
}
struct mvwrkstore
{
ID loc_id;
ID worker_id;
Stuff stuff;
bool equip;
}
struct mvwrkwrk
{
ID from_worker_id;
bool from_equip;
ID to_worker_id;
bool to_equip;
Stuff stuff;
}
struct putlocbid
{
ID loc_id;
t_name account;
t_amount price;
}
struct rentloc
{
t_name account;
ID loc_id;
t_amount price;
t_amount days;
}
struct reqmember
{
t_name account;
t_name aname;
}
struct retlicense
{
ID worker_id;
Stuff stuff;
}
struct rmauction
{
ID loc_id;
}
struct rmbuild
{
ID loc_id;
}
struct rmmember
{
t_name account;
t_name aname;
t_name member;
}
struct rmorder
{
ID order_id;
}
struct rmpurstuff
{
t_name account;
ID loc_id;
Stuff stuff;
}
struct rmrailord
{
ID order_id;
}
struct rmsale
{
ID market_id;
}
struct rmstorstuff
{
ID loc_id;
Stuff stuff;
}
struct rmwrkstuff
{
ID worker_id;
Stuff stuff;
bool equip;
}
struct rnloc
{
ID loc_id;
string name;
}
struct rnworker
{
ID worker_id;
string name;
}
struct seedloc
{
ID loc_id;
t_type stuff_id;
t_amount amount;
}
struct sellstuff
{
t_name account;
ID order_id;
t_amount amount;
}
struct setbankp
{
ID loc_id;
float32 percent;
}
struct setrole
{
t_name account;
t_name member;
uint8 role;
}
struct takeoff
{
ID worker_id;
t_type type_id;
t_health health;
}
struct takeon
{
ID worker_id;
t_type type_id;
t_health health;
}
struct withdraw
{
t_name account;
t_amount amount;
}
alias accountElement = AccountModel;
alias allianceElement = AllianceModel;
alias auctionElement = AuctionModel;
alias locElement = LocModel;
alias marketElement = MarketModel;
alias orderElement = OrderModel;
alias raildepartElement = RailOrderModel;
alias railorderElement = RailOrderModel;
alias railstateElement = RailStateModel;
alias statElement = StatModel;
alias storageElement = StorageModel;
alias workerElement = WorkerModel;
alias worldElement = WorldModel;