-
Notifications
You must be signed in to change notification settings - Fork 301
/
dota_gcmessages_client_candy_shop.proto
278 lines (236 loc) · 7.49 KB
/
dota_gcmessages_client_candy_shop.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
import "steammessages.proto";
import "dota_shared_enums.proto";
import "dota_gcmessages_common.proto";
import "dota_gcmessages_webapi.proto";
import "gcsdk_gcmessages.proto";
import "base_gcmessages.proto";
import "econ_gcmessages.proto";
import "dota_gcmessages_client.proto";
import "valveextensions.proto";
enum ECandyShopAuditAction {
k_ECandyShopAuditAction_Invalid = 0;
k_ECandyShopAuditAction_SupportModify = 1;
k_ECandyShopAuditAction_PurchaseReward = 2;
k_ECandyShopAuditAction_OpenBags = 3;
k_ECandyShopAuditAction_RerollRewards = 4;
k_ECandyShopAuditAction_DoVariableExchange = 5;
k_ECandyShopAuditAction_DoExchange = 6;
k_ECandyShopAuditAction_DEPRECATED_EventActionGrantInventorySizeIncrease = 7;
k_ECandyShopAuditAction_EventActionGrantRerollChargesIncrease = 8;
k_ECandyShopAuditAction_EventActionGrantUpgrade_InventorySize = 100;
k_ECandyShopAuditAction_EventActionGrantUpgrade_RewardShelf = 101;
k_ECandyShopAuditAction_EventActionGrantUpgrade_ExtraExchangeRecipe = 102;
}
enum ECandyShopRewardType {
k_eCandyShopRewardType_None = 0;
k_eCandyShopRewardType_Item = 1;
k_eCandyShopRewardType_EventAction = 2;
k_eCandyShopRewardType_EventPoints = 3;
}
message CMsgCandyShopCandyCount {
optional uint32 candy_type = 1;
optional uint32 candy_count = 2;
}
message CMsgCandyShopCandyQuantity {
repeated .CMsgCandyShopCandyCount candy_counts = 1;
}
message CMsgCandyShopExchangeRecipe {
optional uint32 recipe_id = 1;
optional .CMsgCandyShopCandyQuantity input = 2;
optional .CMsgCandyShopCandyQuantity output = 3;
}
message CMsgCandyShopRewardData_Item {
optional uint32 item_def = 1;
}
message CMsgCandyShopRewardData_EventAction {
optional .EEvent event_id = 1 [default = EVENT_ID_NONE];
optional uint32 action_id = 2;
}
message CMsgCandyShopRewardData_EventPoints {
optional .EEvent event_id = 1 [default = EVENT_ID_NONE];
optional uint32 points = 2;
}
message CMsgCandyShopReward {
optional uint32 reward_id = 1;
optional uint32 reward_option_id = 2;
optional .CMsgCandyShopCandyQuantity price = 3;
optional .ECandyShopRewardType reward_type = 4 [default = k_eCandyShopRewardType_None];
optional .CMsgCandyShopRewardData_Item item_data = 5;
optional .CMsgCandyShopRewardData_EventAction event_action_data = 6;
optional .CMsgCandyShopRewardData_EventPoints event_points_data = 7;
}
message CMsgCandyShopUserData {
optional uint32 inventory_max = 1;
optional .CMsgCandyShopCandyQuantity inventory = 2;
optional uint32 exchange_recipe_max = 3;
optional fixed32 exchange_reset_timestamp = 4;
repeated .CMsgCandyShopExchangeRecipe exchange_recipes = 5;
optional uint32 active_reward_max = 6;
repeated .CMsgCandyShopReward active_rewards = 7;
optional uint32 reroll_charges_max = 8;
optional uint32 reroll_charges = 9;
}
message CMsgClientToGCCandyShopGetUserData {
optional uint32 candy_shop_id = 1;
}
message CMsgClientToGCCandyShopGetUserDataResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eExpiredShop = 6;
}
optional .CMsgClientToGCCandyShopGetUserDataResponse.EResponse response = 1 [default = k_eInternalError];
optional .CMsgCandyShopUserData user_data = 2;
}
message CMsgGCToClientCandyShopUserDataUpdated {
optional uint32 candy_shop_id = 1;
optional .CMsgCandyShopUserData user_data = 2;
}
message CMsgClientToGCCandyShopPurchaseReward {
optional uint32 candy_shop_id = 1;
optional uint64 reward_id = 2;
}
message CMsgClientToGCCandyShopPurchaseRewardResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eInvalidReward = 6;
k_eNotEnoughCandy = 7;
k_eExpiredShop = 8;
}
optional .CMsgClientToGCCandyShopPurchaseRewardResponse.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopOpenBags {
optional uint32 candy_shop_id = 1;
optional uint32 bag_count = 2;
}
message CMsgClientToGCCandyShopOpenBagsResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eInvalidItem = 6;
k_eNotEnoughBags = 7;
k_eNotEnoughSpace = 8;
k_eExpiredShop = 9;
}
optional .CMsgClientToGCCandyShopOpenBagsResponse.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDoExchange {
optional uint32 candy_shop_id = 1;
optional uint32 recipe_id = 2;
}
message CMsgClientToGCCandyShopDoExchangeResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eNotEnoughCandy = 6;
k_eInvalidRecipe = 7;
k_eNotEnoughSpace = 8;
k_eExpiredShop = 9;
}
optional .CMsgClientToGCCandyShopDoExchangeResponse.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDoVariableExchange {
optional uint32 candy_shop_id = 1;
optional .CMsgCandyShopCandyQuantity input = 2;
optional .CMsgCandyShopCandyQuantity output = 3;
}
message CMsgClientToGCCandyShopDoVariableExchangeResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eNotEnoughCandy = 6;
k_eInvalidRecipe = 7;
k_eNotEnoughSpace = 8;
k_eExpiredShop = 9;
}
optional .CMsgClientToGCCandyShopDoVariableExchangeResponse.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopRerollRewards {
optional uint32 candy_shop_id = 1;
}
message CMsgClientToGCCandyShopRerollRewardsResponse {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eInvalidShop = 5;
k_eNoRerollCharges = 6;
k_eExpiredShop = 7;
k_eShopNotOpen = 8;
}
optional .CMsgClientToGCCandyShopRerollRewardsResponse.EResponse response = 1 [default = k_eInternalError];
}
message CCandyShopDev {
enum EResponse {
k_eInternalError = 0;
k_eSuccess = 1;
k_eTooBusy = 2;
k_eDisabled = 3;
k_eTimeout = 4;
k_eNotAllowed = 5;
k_eInvalidShop = 6;
k_eNotEnoughSpace = 7;
}
}
message CMsgClientToGCCandyShopDevGrantCandy {
optional uint32 candy_shop_id = 1;
optional .CMsgCandyShopCandyQuantity candy_quantity = 2;
}
message CMsgClientToGCCandyShopDevGrantCandyResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDevClearInventory {
optional uint32 candy_shop_id = 1;
}
message CMsgClientToGCCandyShopDevClearInventoryResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDevGrantCandyBags {
optional uint32 candy_shop_id = 1;
optional uint32 quantity = 2;
}
message CMsgClientToGCCandyShopDevGrantCandyBagsResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDevShuffleExchange {
optional uint32 candy_shop_id = 1;
}
message CMsgClientToGCCandyShopDevShuffleExchangeResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDevGrantRerollCharges {
optional uint32 candy_shop_id = 1;
optional uint32 reroll_charges = 2;
}
message CMsgClientToGCCandyShopDevGrantRerollChargesResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}
message CMsgClientToGCCandyShopDevResetShop {
optional uint32 candy_shop_id = 1;
}
message CMsgClientToGCCandyShopDevResetShopResponse {
optional .CCandyShopDev.EResponse response = 1 [default = k_eInternalError];
}