summaryrefslogtreecommitdiff
path: root/game/shared/econ/econ_gcmessages.proto
blob: 19cb4879a7a750e1c4a3749d1ad17a163b3d90b5 (plain) (blame)
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
//====== Copyright 1996-2010, Valve Corporation, All rights reserved. =======
//
// Purpose: The file defines our Google Protocol Buffers which are used in over 
// the wire messages between servers as well as between the TF GC and TF gameservers
// and clients.
//
//=============================================================================

// We care more about speed than code size
option optimize_for = SPEED;

// We don't use the service generation functionality
option cc_generic_services = false;


// 
// STYLE NOTES:
//
// Use CamelCase CMsgMyMessageName style names for messages.
// 
// Use lowercase _ delimited names like my_steam_id for field names, this is non-standard for Steam,
// but plays nice with the Google formatted code generation.  
// 
// Try not to use required fields ever. Only do so if you are really really sure you'll never want them removed. 
// Optional should be preffered as it will make versioning easier and cleaner in the future if someone refactors
// your message and wants to remove or rename fields.
//
// Use fixed64 for JobId_t, GID_t, or SteamID.  This is appropriate for any field that is normally
// going to be larger than 2^56.  Otherwise use int64 for 64 bit values that are frequently smaller
// than 2^56 as it will safe space on the wire in those cases.
//
// Similar to fixed64, use fixed32 for RTime32 or other 32 bit values that are frequently larger than
// 2^28.  It will save space in those cases, otherwise use int32 which will safe space for smaller values.
// An exception to this rule for RTime32 is if the value will frequently be zero rather than set to an actual 
// time.
//

import "steammessages.proto";

enum EGCItemMsg
{
	k_EMsgGCBase						 = 1000;
	k_EMsgGCSetSingleItemPosition		 = 1001; // uses old-school struct for a single item.  Prefer k_EMsgGCSetItemPositions
	k_EMsgGCCraft						 = 1002;
	k_EMsgGCCraftResponse				 = 1003;
	k_EMsgGCDelete						 = 1004;
	k_EMsgGCVerifyCacheSubscription		 = 1005; // sent by gameservers who don't have a cache they expect
	k_EMsgGCNameItem					 = 1006;
	k_EMsgGCUnlockCrate					 = 1007; // used by decoder rings to unlock supply crates
	k_EMsgGCUnlockCrateResponse			 = 1008;
	k_EMsgGCPaintItem					 = 1009; // used by paint cans to paint items
	k_EMsgGCPaintItemResponse			 = 1010;
	k_EMsgGCGoldenWrenchBroadcast		 = 1011; // sent to all users when a Golden Wrench is crafted or deleted
	k_EMsgGCMOTDRequest					 = 1012; // client is asking for a set of MOTDs
	k_EMsgGCMOTDRequestResponse			 = 1013;

//	k_EMsgGCAddItemToSocket_DEPRECATED				 = 1014;
//	k_EMsgGCAddItemToSocketResponse_DEPRECATED		 = 1015;
//	k_EMsgGCAddSocketToBaseItem_DEPRECATED			 = 1016;
//	k_EMsgGCAddSocketToItem_DEPRECATED				 = 1017;
//	k_EMsgGCAddSocketToItemResponse_DEPRECATED		 = 1018;

	k_EMsgGCNameBaseItem				 = 1019;
	k_EMsgGCNameBaseItemResponse		 = 1020;

	k_EMsgGCRemoveSocketItem_DEPRECATED				 = 1021;
	k_EMsgGCRemoveSocketItemResponse_DEPRECATED		 = 1022;

	k_EMsgGCCustomizeItemTexture		 = 1023;
	k_EMsgGCCustomizeItemTextureResponse = 1024;
	k_EMsgGCUseItemRequest				 = 1025;	// client/game server => GC
	k_EMsgGCUseItemResponse				 = 1026;	// GC => client/game server

//	k_EMsgGCSpawnItem_DEPRECATED		 = 1028;	// GC => game server
	k_EMsgGCRespawnPostLoadoutChange	 = 1029;	// client => GC => game server
	k_EMsgGCRemoveItemName				 = 1030;	// client => GC
	k_EMsgGCRemoveItemPaint				 = 1031;	// client => GC
	k_EMsgGCGiftWrapItem				 = 1032;   // client => GC (the player requests an item to be gift wrapped)
	k_EMsgGCGiftWrapItemResponse		 = 1033;   // GC => client (confirmation that an item was gift wrapped)
	k_EMsgGCDeliverGift					 = 1034;
	k_EMsgGCDeliverGiftResponseReceiver	 = 1036;
	k_EMsgGCUnwrapGiftRequest			 = 1037;
	k_EMsgGCUnwrapGiftResponse			 = 1038;
	k_EMsgGCSetItemStyle				 = 1039;

	k_EMsgGCUsedClaimCodeItem			 = 1040;
	k_EMsgGCSortItems					 = 1041;

	k_EMsgGC_RevolvingLootList_DEPRECATED= 1042; // GC => client; revolving loot list

	k_EMsgGCLookupAccount				 = 1043; // client is requesting a lookup of an account
	k_EMsgGCLookupAccountResponse		 = 1044;
	k_EMsgGCLookupAccountName			 = 1045; // old-school struct for single account.  client is requesting a lookup of an account name
	k_EMsgGCLookupAccountNameResponse	 = 1046;

	//k_EMsgGCStartupCheck				 = 1047; // GC => client
	//k_EMsgGCStartupCheckResponse		 = 1048; // client => GC
	k_EMsgGCUpdateItemSchema			 = 1049; // GC => client
	k_EMsgGCRequestInventoryRefresh		 = 1050; // client => GC

	k_EMsgGCRemoveCustomTexture			 = 1051; // client => GC
	k_EMsgGCRemoveCustomTextureResponse	 = 1052; // GC => client
	k_EMsgGCRemoveMakersMark			 = 1053; // client => GC
	k_EMsgGCRemoveMakersMarkResponse	 = 1054; // GC => client
	k_EMsgGCRemoveUniqueCraftIndex		 = 1055; // client => GC
	k_EMsgGCRemoveUniqueCraftIndexResponse = 1056; // GC => client

	k_EMsgGCSaxxyBroadcast				 = 1057; // sent to all users when a Saxxy is deleted

	k_EMsgGCBackpackSortFinished		 = 1058; // GC => client
	k_EMsgGCAdjustItemEquippedState		 = 1059; // GC => client
//	k_EMsgGCRequestItemSchemaData_DEPRECATED	 = 1060; // client => GC  Should only be used in dev universe

	k_EMsgGCCollectItem					 = 1061;

	k_EMsgGCItemAcknowledged			 = 1062; // sent to a dedicated server when a client acknowledges an item

	// item presets
	k_EMsgGCPresets_SelectPresetForClass = 1063; // client => GC
	k_EMsgGCPresets_SetItemPosition		 = 1064; // client => GC

	// Abuse reporting
	k_EMsgGC_ReportAbuse				 = 1065; // client => GC
	k_EMsgGC_ReportAbuseResponse		 = 1066; // GC => client

	// more item presets
	k_EMsgGCPresets_SelectPresetForClassReply = 1067; // GC => client

	// item naming broadcast
	k_EMsgGCNameItemNotification		 = 1068; // GC => client

// !FIXME! DOTAMERGE
// these messages are particular to DOTA, or
// conflict with corresponding TF messages
//
//	k_EMsgGCGiftedItems					 = 1027;	// GC => game server
//	k_EMsgGCDeliverGiftResponseGiver	 = 1035;
//
//	k_EMsgGCApplyConsumableEffects		 = 1069;
//
//	k_EMsgGCConsumableExhausted			 = 1070;
//	k_EMsgGCApplyStrangePart			 = 1073; // GC => client
//	k_EMsgGCShowItemsPickedUp			 = 1071;
//
//	// generic broadcast
//	k_EMsgGCClientDisplayNotification	 = 1072; // GC => client
//
////	OBSOLETE k_EMsgGC_IncrementKillCountAttribute = 1074; // client => GC
//	k_EMsgGC_IncrementKillCountResponse	 = 1075; // GC => client
//	k_EMsgGCApplyPennantUpgrade			 = 1076; // GC => client
//
//	k_EMsgGCSetItemPositions			 = 1077; // client => GC; protobuf batched item position update
//
//	k_EMsgGCUnlockItemStyle	=					1080;
//	k_EMsgGCUnlockItemStyleResponse	=			1081;
//
//	k_EMsgGCFulfillDynamicRecipeComponent			= 1082;
//	k_EMsgGCFulfillDynamicRecipeComponentResponse	= 1083;
//	k_EMsgGCApplyEggEssence				= 1078;
//	k_EMsgGCNameEggEssenceResponse		 = 1079;
//
//	k_EMsgGCClientRequestMarketData			= 1084;
//	k_EMsgGCClientRequestMarketDataResponse	= 1085;
//	k_EMsgGCExtractGems =						1086;
//	k_EMsgGCAddSocket =							1087;	// client -> GC
//	k_EMsgGCAddItemToSocket =					1088;	// client -> GC
//	k_EMsgGCAddItemToSocketResponse =			1089;	// GC -> client
//	k_EMsgGCAddSocketResponse =					1090;	// GC -> client
//
//	k_EMsgGCResetStrangeGemCount =				1091;	// client -> GC

// << DOTA

// TF >>

	// generic broadcast
	k_EMsgGCClientDisplayNotification	 = 1069; // GC => client

	k_EMsgGCApplyStrangePart			 = 1070; // GC => client
	k_EMsgGC_IncrementKillCountAttribute = 1071; // client => GC
	k_EMsgGC_IncrementKillCountResponse	 = 1072; // GC => client
	k_EMsgGCRemoveStrangePart			 = 1073; // GC => client
	k_EMsgGCResetStrangeScores			 = 1074; // client => GC

	k_EMsgGCGiftedItems					 = 1075; // GC => game server

	k_EMsgGCApplyUpgradeCard			 = 1077; // client => GC
	k_EMsgGCRemoveUpgradeCard			 = 1078; // client => GC

	k_EMsgGCApplyStrangeRestriction		 = 1079; // client => GC

	k_EMsgGCClientRequestMarketData			= 1080; // client => GC
	k_EMsgGCClientRequestMarketDataResponse	= 1081; // GC => client

	k_EMsgGCApplyXifier						= 1082; // client => GC
	k_EMsgGCApplyXifierResponse				= 1083; // GC => Client

	k_EMsgGC_TrackUniquePlayerPairEvent	 = 1084; // client => GC
	k_EMsgGCFulfillDynamicRecipeComponent			= 1085; // client => GC
	k_EMsgGCFulfillDynamicRecipeComponentResponse	= 1086; // GC => client

	k_EMsgGCSetItemEffectVerticalOffset		= 1087;	// client => GC
	k_EMsgGCSetHatEffectUseHeadOrigin		= 1088;	// client => GC

	k_EMsgGCItemEaterRecharger			 = 1089; // client => GC
	k_EMsgGCItemEaterRechargerResponse	 = 1090; // GC => Client

	k_EMsgGCApplyBaseItemXifier			 = 1091; // client => GC

	k_EMsgGCApplyClassTransmogrifier	 = 1092; // client => GC
	k_EMsgGCApplyHalloweenSpellbookPage	 = 1093; // client => GC

	k_EMsgGCRemoveKillStreak			 = 1094; // client => GC
	k_EMsgGCRemoveKillStreakResponse	 = 1095; // GC => client

	k_EMsgGCTFSpecificItemBroadcast		 = 1096; // GC => client (broadcast)
	k_EMsgGC_IncrementKillCountAttribute_Multiple = 1097; // client (game server) => GC
	k_EMsgGCDeliverGiftResponseGiver	= 1098;

	k_EMsgGCSetItemPositions			 = 1100; // client => GC; protobuf batched item position update

// << TF

	k_EMsgGCLookupMultipleAccountNames			 = 1101;
	k_EMsgGCLookupMultipleAccountNamesResponse	 = 1102;

	// trading!
	k_EMsgGCTradingBase =						1500;
	k_EMsgGCTrading_InitiateTradeRequest =		1501;	// client A -> GC and then GC -> client B
	k_EMsgGCTrading_InitiateTradeResponse =		1502;	// client B -> GC or GC -> client A
	k_EMsgGCTrading_StartSession =				1503;	// GC -> client A & B
//	k_EMsgGCTrading_SetItem =					1504;	// client -> GC
//	k_EMsgGCTrading_RemoveItem =				1505;	// client -> GC
//	k_EMsgGCTrading_UpdateTradeInfo =			1506;	// GC -> client A & B in response to SetItem or RemoveItem message
//	k_EMsgGCTrading_SetReadiness	=			1507;	// client -> GC
//	k_EMsgGCTrading_ReadinessResponse	=		1508;	// GC -> client A & B
	k_EMsgGCTrading_SessionClosed =				1509;	// GC -> client A & B
	k_EMsgGCTrading_CancelSession =				1510;	// client -> GC
//	k_EMsgGCTrading_TradeChatMsg =				1511;	// client -> GC and then GC -> other client
//	k_EMsgGCTrading_ConfirmOffer =				1512;	// client -> GC
//	k_EMsgGCTrading_TradeTypingChatMsg =		1513;	// client -> GC and then GC -> other client
	k_EMsgGCTrading_InitiateTradeRequestResponse = 1514; // GC -> client

	// serverbrowser messages
	k_EMsgGCServerBrowser_FavoriteServer =		1601;
	k_EMsgGCServerBrowser_BlacklistServer =		1602;

	// rentals & previews
	k_EMsgGCServerRentalsBase =					1700;
	k_EMsgGCItemPreviewCheckStatus =			1701;
	k_EMsgGCItemPreviewStatusResponse =			1702;
	k_EMsgGCItemPreviewRequest =				1703;
	k_EMsgGCItemPreviewRequestResponse =		1704;
	k_EMsgGCItemPreviewExpire =					1705;
	k_EMsgGCItemPreviewExpireNotification =		1706;

// !FIXME! DOTAMERGE
// This message is 1707 in DOTA, but it came from TF, where it was 1707 at one time, then switched to 1708
// when the message format changed.
//	k_EMsgGCItemPreviewItemBoughtNotification = 1707;
	k_EMsgGCItemPreviewItemBoughtNotification = 1708;

	// Development only messages
	k_EMsgGCDev_NewItemRequest =				2001;
	k_EMsgGCDev_NewItemRequestResponse =		2002;
	k_EMsgGCDev_DebugRollLootRequest =			2003;

	// Microtransaction messages
	k_EMsgGCStoreGetUserData =						2500;			// Gets the current price sheet from the GC
	k_EMsgGCStoreGetUserDataResponse =				2501;		// Response
	k_EMsgGCStorePurchaseInit_DEPRECATED =			2502;		// Initiate a purchase (old pre-protobuff format -- deprecated!)
	k_EMsgGCStorePurchaseInitResponse_DEPRECATED =	2503;		// Response

// !FIXME! DOTAMERGE
// These messages have different values in TF and DOTA.
//	k_EMsgGCStorePurchaseFinalize =					2504;		// Finalize a purchase
//	k_EMsgGCStorePurchaseFinalizeResponse =			2505;		// Response
//	k_EMsgGCStorePurchaseCancel =					2506;		// Cancel a purchase
//	k_EMsgGCStorePurchaseCancelResponse =			2507;		// Response
	k_EMsgGCStorePurchaseFinalize =					2512;		// Finalize a purchase
	k_EMsgGCStorePurchaseFinalizeResponse =			2513;		// Response
	k_EMsgGCStorePurchaseCancel =					2514;		// Cancel a purchase
	k_EMsgGCStorePurchaseCancelResponse =			2515;		// Response

	k_EMsgGCStorePurchaseQueryTxn =					2508;		// Query the status of a transaction
	k_EMsgGCStorePurchaseQueryTxnResponse =			2509;		// Response
	k_EMsgGCStorePurchaseInit =						2510;		// Initiate a purchase
	k_EMsgGCStorePurchaseInitResponse =				2511;		// Response

// !FIXME! DOTAMERGE
// Conflict with TF messages
//	k_EMsgGCBannedWordListRequest =					2512;		// Request a list of new banned words
//	k_EMsgGCBannedWordListResponse =				2513;		// response to a request, or a push of a new banned word update to clients
//	k_EMsgGCToGCBannedWordListBroadcast =			2514;		// sent from GC to GC so the main GC can broadcast a banned word change to clients
//	k_EMsgGCToGCBannedWordListUpdated =				2515;		// sent from GC to other GCs so that they can be kept in sync with banned word list updates

	k_EMsgGCToGCDirtySDOCache =						2516;		// when an SDO cache needs to be dirtied on another GC
	k_EMsgGCToGCDirtyMultipleSDOCache =				2517;		// when a list of SDO caches needs to be dirtied on another GC

	k_EMsgGCToGCUpdateSQLKeyValue =					2518;		// when a key value changes and needs to be updated on other GCs
//	k_EMsgGCToGCIsTrustedServer =					2519;		// Is the specified server trusted?
//	k_EMsgGCToGCIsTrustedServerResponse =			2520;		// response to whether or not this is a trusted server
	k_EMsgGCToGCBroadcastConsoleCommand =			2521;		// run a console command remotely on another GC from a GC

	k_EMsgGCServerVersionUpdated =					2522;		// Sent when the active version of a server changes so servers can restart

	k_EMsgGCApplyAutograph	=						2523; // 
	k_EMsgGCToGCWebAPIAccountChanged =				2524;
	k_EMsgGCRequestAnnouncements	=				2525; // 
	k_EMsgGCRequestAnnouncementsResponse	=		2526; // 
	k_EMsgGCRequestPassportItemGrant =				2527;

	k_EMsgGCClientVersionUpdated =					2528;		// Sent when the client doesn't match the appropriate version

	k_EMsgGCItemPurgatory_FinalizePurchase =			2531;	// Sent for Korean government requirement - move a purchased item from the "maybe box" (referred to as item purgatory in code) to the backpack
	k_EMsgGCItemPurgatory_FinalizePurchaseResponse =	2532;
	k_EMsgGCItemPurgatory_RefundPurchase =				2533;
	k_EMsgGCItemPurgatory_RefundPurchaseResponse =		2534;

	k_EMsgGCToGCPlayerStrangeCountAdjustments =		2535;

	k_EMsgGCRequestStoreSalesData =					2536; // get which items are currently on sale
	k_EMsgGCRequestStoreSalesDataResponse =			2537;
	k_EMsgGCRequestStoreSalesDataUpToDateResponse =	2538;

	k_EMsgGCToGCPingRequest =						2539;
	k_EMsgGCToGCPingResponse =						2540;

	k_EMsgGCToGCGetUserSessionServer =				2541; // GC->GC, see what the steam ID is of the server that this user is on
	k_EMsgGCToGCGetUserSessionServerResponse =		2542; //  --response
	k_EMsgGCToGCGetUserServerMembers =				2543; // GC->GC, what members are on the server and spectating
	k_EMsgGCToGCGetUserServerMembersResponse =		2544; //  --response

	k_EMsgGCToGCGrantSelfMadeItemToAccount =		2555; // GC->GC, via SQL message queue, grant one specific self-made item to this contributor account ID
	k_EMsgGCToGCThankedByNewUser =					2556; // GC->GC, via SQL message queue, this account was thanked by a new user account, so grant a thanked item or level up the current item

	k_EMsgGCShuffleCrateContents =					2557; // game client->GC, shuffle the contents of the line item loot list for this crate

	k_EMsgGCQuestObjective_Progress =				2558; // client/game -> GC, report progress in a quest objective
	k_EMsgGCQuestCompleted =						2559; // GC -> client, report completion of a quest

	k_EMsgGCApplyDuckToken							= 2560; // client => GC

	k_EMsgGCQuestComplete_Request =					2561;	// client -> GC
	k_EMsgGCQuestObjective_PointsChange =			2562;	// server -> GC
	k_EMsgGCQuestObjective_RequestLoanerItems =		2564;	// client -> GC
	k_EMsgGCQuestObjective_RequestLoanerResponse =	2565;	// GC -> client

	k_EMsgGCApplyStrangeCountTransfer				= 2566; // client => GC
	k_EMsgGCCraftCollectionUpgrade					= 2567; // client => GC
	k_EMsgGCCraftHalloweenOffering					= 2568; // client => GC

	k_EMsgGCQuestDiscard_Request					= 2569; // client => GC

	k_EMsgGCRemoveGiftedBy			 = 2570; // client => GC
	k_EMsgGCRemoveGiftedByResponse	 = 2571; // GC => client

	k_EMsgGCRemoveFestivizer			 = 2572; // client => GC
	k_EMsgGCRemoveFestivizerResponse	 = 2573; // GC => client

	k_EMsgGCCraftCommonStatClock		= 2574; // client => GC

	// Game specific messages start at 5000 and GCGameBase messages start at 3000
	// So all these must be < 3000
};

enum EGCMsgResponse
{
	k_EGCMsgResponseOK = 0;				// Request succeeded
	k_EGCMsgResponseDenied = 1;			// Request denied
	k_EGCMsgResponseServerError = 2;	// Request failed due to a temporary server error
	k_EGCMsgResponseTimeout = 3;		// Request timed out
	k_EGCMsgResponseInvalid = 4;		// Request was corrupt
	k_EGCMsgResponseNoMatch = 5;		// No item definition matched the request
	k_EGCMsgResponseUnknownError = 6;	// Request failed with an unknown error
	k_EGCMsgResponseNotLoggedOn = 7;	// Client not logged on to steam
	k_EGCMsgFailedToCreate = 8;			// Failed to create whatever object the GC was asked to create

//	k_EGCMsgResponseForceSizeInt = 0x7FFFFFFF
};

enum EUnlockStyle
{
	k_UnlockStyle_Succeeded = 0;
	k_UnlockStyle_Failed_PreReq = 1;
	k_UnlockStyle_Failed_CantAfford = 2;
	k_UnlockStyle_Failed_CantCommit = 3;
	k_UnlockStyle_Failed_CantLockCache = 4;
	k_UnlockStyle_Failed_CantAffordAttrib = 5;
	k_UnlockStyle_Failed_CantAffordGem = 6;
};

enum EItemPurgatoryResponse_Finalize
{
	k_ItemPurgatoryResponse_Finalize_Succeeded = 0;
	k_ItemPurgatoryResponse_Finalize_Failed_Incomplete = 1;				// Some but not all finalized
	k_ItemPurgatoryResponse_Finalize_Failed_ItemsNotInPurgatory = 2;	// Item ID's sent up were not in purgatory
	k_ItemPurgatoryResponse_Finalize_Failed_CouldNotFindItems = 3;		// One or more items do not belong to the given steam ID or were deleted, etc.
	k_ItemPurgatoryResponse_Finalize_Failed_NoSOCache = 4;				// Couldn't load the user's SO cache
	k_ItemPurgatoryResponse_Finalize_BackpackFull = 5;					// Backpack was full. We may have finalized some items.
};

enum EItemPurgatoryResponse_Refund
{
	k_ItemPurgatoryResponse_Refund_Succeeded = 0;
	k_ItemPurgatoryResponse_Refund_Failed_ItemNotInPurgatory = 1;		// Item ID's sent up were not in purgatory
	k_ItemPurgatoryResponse_Refund_Failed_CouldNotFindItem = 2;			// One or more items do not belong to the given steam ID or were deleted, etc.
	k_ItemPurgatoryResponse_Refund_Failed_NoSOCache = 3;				// Couldn't load the user's SO cache
	k_ItemPurgatoryResponse_Refund_Failed_NoDetail = 4;					// Generic error to avoid giving the client too much detail
	k_ItemPurgatoryResponse_Refund_Failed_NexonWebAPI = 5;				// The Nexon WebAPI failed
};

//
// k_EMsgGCApplyAutograph
//
message CMsgApplyAutograph
{
	optional uint64 autograph_item_id = 1;			// which autograph?
	optional uint64 item_item_id = 2;				// which item is getting this autograph
};


// k_EMsgGCToGCPlayerStrangeCountAdjustments
// Used in the GC SQL Msg queue and in match signout
message CMsgEconPlayerStrangeCountAdjustment
{
	message CStrangeCountAdjustment
	{
		optional uint32			event_type = 1;
		optional uint64			item_id = 2;
		optional uint32			adjustment = 3;
	};

	optional uint32						account_id = 1;
	repeated CStrangeCountAdjustment	strange_count_adjustments = 2;
};


//
// k_EMsgGCItemPurgatory_FinalizePurchase
//
message CMsgRequestItemPurgatory_FinalizePurchase
{
	repeated uint64 item_ids = 1;
};

//
// k_EMsgGCItemPurgatory_FinalizePurchaseResponse
//
message CMsgRequestItemPurgatory_FinalizePurchaseResponse
{
	optional uint32 result = 1;
};

//
// k_EMsgGCItemPurgatory_RefundPurchase
//
message CMsgRequestItemPurgatory_RefundPurchase
{
	optional uint64 item_id = 1;
};

//
// k_EMsgGCItemPurgatory_RefundPurchaseResponse
//
message CMsgRequestItemPurgatory_RefundPurchaseResponse
{
	optional uint32 result = 1;
};

message CMsgCraftingResponse
{
	repeated uint64 item_ids = 1;
};

// k_EMsgGCRequestStoreSalesData
message CMsgGCRequestStoreSalesData
{
	optional uint32		version = 1;		// the last received version (used to identify when sales data may have changed)
	optional uint32		currency = 2;		// which currency we want the sales values for
};

// k_EMsgGCRequestStoreSalesDataResponse
message CMsgGCRequestStoreSalesDataResponse
{
	message Price
	{
		optional uint32	item_def = 1;
		optional uint32 price = 2;
	};
	repeated Price		sale_price = 1;			// the list of items on sale and their sale price for the requested currency
	optional uint32		version = 2;			// the version of this data, future sale requests should provide this value so redundant requests can be ignored
	optional uint32		expiration_time = 3;	// the time after which this sale is likely to expire. It could expire sooner than this if the GC restarts
};

// k_EMsgGCRequestStoreSalesDataUpToDateResponse
message CMsgGCRequestStoreSalesDataUpToDateResponse
{
	optional uint32		version = 1;			// the last received version (used to identify when sales data may have changed)
	optional uint32		expiration_time = 2;	// the time after which this sale is likely to expire. It could expire sooner than this if the GC restarts
};

// k_EMsgGCToGCPingRequest
message CMsgGCToGCPingRequest
{
};

// k_EMsgGCToGCPingResponse
message CMsgGCToGCPingResponse
{
};

// k_EMsgGCToGCGetUserSessionServer
message CMsgGCToGCGetUserSessionServer
{
	optional uint32		account_id = 1;				// the user to lookup the server information for
};

// k_EMsgGCToGCGetUserSessionServerResponse
message CMsgGCToGCGetUserSessionServerResponse
{
	optional fixed64	server_steam_id = 1;		// zero if this user is not online or not on a server
};

// k_EMsgGCToGCGetUserServerMembers		
message CMsgGCToGCGetUserServerMembers
{
	optional uint32		account_id = 1;				// the account ID to look up the server and spectators from	
	optional uint32		max_spectators = 2;			// do you want spectators? If so what is the limit of how many will be returned (otherwise specify zero)
};

// k_EMsgGCToGCGetUserServerMembersResponse
message CMsgGCToGCGetUserServerMembersResponse
{
	repeated uint32		member_account_id = 1;		// the list of other server members or spectators
};

// k_EMsgGCLookupMultipleAccountNames
message CMsgLookupMultipleAccountNames
{
	repeated uint32 accountids = 1 [ packed=true ];
};

// k_EMsgGCLookupMultipleAccountNamesResponse
message CMsgLookupMultipleAccountNamesResponse
{
	message Account
	{
		optional uint32 accountid = 1;
		optional string persona = 2;
	}
	repeated Account accounts = 1;
};

// k_EMsgGCToGCGrantSelfMadeItemToAccount
message CMsgGCToGCGrantSelfMadeItemToAccount
{
	optional uint32 item_def_index = 1;
	optional uint32 accountid = 2;
}

// k_EMsgGCToGCThankedByNewUser
message CMsgGCToGCThankedByNewUser
{
	optional uint32 new_user_accountid = 1;			// guy who did the thanking
	optional uint32 thanked_user_accountid = 2;		// guy who was thanked
}

// k_EMsgGCShuffleCrateContents
message CMsgGCShuffleCrateContents
{
	optional uint64 crate_item_id = 1;
	optional string user_code_string = 2;
}

// k_EMsgGCQuestObjective_Progress
message CMsgGCQuestObjective_Progress
{
	optional uint64 quest_item_id = 1;
	optional uint32 quest_attrib_index = 2;
	optional uint32 delta = 3;
	optional fixed64 owner_steamid = 4;
}

// CMsgGCQuestObjective_PointsChange
message CMsgGCQuestObjective_PointsChange
{
	optional uint64 quest_item_id = 1;
	optional uint32 standard_points = 2;
	optional uint32 bonus_points = 3;
	optional fixed64 owner_steamid = 4;
	optional bool update_base_points = 5 [default = false];
}

// k_EMsgGCQuestComplete_Request
message CMsgGCQuestComplete_Request
{
	optional uint64 quest_item_id = 1;
}

// k_EMsgGCQuestCompleted
message CMsgGCQuestCompleted
{
}

// k_EMsgGCQuestObjective_RequestLoanerItems
message CMsgGCQuestObjective_RequestLoanerItems
{
	optional uint64 quest_item_id = 1;
}

// k_EMsgGCQuestObjective_RequestLoanerResponse
message CMsgGCQuestObjective_RequestLoanerResponse
{
}

// k_EMsgGCCraftCollectionUpgrader
message CMsgCraftCollectionUpgrade
{
	repeated uint64 item_id = 1;					// list of item ids
};

// k_EMsgGCCraftHalloweenOffering
message CMsgCraftHalloweenOffering
{
	optional uint64 tool_id = 1;					// tool that is invoking this call
	repeated uint64 item_id = 2;					// list of item ids
};

// k_EMsgGCCraftCommonStatClock
message CMsgCraftCommonStatClock
{
	optional uint64 tool_id = 1;					// tool that is invoking this call
	repeated uint64 item_id = 2;					// list of item ids
};

// k_EMsgGCQuestDiscard_Request
message CMsgGCQuestDiscard_Request
{
	optional uint64 quest_item_id = 1;
}

// Do not remove this comment due to a bug on the Mac OS X protobuf compiler - lol