-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathei.proto
2567 lines (2303 loc) · 75.1 KB
/
ei.proto
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
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
syntax = "proto2";
package ei;
enum Platform {
UNKNOWN_PLATFORM = 0;
IOS = 1;
DROID = 2;
}
enum DeviceFormFactor {
UNKNOWN_DEVICE = 0;
PHONE = 1;
TABLET = 2;
}
enum AdNetwork {
VUNGLE = 0;
CHARTBOOST = 1;
AD_COLONY = 2;
HYPER_MX = 3;
UNITY = 4;
FACEBOOK = 5;
APPLOVIN = 6;
}
message Vector3 {
optional float x = 1;
optional float y = 2;
optional float z = 3;
}
message Vector4 {
optional float x = 1;
optional float y = 2;
optional float z = 3;
optional float w = 4;
}
message Backup {
optional string user_id = 1;
optional string ei_user_id = 18;
optional string game_services_id = 16;
optional string push_user_id = 26;
optional string device_id = 17;
optional string user_name = 2;
optional double approx_time = 3;
optional uint32 version = 21 [default = 0];
optional bool force_offer_backup = 20;
optional bool force_backup = 22;
optional Settings settings = 4;
message Settings {
optional bool sfx = 1;
optional bool music = 2;
optional bool low_battery_mode = 3;
optional bool low_performance_mode = 4;
optional bool force_touch_chicken_btn = 9;
optional bool notifications_queried = 5;
optional double last_notification_query_time = 27;
optional bool notifications_on = 6;
optional bool notify_daily_gift = 11;
optional bool low_performance = 10;
optional bool auto_stop_fueling = 25;
optional bool max_enabled = 26;
optional bool hide_cc_status = 28;
optional bool contracts_widget_enabled = 29;
optional bool artifact_sparkle = 30;
optional double last_backup_time = 24;
optional bool coppa_queried = 7;
optional bool coppa_restricted = 8;
optional bool gdpr_consent_queried = 12;
optional bool gdpr_age_restricted = 16;
optional bool gdpr_consent_given = 13;
optional bool age_queried = 18;
optional bool age_restricted = 19 [default = false];
optional bool data_collection_consent_queried = 20;
optional bool data_collection_consent_given = 21;
optional uint32 last_day_age_queried = 17;
optional bool user_ads_enabled = 14 [default = true];
optional bool user_cloud_enabled = 15 [default = true];
optional bool user_analytics_enabled = 22 [default = true];
optional bool user_personalized_ads_enabled = 23 [default = true];
}
optional Tutorial tutorial = 5;
message Tutorial {
optional bool intro_shown = 1;
optional bool click_tutorial_shown = 2;
optional bool buy_hab_shown = 3;
optional bool hire_vehicle_shown = 4;
optional bool q_num_shown = 5;
optional bool s_num_shown = 6;
optional bool contracts_tab_shown = 7;
optional bool contract_info_shown = 8;
optional bool join_coop_shown = 9;
optional bool switch_farm_shown = 10;
repeated bool tutorial_shown = 11;
}
optional Stats stats = 6;
message Stats {
repeated uint64 egg_totals_OLD = 1;
repeated double egg_totals = 8;
optional uint64 unlimited_chickens_uses = 7;
optional uint64 refill_uses = 2;
optional uint64 warp_1_uses = 4;
optional uint64 warp_8_uses = 5;
optional uint64 boosts_used = 13;
optional uint64 video_doubler_uses = 3;
optional uint64 drone_takedowns = 6;
optional uint64 drone_takedowns_elite = 10;
optional uint64 num_prestiges = 9;
optional uint64 num_piggy_breaks = 11;
optional uint64 iap_packs_purchased = 12;
optional bool piggy_full = 14;
optional bool piggy_found_full = 15;
optional double time_piggy_filled_realtime = 16;
optional double time_piggy_full_gametime = 17;
optional uint64 lost_piggy_increments = 18;
}
optional Game game = 7;
message Game {
optional uint32 current_farm = 22 [default = 0];
optional Egg max_egg_reached = 1;
optional uint64 golden_eggs_earned = 2;
optional uint64 golden_eggs_spent = 3;
optional uint64 uncliamed_golden_eggs = 16;
optional uint64 soul_eggs = 4;
optional uint64 unclaimed_soul_eggs = 17;
optional double soul_eggs_d = 34;
optional double unclaimed_soul_eggs_d = 35;
optional uint64 eggs_of_prophecy = 23;
optional uint64 unclaimed_eggs_of_prophecy = 24;
optional uint64 shell_scripts_earned = 38;
optional uint64 shell_scripts_spent = 39;
optional uint64 unclaimed_shell_scripts = 40;
optional double prestige_cash_earned = 5;
optional double prestige_soul_boost_cash = 33;
optional double lifetime_cash_earned = 6;
optional uint64 piggy_bank = 7;
optional bool piggy_full_alert_shown = 31;
optional uint32 permit_level = 8;
repeated ResearchItem epic_research = 9;
optional bool hyperloop_station = 29;
optional double next_daily_gift_time = 10;
optional uint32 last_daily_gift_collected_day = 20;
optional uint32 num_daily_gifts_collected = 28;
repeated NewsHeadline news = 11;
optional double last_news_time = 12;
optional double current_multiplier = 13;
optional double current_multiplier_expiration = 14;
repeated AchievementInfo achievements = 15;
repeated uint64 max_farm_size_reached = 18;
repeated uint32 egg_medal_level = 19;
optional bool long_idle_notification_set = 25;
optional double long_idle_notification_threshold = 26;
optional double long_idle_reward = 27;
repeated OwnedBoost boosts = 30;
optional uint32 total_time_cheats_detected = 32;
optional bool force_elite_contracts = 36;
optional double new_player_event_end_time = 37;
}
optional Artifacts artifacts = 14;
message Artifacts {
optional bool infusing = 1;
optional ArtifactInventoryItem item_being_infused = 2;
optional ArtifactSpec spec_being_infused = 13;
optional Egg egg_type_infusing = 3;
optional double infusing_eggs_required = 4;
optional double eggs_infused = 5;
optional double flow_percentage_artifacts = 6 [default = 0.5];
optional bool fueling_enabled = 7 [default = true];
optional bool tank_filling_enabled = 14;
optional uint32 tank_level = 15;
repeated double tank_fuels = 16;
repeated double tank_limits = 18;
optional ei.MissionInfo.Spaceship last_fueled_ship = 9;
optional double inventory_score = 10;
optional double crafting_xp = 17;
optional bool enabled = 11;
optional bool intro_shown = 12;
optional bool infusing_enabled_DEPRECATED = 8 [default = true];
}
optional Shells shells = 25;
message Shells {
optional bool intro_alert = 1;
optional bool contracts_intro_alert = 2;
repeated int32 num_new = 3;
}
optional Simulation sim = 8;
message Simulation {
optional Egg egg_type = 1;
optional FarmType farm_type = 19;
optional string contract_id = 20;
optional double cash_earned = 2;
optional double cash_spent = 3;
optional double unclaimed_cash = 4;
optional double last_step_time = 5;
optional uint64 num_chickens = 6;
optional uint64 num_chickens_unsettled = 7;
optional uint64 num_chickens_running = 8;
optional double eggs_laid = 9;
optional double eggs_shipped = 30;
optional double eggs_paid_for = 10;
optional uint32 silos_owned = 11;
repeated uint32 habs = 12;
repeated uint64 hab_population = 13;
repeated uint64 hab_population_indound = 14;
repeated double hab_incubator_popuplation = 15;
optional double hatchery_population = 16;
repeated uint32 vehicles = 17;
repeated uint32 train_length = 21;
repeated ResearchItem common_research = 18;
repeated ActiveBoost active_boosts = 22;
optional double last_cash_boost_time = 31;
optional uint32 time_cheats_detected = 23;
optional double time_cheat_debt = 24;
optional uint32 boost_tokens_received = 25;
optional uint32 boost_tokens_spent = 26;
optional uint32 boost_tokens_given = 28;
optional uint32 unclaimed_boost_tokens = 27;
optional double gametime_until_next_boost_token = 29;
}
repeated Simulation farms = 12;
optional Mission mission = 9;
message Mission {
optional string current_mission = 1;
optional double reference_value = 2;
repeated string current_missions = 4;
repeated MissionInfo missions = 3;
}
optional Misc misc = 10;
message Misc {
optional bool chicken_btn_pref_big = 1;
optional bool free_hatchery_refill_given = 2;
optional double last_share_farm_value = 3 [default = 10000000];
optional double last_share_swarm_farm_value = 4 [default = 10000000];
optional double last_share_swarm_size = 5 [default = 140];
optional uint64 last_prestige_alert_soul_eggs_DEPRECATED = 10 [default = 45];
optional uint64 friend_rank = 6;
optional uint64 friend_rank_pop = 7;
optional uint64 global_rank = 8;
optional uint64 global_rank_pop = 9;
optional bool challenges_alert = 20;
optional bool trophy_alert = 11;
optional bool ar_alert = 12;
optional bool contracts_alert = 13;
optional bool contracts_alert_v2 = 21;
optional bool coop_alert = 14;
optional bool coop_alert_v2 = 22;
optional bool switch_alert = 15;
optional bool egg_of_prophecy_alert = 16;
optional bool boost_token_alert = 17;
optional bool soul_egg_alert = 18;
optional bool backup_reminder_alert = 19;
optional bool max_button_alert = 23;
optional bool mission_target_alert = 24;
optional bool colleggtibles_alert = 25;
}
optional MyContracts contracts = 13;
optional ArtifactsDB artifacts_db = 15;
optional ShellDB shell_db = 24;
repeated string read_mail_ids = 23;
optional MailState mail_state = 27;
optional uint64 checksum = 100;
optional string signature = 101;
message ResearchItem {
optional string id = 1;
optional uint32 level = 2;
}
message NewsHeadline {
optional string id = 1;
optional bool read = 2;
}
message AchievementInfo {
optional string id = 1;
optional bool achieved = 2;
}
message ActiveBoost {
optional string boost_id = 1;
optional double time_remaining = 2;
optional double reference_value = 3;
}
message OwnedBoost {
optional string boost_id = 1;
optional uint32 count = 2;
}
message MissionInfo {
optional string id = 1;
optional bool completed = 2;
optional double reference_value = 3;
}
}
message EggIncFirstContactRequest {
optional BasicRequestInfo rinfo = 8;
optional string ei_user_id = 4;
optional string user_id = 1;
optional string game_services_id = 7;
optional string device_id = 5;
optional string username = 6;
optional uint32 client_version = 2;
optional Platform platform = 3;
}
message EggIncFirstContactResponse {
optional string ei_user_id = 2;
repeated string ids_transferred = 3;
optional uint32 error_code = 4 [default = 0];
optional string error_message = 5;
optional Backup backup = 1;
enum ErrorCodes {
NO_ERROR = 0;
EXISTING_USER_W_GAMER_ID = 1;
USER_NOT_FOUND = 2;
BACKUP_CONFLICT = 3;
}
}
message EggIncAdConfig {
repeated AdNetwork network_priority = 1;
}
message DailyGiftInfo {
optional uint32 current_day = 1;
optional double seconds_to_next_day = 2;
}
message SalesInfoRequest {
optional string user_id = 1;
optional bool piggy_full = 2;
optional bool piggy_found_full = 3;
optional double seconds_full_realtime = 4;
optional double seconds_full_gametime = 5;
optional uint32 lost_increments = 7;
optional uint32 current_client_version = 10;
}
message IAPSaleEntry {
optional string product_id = 1;
optional double seconds_remaining = 2;
optional string discount_string = 3;
optional string sale_id = 4;
}
message SalesInfo {
repeated IAPSaleEntry sales = 1;
}
message EggIncEvent {
optional string identifier = 1;
optional double seconds_remaining = 2;
optional string type = 3;
optional double multiplier = 4;
optional string subtitle = 5;
optional double start_time = 6;
optional double duration = 7;
optional bool cc_only = 8;
}
message EggIncCurrentEvents {
repeated EggIncEvent events = 1;
}
message DeviceInfo {
optional string device_id = 1;
optional string advertising_id = 13;
optional string platform = 2;
optional string form_factor = 3;
optional string device_name = 4;
optional string platform_version = 5;
optional string locale_country = 6;
optional string locale_language = 7;
optional string gpu_vendor = 8;
optional string gpu_model = 9;
optional string device_bucket = 10;
optional uint32 screen_width = 11;
optional uint32 screen_height = 12;
}
message AppInfo {
optional string version_str = 1;
optional uint32 sessions = 2;
optional uint32 num_prestiges = 3;
optional uint64 soul_eggs = 4;
optional uint32 current_egg = 5;
optional uint64 gold_earned = 6;
optional uint64 gold_spent = 7;
optional uint32 current_mission = 8;
optional uint32 piggy_size = 9;
optional uint64 num_piggy_breaks = 10;
optional uint64 verified_piggy_breaks = 29;
optional uint64 iap_packs_purchased = 11;
optional uint32 permit_level = 12;
optional uint64 video_doubler_uses = 15;
optional uint64 drone_takedowns = 18;
optional uint64 drone_takedowns_elite = 19;
optional bool trophies_unlocked = 20;
optional float egg_level = 21;
optional float struggle_factor = 22;
optional bool piggy_full = 23;
optional bool piggy_found_full = 24;
optional double time_piggy_full_realtime = 25;
optional double time_piggy_full_gametime = 26;
optional uint64 lost_piggy_increments = 27;
optional string sale_id = 28;
optional uint64 unlimited_chickens_uses = 13;
optional uint64 refill_uses = 14;
optional uint64 short_warp_uses = 16;
optional uint64 long_warp_uses = 17;
}
message ActionKeyValuePair {
required string key = 1;
required string value = 2;
}
message GenericAction {
optional string user_id = 1;
optional bool cc_user = 9;
optional string advertising_id = 7;
optional float approx_time_DEP = 2;
optional double approx_time = 8;
optional string action_name = 3;
repeated ActionKeyValuePair data = 4;
optional AppInfo app = 5;
optional DeviceInfo device = 6;
}
message GenericActionBatchRequest {
optional BasicRequestInfo rinfo = 1;
repeated GenericAction actions = 2;
}
message VerifyPurchaseRequest {
optional BasicRequestInfo rinfo = 6;
optional string sku = 1;
optional string transaction_id = 2;
optional string original_transaction_id = 8;
optional string receipt = 3;
optional string platform = 4;
optional bool sandbox = 7;
optional GenericAction log = 5;
}
message VerifyPurchaseResponse {
optional bool verified = 1;
optional string message = 2;
}
message CurrencyFlowLog {
optional string user_id = 1;
optional double approx_time = 2;
optional RewardType currency = 3;
optional int64 amount = 4;
optional string location = 5;
optional string version = 6;
optional string platform = 7;
optional double soul_eggs = 8;
optional uint64 tickets_spent = 9;
optional uint64 gold_spent = 10;
}
message CurrencyFlowBatchRequest {
optional BasicRequestInfo rinfo = 2;
repeated CurrencyFlowLog logs = 1;
}
message Reward {
optional RewardType reward_type = 1;
optional string reward_sub_type = 2;
optional double reward_amount = 3;
}
message GameModifier {
optional GameDimension dimension = 1;
enum GameDimension {
INVALID = 0;
EARNINGS = 1;
AWAY_EARNINGS = 2;
INTERNAL_HATCHERY_RATE = 3;
EGG_LAYING_RATE = 4;
SHIPPING_CAPACITY = 5;
HAB_CAPACITY = 6;
VEHICLE_COST = 7;
HAB_COST = 8;
RESEARCH_COST = 9;
}
optional double value = 2;
optional string description = 3;
}
message CustomEgg {
optional string identifier = 1;
optional string name = 2;
optional string description = 3;
optional double value = 4;
optional string hatchery_id = 5;
optional double hatchery_max_x = 6;
optional DLCItem icon = 7;
optional double icon_width = 21;
optional double icon_height = 22;
repeated GameModifier buffs = 8;
}
message Contract {
optional string identifier = 1;
optional string name = 9;
optional string description = 10;
optional Egg egg = 2;
optional string custom_egg_id = 25;
repeated Goal goals = 3;
message Goal {
optional GoalType type = 1;
optional double target_amount = 2;
optional RewardType reward_type = 3;
optional string reward_sub_type = 4;
optional double reward_amount = 5;
optional double target_soul_eggs = 6;
}
repeated GoalSet goal_sets = 16;
message GoalSet {
repeated Goal goals = 1;
}
repeated GradeSpec grade_specs = 20;
message GradeSpec {
optional PlayerGrade grade = 1;
repeated Goal goals = 2;
repeated GameModifier modifiers = 3;
optional double length_seconds = 4;
}
optional string season_id = 23;
optional bool coop_allowed = 4;
optional uint32 max_coop_size = 5;
optional uint32 max_boosts = 12;
optional double minutes_per_token = 15 [default = 60];
optional double chicken_run_cooldown_minutes = 18 [default = 180];
optional double start_time = 17;
optional double expiration_time = 6;
optional double length_seconds = 7;
optional double max_soul_eggs = 13;
optional uint32 min_client_version = 14;
optional bool leggacy = 19;
optional bool cc_only = 22;
repeated string default_shell_ids = 24;
optional bool debug = 11;
optional string key = 21;
enum PlayerGrade {
GRADE_UNSET = 0;
GRADE_C = 1;
GRADE_B = 2;
GRADE_A = 3;
GRADE_AA = 4;
GRADE_AAA = 5;
}
}
message ContractSeasonGoal {
optional double cxp = 1;
optional RewardType reward_type = 3;
optional string reward_sub_type = 4;
optional double reward_amount = 5;
}
message ContractSeasonRewardConfirmationRequest {
optional BasicRequestInfo rinfo = 1;
optional string season_id = 2;
optional ContractSeasonGoal goal = 3;
}
message ContractSeasonInfo {
optional string id = 1;
optional string name = 3;
optional double start_time = 4;
repeated GoalSet grade_goals = 2;
message GoalSet {
optional Contract.PlayerGrade grade = 1;
repeated ContractSeasonGoal goals = 2;
}
}
message ContractSeasonInfos {
repeated ContractSeasonInfo infos = 1;
}
message ContractPlayerInfo {
optional Contract.PlayerGrade grade = 1;
optional double total_cxp = 2;
optional double season_cxp = 13;
optional double grade_score = 7;
optional double target_grade_score = 9;
optional double soul_power = 10;
optional double target_soul_power = 8;
optional double grade_progress = 12;
repeated ContractEvaluation.PoorBehavior issues = 11;
optional double issue_score = 14;
optional Status status = 3;
enum Status {
UNKNOWN = 0;
CALCULATING = 1;
OUT_OF_DATE = 2;
INCOMPLETE = 4;
COMPLETE = 3;
}
optional double last_evaluation_time = 4;
optional string last_evaluation_version = 5;
repeated ContractEvaluation unread_evaluations = 6;
repeated SeasonProgress season_progress = 15;
message SeasonProgress {
optional string season_id = 1;
optional bool active_DEP = 2;
optional Contract.PlayerGrade starting_grade = 3;
optional double total_cxp = 4;
optional double cxp_last_reward_given = 5;
}
}
message ContractEvaluation {
optional string contract_identifier = 40;
optional string coop_identifier = 41;
optional double cxp = 1;
optional bool replay = 24;
optional double cxp_change = 25;
optional int32 grade_performance = 2;
optional int32 old_league = 9;
optional bool old_goals = 10;
optional Contract.PlayerGrade grade = 3;
optional double contribution_ratio = 4;
optional double completion_percent = 5;
optional double original_length = 11;
optional uint32 coop_size = 18;
optional bool solo = 26;
optional double soul_power = 23;
optional double last_contribution_time = 22;
optional double completion_time = 6;
optional uint32 chicken_runs_sent = 7;
optional uint32 gift_tokens_sent = 8;
optional uint32 gift_tokens_received = 15;
optional double gift_token_value_sent = 28;
optional double gift_token_value_received = 29;
optional uint32 boost_token_allotment = 16;
optional double buff_time_value = 17;
optional double teamwork_score = 13;
optional double other_bonuses = 14;
optional bool counted_in_season = 20;
optional string season_id = 21;
optional uint32 time_cheats = 27;
repeated PoorBehavior issues = 19;
enum PoorBehavior {
NONE = 0;
LOW_CONTRIBUTION = 1;
BAD_CONTRIBUTION = 2;
DISHONORABLY_DISCHARGED = 3;
POOR_TEAMWORK = 4;
ABANDONED_COOP = 5;
TIME_CHEAT = 6;
}
repeated string notes = 12;
optional string version = 50;
optional double evaluation_start_time = 51;
optional Status status = 52;
enum Status {
UNKNOWN = 0;
PENDING = 1;
EVALUATING = 2;
COMPLETE = 3;
}
}
message ContractCitation {
optional ContractEvaluation.PoorBehavior issue = 1;
optional double timestamp = 2;
optional Contract.PlayerGrade grade = 3;
}
message ContractEvaluationBatch {
repeated Pair evals = 1;
message Pair {
optional string user_id = 1;
optional ContractEvaluation cev = 2;
}
}
message CoopCompletionSnapshot {
repeated ContributorSnapshot contributors = 1;
message ContributorSnapshot {
optional double contribution = 1;
optional double last_contribution_time = 6;
optional bool finalized = 7;
optional double soul_power = 2;
optional string user_id = 3;
optional uint32 tokens = 4;
optional uint32 tokens_spent = 5;
}
}
message BasicRequestInfo {
optional string ei_user_id = 1;
optional uint32 client_version = 2;
optional string version = 3;
optional string build = 4;
optional string platform = 5;
optional string country = 6;
optional string language = 7;
optional bool debug = 8;
}
message ContractSimConfig {
repeated ContractGradeSimConfig grade_configs = 1;
message ContractGradeSimConfig {
optional Contract.PlayerGrade grade = 1;
repeated GoalParams goal_params = 2;
message GoalParams {
optional double target_se = 1;
optional double cps_mult = 2;
optional double elr_mult = 7;
optional double earnings_mult = 3;
optional double time_efficacy = 4;
optional double hab_capacity_mult = 5;
optional double epic_research_budget = 6;
}
}
}
message ContractSimPoll {
optional uint32 client_version = 1;
}
message ContractSimPollResponse {
optional Contract contract_to_simulate = 1;
optional ContractSimConfig sim_config = 2;
}
message ContractSimResultUpdate {
optional string contract_id = 1;
repeated GoalInfo goal_infos = 2;
message GoalInfo {
optional Contract.PlayerGrade grade = 1;
optional uint32 goal_index = 2;
optional double projected_eggs_laid = 3;
}
}
message ContractsRequest {
optional double soul_eggs = 1;
optional uint32 client_version = 5;
optional string user_id = 2;
}
message ContractsResponse {
repeated Contract contracts = 1;
repeated CustomEgg custom_eggs = 6;
optional string warning_message = 4;
optional double total_eop = 5;
optional double server_time = 2;
optional uint32 max_eop = 3 [default = 1000];
optional ContractSeasonInfo current_season = 7;
}
message ContractCoopStatusRequest {
optional BasicRequestInfo rinfo = 5;
optional string contract_identifier = 1;
optional string coop_identifier = 2;
optional string user_id = 3;
optional uint32 client_version = 4;
optional double client_timestamp = 6;
}
message FarmProductionParams {
optional double farm_population = 1;
optional double farm_capacity = 2;
optional double elr = 3;
optional double ihr = 4;
optional double sr = 5;
optional double delivered = 6;
}
message PlayerFarmInfo {
optional uint32 client_version = 20;
optional double soul_eggs = 1;
optional uint64 eggs_of_prophecy = 2;
optional uint32 permit_level = 3;
optional bool hyperloop_station = 4;
repeated uint32 egg_medal_level = 5;
repeated Backup.ResearchItem epic_research = 6;
optional Egg egg_type = 7;
optional double cash_on_hand = 8;
repeated uint32 habs = 9;
repeated uint64 hab_population = 10;
repeated uint64 hab_capacity = 21;
repeated uint32 vehicles = 11;
repeated uint32 train_length = 12;
optional uint32 silos_owned = 13;
repeated Backup.ResearchItem common_research = 14;
repeated Backup.ActiveBoost active_boosts = 15;
optional uint32 boost_tokens_on_hand = 16;
repeated CompleteArtifact equipped_artifacts = 17;
optional uint64 artifact_inventory_score = 18;
optional ShellDB.FarmConfiguration farm_appearance = 19;
optional double timestamp = 22;
}
message ContractCoopStatusResponse {
optional ResponseStatus response_status = 19;
enum ResponseStatus {
NO_ERROR = 0;
MISSING_USER = 1;
MISSING_COOP_ID = 2;
MISSING_CONTRACT_ID = 3;
MEMBERSHIP_NOT_FOUND = 4;
COOP_NOT_FOUND = 5;
CONTRACT_NOT_FOUND = 6;
INVALID_MEMBERSHIP = 7;
NO_HTTP_RESPONSE = 500;
}
optional string contract_identifier = 1;
optional double total_amount = 2;
optional string coop_identifier = 3;
optional Contract.PlayerGrade grade = 17;
repeated ContributionInfo contributors = 4;
message ContributionInfo {
optional string uuid = 21;
optional string user_id = 1;
optional string user_name = 2;
optional string contract_identifier = 19;
optional double contribution_amount = 3;
optional double contribution_rate = 6;
optional double soul_power = 11;
optional FarmProductionParams production_params = 15;
optional PlayerFarmInfo farm_info = 18;
optional int32 rank_change = 8;
optional bool recently_active = 23;
optional bool active = 4;
optional bool cc_member = 24;
optional bool leech = 16;
optional bool finalized = 22;
optional bool time_cheat_detected = 7;
optional Platform platform = 5;
optional string push_id = 9;
optional uint32 ban_votes = 10;
optional bool autojoined = 17;
optional uint32 boost_tokens = 12;
optional uint32 boost_tokens_spent = 14;
repeated CoopBuffState buff_history = 13;
optional double chicken_run_cooldown = 20;
}
optional bool auto_generated = 8;
optional bool public = 10;
optional string creator_id = 9;
optional double seconds_remaining = 5;
optional double seconds_since_all_goals_achieved = 16;
optional bool all_goals_achieved = 14;
optional bool all_members_reporting = 6;
optional double grace_period_seconds_remaining = 7;
optional bool cleared_for_exit = 15;
repeated CoopGift gifts = 11;
message CoopGift {
optional string user_id = 1;
optional string user_name = 3;
optional uint32 amount = 2;
optional string tracking = 4;
}
repeated ChickenRun chicken_runs = 13;
message ChickenRun {
optional string user_id = 1;
optional string user_name = 3;
optional uint64 amount = 2;
}
optional double client_timestamp = 12;
optional double last_sync_DEP = 18;
enum MemberStatus {
VALID = 0;
KICKED_INACTIVE = 1;
KICKED_PRIVATE = 2;
KICKED_CHEATS = 3;
KICKED_LEECH = 4;
}
enum Status {
UNKNOWN = 0;
LOBBY = 1;
ACTIVE = 2;
COMPLETE = 3;
FINALIZED = 4;
}
}
message LocalContract {
optional Contract contract = 1;
optional string coop_identifier = 2;
optional bool accepted = 7;
optional double time_accepted = 3;
optional bool cancelled = 4;
optional bool new = 8;
optional double coop_shared_end_time = 5;
optional double coop_simulation_end_time = 22;
optional double coop_grace_period_end_time = 9;
optional bool coop_contribution_finalized = 10;
optional double coop_last_uploaded_contribution = 11;
optional string coop_user_id = 13;
optional bool coop_share_farm = 17;
optional double last_amount_when_reward_given = 6;
optional uint32 num_goals_achieved = 14;
optional double max_farm_size_reached = 23;
optional uint32 boosts_used = 12;
optional bool points_replay = 20;
optional uint32 league = 15;
optional Contract.PlayerGrade grade = 18;
optional double last_nag_time = 16;
optional ContractEvaluation evaluation = 19;
repeated string reported_uuids = 21;
}
message MyContracts {
repeated string contract_ids_seen = 3;
repeated LocalContract contracts = 1;
repeated LocalContract archive = 2;
repeated ContractCoopStatusResponse current_coop_statuses = 4;
optional ContractPlayerInfo last_cpi = 5;
optional bool initial_grade_revealed = 6;
optional double last_grade_progress_shown = 7;
optional bool show_advanced_evaluations = 8;
repeated CustomEgg custom_egg_info = 9;
}
message QueryCoopRequest {
optional BasicRequestInfo rinfo = 5;
optional string contract_identifier = 1;
optional string coop_identifier = 2;
optional uint32 league = 4;
optional Contract.PlayerGrade grade = 6;
optional uint32 client_version = 3;
}
message QueryCoopResponse {
optional bool exists = 1;
optional bool full = 2;
optional bool expired = 5;
optional bool different_league = 4;
optional bool different_grade = 6;
optional bool cc_only = 7;
optional bool banned = 3;
}
message CreateCoopRequest {
optional BasicRequestInfo rinfo = 10;
optional string contract_identifier = 1;
optional string coop_identifier = 2;
optional bool public = 13;
optional bool cc_only = 14;
optional bool allow_all_grades = 16;
optional double seconds_remaining = 3;
optional string user_id = 4;
optional string user_name = 5;
optional double soul_power = 8;
optional double eop = 11;
optional uint32 league = 9;
optional Contract.PlayerGrade grade = 12;
optional bool points_replay = 15;
optional Platform platform = 6;
optional uint32 client_version = 7;
}