tf2
Version:
Exposes a simple API for interacting with the Team Fortress 2 game coordinator
714 lines (686 loc) • 1.78 MB
JavaScript
/*eslint-disable block-scoped-var, id-length, no-control-regex, no-magic-numbers, no-prototype-builtins, no-redeclare, no-shadow, no-var, sort-vars*/
(function(global, factory) { /* global define, require, module */
/* AMD */ if (typeof define === 'function' && define.amd)
define(["protobufjs/minimal"], factory);
/* CommonJS */ else if (typeof require === 'function' && typeof module === 'object' && module && module.exports)
module.exports = factory(require("protobufjs/minimal"));
})(this, function($protobuf) {
"use strict";
// Common aliases
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;
// Exported root namespace
var $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
/**
* EGCItemMsg enum.
* @exports EGCItemMsg
* @enum {string}
* @property {number} k_EMsgGCBase=1000 k_EMsgGCBase value
* @property {number} k_EMsgGCSetSingleItemPosition=1001 k_EMsgGCSetSingleItemPosition value
* @property {number} k_EMsgGCCraft=1002 k_EMsgGCCraft value
* @property {number} k_EMsgGCCraftResponse=1003 k_EMsgGCCraftResponse value
* @property {number} k_EMsgGCDelete=1004 k_EMsgGCDelete value
* @property {number} k_EMsgGCVerifyCacheSubscription=1005 k_EMsgGCVerifyCacheSubscription value
* @property {number} k_EMsgGCNameItem=1006 k_EMsgGCNameItem value
* @property {number} k_EMsgGCUnlockCrate=1007 k_EMsgGCUnlockCrate value
* @property {number} k_EMsgGCUnlockCrateResponse=1008 k_EMsgGCUnlockCrateResponse value
* @property {number} k_EMsgGCPaintItem=1009 k_EMsgGCPaintItem value
* @property {number} k_EMsgGCPaintItemResponse=1010 k_EMsgGCPaintItemResponse value
* @property {number} k_EMsgGCGoldenWrenchBroadcast=1011 k_EMsgGCGoldenWrenchBroadcast value
* @property {number} k_EMsgGCMOTDRequest=1012 k_EMsgGCMOTDRequest value
* @property {number} k_EMsgGCMOTDRequestResponse=1013 k_EMsgGCMOTDRequestResponse value
* @property {number} k_EMsgGCNameBaseItem=1019 k_EMsgGCNameBaseItem value
* @property {number} k_EMsgGCNameBaseItemResponse=1020 k_EMsgGCNameBaseItemResponse value
* @property {number} k_EMsgGCRemoveSocketItem_DEPRECATED=1021 k_EMsgGCRemoveSocketItem_DEPRECATED value
* @property {number} k_EMsgGCRemoveSocketItemResponse_DEPRECATED=1022 k_EMsgGCRemoveSocketItemResponse_DEPRECATED value
* @property {number} k_EMsgGCCustomizeItemTexture=1023 k_EMsgGCCustomizeItemTexture value
* @property {number} k_EMsgGCCustomizeItemTextureResponse=1024 k_EMsgGCCustomizeItemTextureResponse value
* @property {number} k_EMsgGCUseItemRequest=1025 k_EMsgGCUseItemRequest value
* @property {number} k_EMsgGCUseItemResponse=1026 k_EMsgGCUseItemResponse value
* @property {number} k_EMsgGCRespawnPostLoadoutChange=1029 k_EMsgGCRespawnPostLoadoutChange value
* @property {number} k_EMsgGCRemoveItemName=1030 k_EMsgGCRemoveItemName value
* @property {number} k_EMsgGCRemoveItemPaint=1031 k_EMsgGCRemoveItemPaint value
* @property {number} k_EMsgGCGiftWrapItem=1032 k_EMsgGCGiftWrapItem value
* @property {number} k_EMsgGCGiftWrapItemResponse=1033 k_EMsgGCGiftWrapItemResponse value
* @property {number} k_EMsgGCDeliverGift=1034 k_EMsgGCDeliverGift value
* @property {number} k_EMsgGCDeliverGiftResponseReceiver=1036 k_EMsgGCDeliverGiftResponseReceiver value
* @property {number} k_EMsgGCUnwrapGiftRequest=1037 k_EMsgGCUnwrapGiftRequest value
* @property {number} k_EMsgGCUnwrapGiftResponse=1038 k_EMsgGCUnwrapGiftResponse value
* @property {number} k_EMsgGCSetItemStyle=1039 k_EMsgGCSetItemStyle value
* @property {number} k_EMsgGCUsedClaimCodeItem=1040 k_EMsgGCUsedClaimCodeItem value
* @property {number} k_EMsgGCSortItems=1041 k_EMsgGCSortItems value
* @property {number} k_EMsgGC_RevolvingLootList_DEPRECATED=1042 k_EMsgGC_RevolvingLootList_DEPRECATED value
* @property {number} k_EMsgGCLookupAccount=1043 k_EMsgGCLookupAccount value
* @property {number} k_EMsgGCLookupAccountResponse=1044 k_EMsgGCLookupAccountResponse value
* @property {number} k_EMsgGCLookupAccountName=1045 k_EMsgGCLookupAccountName value
* @property {number} k_EMsgGCLookupAccountNameResponse=1046 k_EMsgGCLookupAccountNameResponse value
* @property {number} k_EMsgGCUpdateItemSchema=1049 k_EMsgGCUpdateItemSchema value
* @property {number} k_EMsgGCRequestInventoryRefresh=1050 k_EMsgGCRequestInventoryRefresh value
* @property {number} k_EMsgGCRemoveCustomTexture=1051 k_EMsgGCRemoveCustomTexture value
* @property {number} k_EMsgGCRemoveCustomTextureResponse=1052 k_EMsgGCRemoveCustomTextureResponse value
* @property {number} k_EMsgGCRemoveMakersMark=1053 k_EMsgGCRemoveMakersMark value
* @property {number} k_EMsgGCRemoveMakersMarkResponse=1054 k_EMsgGCRemoveMakersMarkResponse value
* @property {number} k_EMsgGCRemoveUniqueCraftIndex=1055 k_EMsgGCRemoveUniqueCraftIndex value
* @property {number} k_EMsgGCRemoveUniqueCraftIndexResponse=1056 k_EMsgGCRemoveUniqueCraftIndexResponse value
* @property {number} k_EMsgGCSaxxyBroadcast=1057 k_EMsgGCSaxxyBroadcast value
* @property {number} k_EMsgGCBackpackSortFinished=1058 k_EMsgGCBackpackSortFinished value
* @property {number} k_EMsgGCAdjustItemEquippedState=1059 k_EMsgGCAdjustItemEquippedState value
* @property {number} k_EMsgGCCollectItem=1061 k_EMsgGCCollectItem value
* @property {number} k_EMsgGCItemAcknowledged=1062 k_EMsgGCItemAcknowledged value
* @property {number} k_EMsgGCPresets_SelectPresetForClass=1063 k_EMsgGCPresets_SelectPresetForClass value
* @property {number} k_EMsgGCPresets_SetItemPosition=1064 k_EMsgGCPresets_SetItemPosition value
* @property {number} k_EMsgGC_ReportAbuse=1065 k_EMsgGC_ReportAbuse value
* @property {number} k_EMsgGC_ReportAbuseResponse=1066 k_EMsgGC_ReportAbuseResponse value
* @property {number} k_EMsgGCPresets_SelectPresetForClassReply=1067 k_EMsgGCPresets_SelectPresetForClassReply value
* @property {number} k_EMsgGCNameItemNotification=1068 k_EMsgGCNameItemNotification value
* @property {number} k_EMsgGCClientDisplayNotification=1069 k_EMsgGCClientDisplayNotification value
* @property {number} k_EMsgGCApplyStrangePart=1070 k_EMsgGCApplyStrangePart value
* @property {number} k_EMsgGC_IncrementKillCountAttribute=1071 k_EMsgGC_IncrementKillCountAttribute value
* @property {number} k_EMsgGC_IncrementKillCountResponse=1072 k_EMsgGC_IncrementKillCountResponse value
* @property {number} k_EMsgGCRemoveStrangePart=1073 k_EMsgGCRemoveStrangePart value
* @property {number} k_EMsgGCResetStrangeScores=1074 k_EMsgGCResetStrangeScores value
* @property {number} k_EMsgGCGiftedItems=1075 k_EMsgGCGiftedItems value
* @property {number} k_EMsgGCApplyUpgradeCard=1077 k_EMsgGCApplyUpgradeCard value
* @property {number} k_EMsgGCRemoveUpgradeCard=1078 k_EMsgGCRemoveUpgradeCard value
* @property {number} k_EMsgGCApplyStrangeRestriction=1079 k_EMsgGCApplyStrangeRestriction value
* @property {number} k_EMsgGCClientRequestMarketData=1080 k_EMsgGCClientRequestMarketData value
* @property {number} k_EMsgGCClientRequestMarketDataResponse=1081 k_EMsgGCClientRequestMarketDataResponse value
* @property {number} k_EMsgGCApplyXifier=1082 k_EMsgGCApplyXifier value
* @property {number} k_EMsgGCApplyXifierResponse=1083 k_EMsgGCApplyXifierResponse value
* @property {number} k_EMsgGC_TrackUniquePlayerPairEvent=1084 k_EMsgGC_TrackUniquePlayerPairEvent value
* @property {number} k_EMsgGCFulfillDynamicRecipeComponent=1085 k_EMsgGCFulfillDynamicRecipeComponent value
* @property {number} k_EMsgGCFulfillDynamicRecipeComponentResponse=1086 k_EMsgGCFulfillDynamicRecipeComponentResponse value
* @property {number} k_EMsgGCSetItemEffectVerticalOffset=1087 k_EMsgGCSetItemEffectVerticalOffset value
* @property {number} k_EMsgGCSetHatEffectUseHeadOrigin=1088 k_EMsgGCSetHatEffectUseHeadOrigin value
* @property {number} k_EMsgGCItemEaterRecharger=1089 k_EMsgGCItemEaterRecharger value
* @property {number} k_EMsgGCItemEaterRechargerResponse=1090 k_EMsgGCItemEaterRechargerResponse value
* @property {number} k_EMsgGCApplyBaseItemXifier=1091 k_EMsgGCApplyBaseItemXifier value
* @property {number} k_EMsgGCApplyClassTransmogrifier=1092 k_EMsgGCApplyClassTransmogrifier value
* @property {number} k_EMsgGCApplyHalloweenSpellbookPage=1093 k_EMsgGCApplyHalloweenSpellbookPage value
* @property {number} k_EMsgGCRemoveKillStreak=1094 k_EMsgGCRemoveKillStreak value
* @property {number} k_EMsgGCRemoveKillStreakResponse=1095 k_EMsgGCRemoveKillStreakResponse value
* @property {number} k_EMsgGCTFSpecificItemBroadcast=1096 k_EMsgGCTFSpecificItemBroadcast value
* @property {number} k_EMsgGC_IncrementKillCountAttribute_Multiple=1097 k_EMsgGC_IncrementKillCountAttribute_Multiple value
* @property {number} k_EMsgGCDeliverGiftResponseGiver=1098 k_EMsgGCDeliverGiftResponseGiver value
* @property {number} k_EMsgGCSetItemPositions=1100 k_EMsgGCSetItemPositions value
* @property {number} k_EMsgGCLookupMultipleAccountNames=1101 k_EMsgGCLookupMultipleAccountNames value
* @property {number} k_EMsgGCLookupMultipleAccountNamesResponse=1102 k_EMsgGCLookupMultipleAccountNamesResponse value
* @property {number} k_EMsgGCTradingBase=1500 k_EMsgGCTradingBase value
* @property {number} k_EMsgGCTrading_InitiateTradeRequest=1501 k_EMsgGCTrading_InitiateTradeRequest value
* @property {number} k_EMsgGCTrading_InitiateTradeResponse=1502 k_EMsgGCTrading_InitiateTradeResponse value
* @property {number} k_EMsgGCTrading_StartSession=1503 k_EMsgGCTrading_StartSession value
* @property {number} k_EMsgGCTrading_SessionClosed=1509 k_EMsgGCTrading_SessionClosed value
* @property {number} k_EMsgGCTrading_CancelSession=1510 k_EMsgGCTrading_CancelSession value
* @property {number} k_EMsgGCTrading_InitiateTradeRequestResponse=1514 k_EMsgGCTrading_InitiateTradeRequestResponse value
* @property {number} k_EMsgGCServerBrowser_FavoriteServer=1601 k_EMsgGCServerBrowser_FavoriteServer value
* @property {number} k_EMsgGCServerBrowser_BlacklistServer=1602 k_EMsgGCServerBrowser_BlacklistServer value
* @property {number} k_EMsgGCServerRentalsBase=1700 k_EMsgGCServerRentalsBase value
* @property {number} k_EMsgGCItemPreviewCheckStatus=1701 k_EMsgGCItemPreviewCheckStatus value
* @property {number} k_EMsgGCItemPreviewStatusResponse=1702 k_EMsgGCItemPreviewStatusResponse value
* @property {number} k_EMsgGCItemPreviewRequest=1703 k_EMsgGCItemPreviewRequest value
* @property {number} k_EMsgGCItemPreviewRequestResponse=1704 k_EMsgGCItemPreviewRequestResponse value
* @property {number} k_EMsgGCItemPreviewExpire=1705 k_EMsgGCItemPreviewExpire value
* @property {number} k_EMsgGCItemPreviewExpireNotification=1706 k_EMsgGCItemPreviewExpireNotification value
* @property {number} k_EMsgGCItemPreviewItemBoughtNotification=1708 k_EMsgGCItemPreviewItemBoughtNotification value
* @property {number} k_EMsgGCDev_NewItemRequest=2001 k_EMsgGCDev_NewItemRequest value
* @property {number} k_EMsgGCDev_NewItemRequestResponse=2002 k_EMsgGCDev_NewItemRequestResponse value
* @property {number} k_EMsgGCDev_DebugRollLootRequest=2003 k_EMsgGCDev_DebugRollLootRequest value
* @property {number} k_EMsgGCStoreGetUserData=2500 k_EMsgGCStoreGetUserData value
* @property {number} k_EMsgGCStoreGetUserDataResponse=2501 k_EMsgGCStoreGetUserDataResponse value
* @property {number} k_EMsgGCStorePurchaseInit_DEPRECATED=2502 k_EMsgGCStorePurchaseInit_DEPRECATED value
* @property {number} k_EMsgGCStorePurchaseInitResponse_DEPRECATED=2503 k_EMsgGCStorePurchaseInitResponse_DEPRECATED value
* @property {number} k_EMsgGCStorePurchaseFinalize=2512 k_EMsgGCStorePurchaseFinalize value
* @property {number} k_EMsgGCStorePurchaseFinalizeResponse=2513 k_EMsgGCStorePurchaseFinalizeResponse value
* @property {number} k_EMsgGCStorePurchaseCancel=2514 k_EMsgGCStorePurchaseCancel value
* @property {number} k_EMsgGCStorePurchaseCancelResponse=2515 k_EMsgGCStorePurchaseCancelResponse value
* @property {number} k_EMsgGCStorePurchaseQueryTxn=2508 k_EMsgGCStorePurchaseQueryTxn value
* @property {number} k_EMsgGCStorePurchaseQueryTxnResponse=2509 k_EMsgGCStorePurchaseQueryTxnResponse value
* @property {number} k_EMsgGCStorePurchaseInit=2510 k_EMsgGCStorePurchaseInit value
* @property {number} k_EMsgGCStorePurchaseInitResponse=2511 k_EMsgGCStorePurchaseInitResponse value
* @property {number} k_EMsgGCToGCDirtySDOCache=2516 k_EMsgGCToGCDirtySDOCache value
* @property {number} k_EMsgGCToGCDirtyMultipleSDOCache=2517 k_EMsgGCToGCDirtyMultipleSDOCache value
* @property {number} k_EMsgGCToGCUpdateSQLKeyValue=2518 k_EMsgGCToGCUpdateSQLKeyValue value
* @property {number} k_EMsgGCToGCBroadcastConsoleCommand=2521 k_EMsgGCToGCBroadcastConsoleCommand value
* @property {number} k_EMsgGCServerVersionUpdated=2522 k_EMsgGCServerVersionUpdated value
* @property {number} k_EMsgGCApplyAutograph=2523 k_EMsgGCApplyAutograph value
* @property {number} k_EMsgGCToGCWebAPIAccountChanged=2524 k_EMsgGCToGCWebAPIAccountChanged value
* @property {number} k_EMsgGCRequestAnnouncements=2525 k_EMsgGCRequestAnnouncements value
* @property {number} k_EMsgGCRequestAnnouncementsResponse=2526 k_EMsgGCRequestAnnouncementsResponse value
* @property {number} k_EMsgGCRequestPassportItemGrant=2527 k_EMsgGCRequestPassportItemGrant value
* @property {number} k_EMsgGCClientVersionUpdated=2528 k_EMsgGCClientVersionUpdated value
* @property {number} k_EMsgGCItemPurgatory_FinalizePurchase=2531 k_EMsgGCItemPurgatory_FinalizePurchase value
* @property {number} k_EMsgGCItemPurgatory_FinalizePurchaseResponse=2532 k_EMsgGCItemPurgatory_FinalizePurchaseResponse value
* @property {number} k_EMsgGCItemPurgatory_RefundPurchase=2533 k_EMsgGCItemPurgatory_RefundPurchase value
* @property {number} k_EMsgGCItemPurgatory_RefundPurchaseResponse=2534 k_EMsgGCItemPurgatory_RefundPurchaseResponse value
* @property {number} k_EMsgGCToGCPlayerStrangeCountAdjustments=2535 k_EMsgGCToGCPlayerStrangeCountAdjustments value
* @property {number} k_EMsgGCRequestStoreSalesData=2536 k_EMsgGCRequestStoreSalesData value
* @property {number} k_EMsgGCRequestStoreSalesDataResponse=2537 k_EMsgGCRequestStoreSalesDataResponse value
* @property {number} k_EMsgGCRequestStoreSalesDataUpToDateResponse=2538 k_EMsgGCRequestStoreSalesDataUpToDateResponse value
* @property {number} k_EMsgGCToGCPingRequest=2539 k_EMsgGCToGCPingRequest value
* @property {number} k_EMsgGCToGCPingResponse=2540 k_EMsgGCToGCPingResponse value
* @property {number} k_EMsgGCToGCGetUserSessionServer=2541 k_EMsgGCToGCGetUserSessionServer value
* @property {number} k_EMsgGCToGCGetUserSessionServerResponse=2542 k_EMsgGCToGCGetUserSessionServerResponse value
* @property {number} k_EMsgGCToGCGetUserServerMembers=2543 k_EMsgGCToGCGetUserServerMembers value
* @property {number} k_EMsgGCToGCGetUserServerMembersResponse=2544 k_EMsgGCToGCGetUserServerMembersResponse value
* @property {number} k_EMsgGCToGCGrantSelfMadeItemToAccount=2555 k_EMsgGCToGCGrantSelfMadeItemToAccount value
* @property {number} k_EMsgGCToGCThankedByNewUser=2556 k_EMsgGCToGCThankedByNewUser value
* @property {number} k_EMsgGCShuffleCrateContents=2557 k_EMsgGCShuffleCrateContents value
* @property {number} k_EMsgGCQuestObjective_Progress=2558 k_EMsgGCQuestObjective_Progress value
* @property {number} k_EMsgGCQuestCompleted=2559 k_EMsgGCQuestCompleted value
* @property {number} k_EMsgGCApplyDuckToken=2560 k_EMsgGCApplyDuckToken value
* @property {number} k_EMsgGCQuestObjective_PointsChange=2562 k_EMsgGCQuestObjective_PointsChange value
* @property {number} k_EMsgGCQuestObjective_RequestLoanerItems=2564 k_EMsgGCQuestObjective_RequestLoanerItems value
* @property {number} k_EMsgGCQuestObjective_RequestLoanerResponse=2565 k_EMsgGCQuestObjective_RequestLoanerResponse value
* @property {number} k_EMsgGCApplyStrangeCountTransfer=2566 k_EMsgGCApplyStrangeCountTransfer value
* @property {number} k_EMsgGCCraftCollectionUpgrade=2567 k_EMsgGCCraftCollectionUpgrade value
* @property {number} k_EMsgGCCraftHalloweenOffering=2568 k_EMsgGCCraftHalloweenOffering value
* @property {number} k_EMsgGCQuestDiscard_Request=2569 k_EMsgGCQuestDiscard_Request value
* @property {number} k_EMsgGCRemoveGiftedBy=2570 k_EMsgGCRemoveGiftedBy value
* @property {number} k_EMsgGCRemoveGiftedByResponse=2571 k_EMsgGCRemoveGiftedByResponse value
* @property {number} k_EMsgGCRemoveFestivizer=2572 k_EMsgGCRemoveFestivizer value
* @property {number} k_EMsgGCRemoveFestivizerResponse=2573 k_EMsgGCRemoveFestivizerResponse value
* @property {number} k_EMsgGCCraftCommonStatClock=2574 k_EMsgGCCraftCommonStatClock value
*/
$root.EGCItemMsg = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[1000] = "k_EMsgGCBase"] = 1000;
values[valuesById[1001] = "k_EMsgGCSetSingleItemPosition"] = 1001;
values[valuesById[1002] = "k_EMsgGCCraft"] = 1002;
values[valuesById[1003] = "k_EMsgGCCraftResponse"] = 1003;
values[valuesById[1004] = "k_EMsgGCDelete"] = 1004;
values[valuesById[1005] = "k_EMsgGCVerifyCacheSubscription"] = 1005;
values[valuesById[1006] = "k_EMsgGCNameItem"] = 1006;
values[valuesById[1007] = "k_EMsgGCUnlockCrate"] = 1007;
values[valuesById[1008] = "k_EMsgGCUnlockCrateResponse"] = 1008;
values[valuesById[1009] = "k_EMsgGCPaintItem"] = 1009;
values[valuesById[1010] = "k_EMsgGCPaintItemResponse"] = 1010;
values[valuesById[1011] = "k_EMsgGCGoldenWrenchBroadcast"] = 1011;
values[valuesById[1012] = "k_EMsgGCMOTDRequest"] = 1012;
values[valuesById[1013] = "k_EMsgGCMOTDRequestResponse"] = 1013;
values[valuesById[1019] = "k_EMsgGCNameBaseItem"] = 1019;
values[valuesById[1020] = "k_EMsgGCNameBaseItemResponse"] = 1020;
values[valuesById[1021] = "k_EMsgGCRemoveSocketItem_DEPRECATED"] = 1021;
values[valuesById[1022] = "k_EMsgGCRemoveSocketItemResponse_DEPRECATED"] = 1022;
values[valuesById[1023] = "k_EMsgGCCustomizeItemTexture"] = 1023;
values[valuesById[1024] = "k_EMsgGCCustomizeItemTextureResponse"] = 1024;
values[valuesById[1025] = "k_EMsgGCUseItemRequest"] = 1025;
values[valuesById[1026] = "k_EMsgGCUseItemResponse"] = 1026;
values[valuesById[1029] = "k_EMsgGCRespawnPostLoadoutChange"] = 1029;
values[valuesById[1030] = "k_EMsgGCRemoveItemName"] = 1030;
values[valuesById[1031] = "k_EMsgGCRemoveItemPaint"] = 1031;
values[valuesById[1032] = "k_EMsgGCGiftWrapItem"] = 1032;
values[valuesById[1033] = "k_EMsgGCGiftWrapItemResponse"] = 1033;
values[valuesById[1034] = "k_EMsgGCDeliverGift"] = 1034;
values[valuesById[1036] = "k_EMsgGCDeliverGiftResponseReceiver"] = 1036;
values[valuesById[1037] = "k_EMsgGCUnwrapGiftRequest"] = 1037;
values[valuesById[1038] = "k_EMsgGCUnwrapGiftResponse"] = 1038;
values[valuesById[1039] = "k_EMsgGCSetItemStyle"] = 1039;
values[valuesById[1040] = "k_EMsgGCUsedClaimCodeItem"] = 1040;
values[valuesById[1041] = "k_EMsgGCSortItems"] = 1041;
values[valuesById[1042] = "k_EMsgGC_RevolvingLootList_DEPRECATED"] = 1042;
values[valuesById[1043] = "k_EMsgGCLookupAccount"] = 1043;
values[valuesById[1044] = "k_EMsgGCLookupAccountResponse"] = 1044;
values[valuesById[1045] = "k_EMsgGCLookupAccountName"] = 1045;
values[valuesById[1046] = "k_EMsgGCLookupAccountNameResponse"] = 1046;
values[valuesById[1049] = "k_EMsgGCUpdateItemSchema"] = 1049;
values[valuesById[1050] = "k_EMsgGCRequestInventoryRefresh"] = 1050;
values[valuesById[1051] = "k_EMsgGCRemoveCustomTexture"] = 1051;
values[valuesById[1052] = "k_EMsgGCRemoveCustomTextureResponse"] = 1052;
values[valuesById[1053] = "k_EMsgGCRemoveMakersMark"] = 1053;
values[valuesById[1054] = "k_EMsgGCRemoveMakersMarkResponse"] = 1054;
values[valuesById[1055] = "k_EMsgGCRemoveUniqueCraftIndex"] = 1055;
values[valuesById[1056] = "k_EMsgGCRemoveUniqueCraftIndexResponse"] = 1056;
values[valuesById[1057] = "k_EMsgGCSaxxyBroadcast"] = 1057;
values[valuesById[1058] = "k_EMsgGCBackpackSortFinished"] = 1058;
values[valuesById[1059] = "k_EMsgGCAdjustItemEquippedState"] = 1059;
values[valuesById[1061] = "k_EMsgGCCollectItem"] = 1061;
values[valuesById[1062] = "k_EMsgGCItemAcknowledged"] = 1062;
values[valuesById[1063] = "k_EMsgGCPresets_SelectPresetForClass"] = 1063;
values[valuesById[1064] = "k_EMsgGCPresets_SetItemPosition"] = 1064;
values[valuesById[1065] = "k_EMsgGC_ReportAbuse"] = 1065;
values[valuesById[1066] = "k_EMsgGC_ReportAbuseResponse"] = 1066;
values[valuesById[1067] = "k_EMsgGCPresets_SelectPresetForClassReply"] = 1067;
values[valuesById[1068] = "k_EMsgGCNameItemNotification"] = 1068;
values[valuesById[1069] = "k_EMsgGCClientDisplayNotification"] = 1069;
values[valuesById[1070] = "k_EMsgGCApplyStrangePart"] = 1070;
values[valuesById[1071] = "k_EMsgGC_IncrementKillCountAttribute"] = 1071;
values[valuesById[1072] = "k_EMsgGC_IncrementKillCountResponse"] = 1072;
values[valuesById[1073] = "k_EMsgGCRemoveStrangePart"] = 1073;
values[valuesById[1074] = "k_EMsgGCResetStrangeScores"] = 1074;
values[valuesById[1075] = "k_EMsgGCGiftedItems"] = 1075;
values[valuesById[1077] = "k_EMsgGCApplyUpgradeCard"] = 1077;
values[valuesById[1078] = "k_EMsgGCRemoveUpgradeCard"] = 1078;
values[valuesById[1079] = "k_EMsgGCApplyStrangeRestriction"] = 1079;
values[valuesById[1080] = "k_EMsgGCClientRequestMarketData"] = 1080;
values[valuesById[1081] = "k_EMsgGCClientRequestMarketDataResponse"] = 1081;
values[valuesById[1082] = "k_EMsgGCApplyXifier"] = 1082;
values[valuesById[1083] = "k_EMsgGCApplyXifierResponse"] = 1083;
values[valuesById[1084] = "k_EMsgGC_TrackUniquePlayerPairEvent"] = 1084;
values[valuesById[1085] = "k_EMsgGCFulfillDynamicRecipeComponent"] = 1085;
values[valuesById[1086] = "k_EMsgGCFulfillDynamicRecipeComponentResponse"] = 1086;
values[valuesById[1087] = "k_EMsgGCSetItemEffectVerticalOffset"] = 1087;
values[valuesById[1088] = "k_EMsgGCSetHatEffectUseHeadOrigin"] = 1088;
values[valuesById[1089] = "k_EMsgGCItemEaterRecharger"] = 1089;
values[valuesById[1090] = "k_EMsgGCItemEaterRechargerResponse"] = 1090;
values[valuesById[1091] = "k_EMsgGCApplyBaseItemXifier"] = 1091;
values[valuesById[1092] = "k_EMsgGCApplyClassTransmogrifier"] = 1092;
values[valuesById[1093] = "k_EMsgGCApplyHalloweenSpellbookPage"] = 1093;
values[valuesById[1094] = "k_EMsgGCRemoveKillStreak"] = 1094;
values[valuesById[1095] = "k_EMsgGCRemoveKillStreakResponse"] = 1095;
values[valuesById[1096] = "k_EMsgGCTFSpecificItemBroadcast"] = 1096;
values[valuesById[1097] = "k_EMsgGC_IncrementKillCountAttribute_Multiple"] = 1097;
values[valuesById[1098] = "k_EMsgGCDeliverGiftResponseGiver"] = 1098;
values[valuesById[1100] = "k_EMsgGCSetItemPositions"] = 1100;
values[valuesById[1101] = "k_EMsgGCLookupMultipleAccountNames"] = 1101;
values[valuesById[1102] = "k_EMsgGCLookupMultipleAccountNamesResponse"] = 1102;
values[valuesById[1500] = "k_EMsgGCTradingBase"] = 1500;
values[valuesById[1501] = "k_EMsgGCTrading_InitiateTradeRequest"] = 1501;
values[valuesById[1502] = "k_EMsgGCTrading_InitiateTradeResponse"] = 1502;
values[valuesById[1503] = "k_EMsgGCTrading_StartSession"] = 1503;
values[valuesById[1509] = "k_EMsgGCTrading_SessionClosed"] = 1509;
values[valuesById[1510] = "k_EMsgGCTrading_CancelSession"] = 1510;
values[valuesById[1514] = "k_EMsgGCTrading_InitiateTradeRequestResponse"] = 1514;
values[valuesById[1601] = "k_EMsgGCServerBrowser_FavoriteServer"] = 1601;
values[valuesById[1602] = "k_EMsgGCServerBrowser_BlacklistServer"] = 1602;
values[valuesById[1700] = "k_EMsgGCServerRentalsBase"] = 1700;
values[valuesById[1701] = "k_EMsgGCItemPreviewCheckStatus"] = 1701;
values[valuesById[1702] = "k_EMsgGCItemPreviewStatusResponse"] = 1702;
values[valuesById[1703] = "k_EMsgGCItemPreviewRequest"] = 1703;
values[valuesById[1704] = "k_EMsgGCItemPreviewRequestResponse"] = 1704;
values[valuesById[1705] = "k_EMsgGCItemPreviewExpire"] = 1705;
values[valuesById[1706] = "k_EMsgGCItemPreviewExpireNotification"] = 1706;
values[valuesById[1708] = "k_EMsgGCItemPreviewItemBoughtNotification"] = 1708;
values[valuesById[2001] = "k_EMsgGCDev_NewItemRequest"] = 2001;
values[valuesById[2002] = "k_EMsgGCDev_NewItemRequestResponse"] = 2002;
values[valuesById[2003] = "k_EMsgGCDev_DebugRollLootRequest"] = 2003;
values[valuesById[2500] = "k_EMsgGCStoreGetUserData"] = 2500;
values[valuesById[2501] = "k_EMsgGCStoreGetUserDataResponse"] = 2501;
values[valuesById[2502] = "k_EMsgGCStorePurchaseInit_DEPRECATED"] = 2502;
values[valuesById[2503] = "k_EMsgGCStorePurchaseInitResponse_DEPRECATED"] = 2503;
values[valuesById[2512] = "k_EMsgGCStorePurchaseFinalize"] = 2512;
values[valuesById[2513] = "k_EMsgGCStorePurchaseFinalizeResponse"] = 2513;
values[valuesById[2514] = "k_EMsgGCStorePurchaseCancel"] = 2514;
values[valuesById[2515] = "k_EMsgGCStorePurchaseCancelResponse"] = 2515;
values[valuesById[2508] = "k_EMsgGCStorePurchaseQueryTxn"] = 2508;
values[valuesById[2509] = "k_EMsgGCStorePurchaseQueryTxnResponse"] = 2509;
values[valuesById[2510] = "k_EMsgGCStorePurchaseInit"] = 2510;
values[valuesById[2511] = "k_EMsgGCStorePurchaseInitResponse"] = 2511;
values[valuesById[2516] = "k_EMsgGCToGCDirtySDOCache"] = 2516;
values[valuesById[2517] = "k_EMsgGCToGCDirtyMultipleSDOCache"] = 2517;
values[valuesById[2518] = "k_EMsgGCToGCUpdateSQLKeyValue"] = 2518;
values[valuesById[2521] = "k_EMsgGCToGCBroadcastConsoleCommand"] = 2521;
values[valuesById[2522] = "k_EMsgGCServerVersionUpdated"] = 2522;
values[valuesById[2523] = "k_EMsgGCApplyAutograph"] = 2523;
values[valuesById[2524] = "k_EMsgGCToGCWebAPIAccountChanged"] = 2524;
values[valuesById[2525] = "k_EMsgGCRequestAnnouncements"] = 2525;
values[valuesById[2526] = "k_EMsgGCRequestAnnouncementsResponse"] = 2526;
values[valuesById[2527] = "k_EMsgGCRequestPassportItemGrant"] = 2527;
values[valuesById[2528] = "k_EMsgGCClientVersionUpdated"] = 2528;
values[valuesById[2531] = "k_EMsgGCItemPurgatory_FinalizePurchase"] = 2531;
values[valuesById[2532] = "k_EMsgGCItemPurgatory_FinalizePurchaseResponse"] = 2532;
values[valuesById[2533] = "k_EMsgGCItemPurgatory_RefundPurchase"] = 2533;
values[valuesById[2534] = "k_EMsgGCItemPurgatory_RefundPurchaseResponse"] = 2534;
values[valuesById[2535] = "k_EMsgGCToGCPlayerStrangeCountAdjustments"] = 2535;
values[valuesById[2536] = "k_EMsgGCRequestStoreSalesData"] = 2536;
values[valuesById[2537] = "k_EMsgGCRequestStoreSalesDataResponse"] = 2537;
values[valuesById[2538] = "k_EMsgGCRequestStoreSalesDataUpToDateResponse"] = 2538;
values[valuesById[2539] = "k_EMsgGCToGCPingRequest"] = 2539;
values[valuesById[2540] = "k_EMsgGCToGCPingResponse"] = 2540;
values[valuesById[2541] = "k_EMsgGCToGCGetUserSessionServer"] = 2541;
values[valuesById[2542] = "k_EMsgGCToGCGetUserSessionServerResponse"] = 2542;
values[valuesById[2543] = "k_EMsgGCToGCGetUserServerMembers"] = 2543;
values[valuesById[2544] = "k_EMsgGCToGCGetUserServerMembersResponse"] = 2544;
values[valuesById[2555] = "k_EMsgGCToGCGrantSelfMadeItemToAccount"] = 2555;
values[valuesById[2556] = "k_EMsgGCToGCThankedByNewUser"] = 2556;
values[valuesById[2557] = "k_EMsgGCShuffleCrateContents"] = 2557;
values[valuesById[2558] = "k_EMsgGCQuestObjective_Progress"] = 2558;
values[valuesById[2559] = "k_EMsgGCQuestCompleted"] = 2559;
values[valuesById[2560] = "k_EMsgGCApplyDuckToken"] = 2560;
values[valuesById[2562] = "k_EMsgGCQuestObjective_PointsChange"] = 2562;
values[valuesById[2564] = "k_EMsgGCQuestObjective_RequestLoanerItems"] = 2564;
values[valuesById[2565] = "k_EMsgGCQuestObjective_RequestLoanerResponse"] = 2565;
values[valuesById[2566] = "k_EMsgGCApplyStrangeCountTransfer"] = 2566;
values[valuesById[2567] = "k_EMsgGCCraftCollectionUpgrade"] = 2567;
values[valuesById[2568] = "k_EMsgGCCraftHalloweenOffering"] = 2568;
values[valuesById[2569] = "k_EMsgGCQuestDiscard_Request"] = 2569;
values[valuesById[2570] = "k_EMsgGCRemoveGiftedBy"] = 2570;
values[valuesById[2571] = "k_EMsgGCRemoveGiftedByResponse"] = 2571;
values[valuesById[2572] = "k_EMsgGCRemoveFestivizer"] = 2572;
values[valuesById[2573] = "k_EMsgGCRemoveFestivizerResponse"] = 2573;
values[valuesById[2574] = "k_EMsgGCCraftCommonStatClock"] = 2574;
return values;
})();
/**
* EGCMsgResponse enum.
* @exports EGCMsgResponse
* @enum {string}
* @property {number} k_EGCMsgResponseOK=0 k_EGCMsgResponseOK value
* @property {number} k_EGCMsgResponseDenied=1 k_EGCMsgResponseDenied value
* @property {number} k_EGCMsgResponseServerError=2 k_EGCMsgResponseServerError value
* @property {number} k_EGCMsgResponseTimeout=3 k_EGCMsgResponseTimeout value
* @property {number} k_EGCMsgResponseInvalid=4 k_EGCMsgResponseInvalid value
* @property {number} k_EGCMsgResponseNoMatch=5 k_EGCMsgResponseNoMatch value
* @property {number} k_EGCMsgResponseUnknownError=6 k_EGCMsgResponseUnknownError value
* @property {number} k_EGCMsgResponseNotLoggedOn=7 k_EGCMsgResponseNotLoggedOn value
* @property {number} k_EGCMsgFailedToCreate=8 k_EGCMsgFailedToCreate value
*/
$root.EGCMsgResponse = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "k_EGCMsgResponseOK"] = 0;
values[valuesById[1] = "k_EGCMsgResponseDenied"] = 1;
values[valuesById[2] = "k_EGCMsgResponseServerError"] = 2;
values[valuesById[3] = "k_EGCMsgResponseTimeout"] = 3;
values[valuesById[4] = "k_EGCMsgResponseInvalid"] = 4;
values[valuesById[5] = "k_EGCMsgResponseNoMatch"] = 5;
values[valuesById[6] = "k_EGCMsgResponseUnknownError"] = 6;
values[valuesById[7] = "k_EGCMsgResponseNotLoggedOn"] = 7;
values[valuesById[8] = "k_EGCMsgFailedToCreate"] = 8;
return values;
})();
/**
* EUnlockStyle enum.
* @exports EUnlockStyle
* @enum {string}
* @property {number} k_UnlockStyle_Succeeded=0 k_UnlockStyle_Succeeded value
* @property {number} k_UnlockStyle_Failed_PreReq=1 k_UnlockStyle_Failed_PreReq value
* @property {number} k_UnlockStyle_Failed_CantAfford=2 k_UnlockStyle_Failed_CantAfford value
* @property {number} k_UnlockStyle_Failed_CantCommit=3 k_UnlockStyle_Failed_CantCommit value
* @property {number} k_UnlockStyle_Failed_CantLockCache=4 k_UnlockStyle_Failed_CantLockCache value
* @property {number} k_UnlockStyle_Failed_CantAffordAttrib=5 k_UnlockStyle_Failed_CantAffordAttrib value
* @property {number} k_UnlockStyle_Failed_CantAffordGem=6 k_UnlockStyle_Failed_CantAffordGem value
*/
$root.EUnlockStyle = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "k_UnlockStyle_Succeeded"] = 0;
values[valuesById[1] = "k_UnlockStyle_Failed_PreReq"] = 1;
values[valuesById[2] = "k_UnlockStyle_Failed_CantAfford"] = 2;
values[valuesById[3] = "k_UnlockStyle_Failed_CantCommit"] = 3;
values[valuesById[4] = "k_UnlockStyle_Failed_CantLockCache"] = 4;
values[valuesById[5] = "k_UnlockStyle_Failed_CantAffordAttrib"] = 5;
values[valuesById[6] = "k_UnlockStyle_Failed_CantAffordGem"] = 6;
return values;
})();
/**
* EItemPurgatoryResponse_Finalize enum.
* @exports EItemPurgatoryResponse_Finalize
* @enum {string}
* @property {number} k_ItemPurgatoryResponse_Finalize_Succeeded=0 k_ItemPurgatoryResponse_Finalize_Succeeded value
* @property {number} k_ItemPurgatoryResponse_Finalize_Failed_Incomplete=1 k_ItemPurgatoryResponse_Finalize_Failed_Incomplete value
* @property {number} k_ItemPurgatoryResponse_Finalize_Failed_ItemsNotInPurgatory=2 k_ItemPurgatoryResponse_Finalize_Failed_ItemsNotInPurgatory value
* @property {number} k_ItemPurgatoryResponse_Finalize_Failed_CouldNotFindItems=3 k_ItemPurgatoryResponse_Finalize_Failed_CouldNotFindItems value
* @property {number} k_ItemPurgatoryResponse_Finalize_Failed_NoSOCache=4 k_ItemPurgatoryResponse_Finalize_Failed_NoSOCache value
* @property {number} k_ItemPurgatoryResponse_Finalize_BackpackFull=5 k_ItemPurgatoryResponse_Finalize_BackpackFull value
*/
$root.EItemPurgatoryResponse_Finalize = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "k_ItemPurgatoryResponse_Finalize_Succeeded"] = 0;
values[valuesById[1] = "k_ItemPurgatoryResponse_Finalize_Failed_Incomplete"] = 1;
values[valuesById[2] = "k_ItemPurgatoryResponse_Finalize_Failed_ItemsNotInPurgatory"] = 2;
values[valuesById[3] = "k_ItemPurgatoryResponse_Finalize_Failed_CouldNotFindItems"] = 3;
values[valuesById[4] = "k_ItemPurgatoryResponse_Finalize_Failed_NoSOCache"] = 4;
values[valuesById[5] = "k_ItemPurgatoryResponse_Finalize_BackpackFull"] = 5;
return values;
})();
/**
* EItemPurgatoryResponse_Refund enum.
* @exports EItemPurgatoryResponse_Refund
* @enum {string}
* @property {number} k_ItemPurgatoryResponse_Refund_Succeeded=0 k_ItemPurgatoryResponse_Refund_Succeeded value
* @property {number} k_ItemPurgatoryResponse_Refund_Failed_ItemNotInPurgatory=1 k_ItemPurgatoryResponse_Refund_Failed_ItemNotInPurgatory value
* @property {number} k_ItemPurgatoryResponse_Refund_Failed_CouldNotFindItem=2 k_ItemPurgatoryResponse_Refund_Failed_CouldNotFindItem value
* @property {number} k_ItemPurgatoryResponse_Refund_Failed_NoSOCache=3 k_ItemPurgatoryResponse_Refund_Failed_NoSOCache value
* @property {number} k_ItemPurgatoryResponse_Refund_Failed_NoDetail=4 k_ItemPurgatoryResponse_Refund_Failed_NoDetail value
* @property {number} k_ItemPurgatoryResponse_Refund_Failed_NexonWebAPI=5 k_ItemPurgatoryResponse_Refund_Failed_NexonWebAPI value
*/
$root.EItemPurgatoryResponse_Refund = (function() {
var valuesById = {}, values = Object.create(valuesById);
values[valuesById[0] = "k_ItemPurgatoryResponse_Refund_Succeeded"] = 0;
values[valuesById[1] = "k_ItemPurgatoryResponse_Refund_Failed_ItemNotInPurgatory"] = 1;
values[valuesById[2] = "k_ItemPurgatoryResponse_Refund_Failed_CouldNotFindItem"] = 2;
values[valuesById[3] = "k_ItemPurgatoryResponse_Refund_Failed_NoSOCache"] = 3;
values[valuesById[4] = "k_ItemPurgatoryResponse_Refund_Failed_NoDetail"] = 4;
values[valuesById[5] = "k_ItemPurgatoryResponse_Refund_Failed_NexonWebAPI"] = 5;
return values;
})();
$root.CMsgApplyAutograph = (function() {
/**
* Properties of a CMsgApplyAutograph.
* @exports ICMsgApplyAutograph
* @interface ICMsgApplyAutograph
* @property {number|Long|null} [autograph_item_id] CMsgApplyAutograph autograph_item_id
* @property {number|Long|null} [item_item_id] CMsgApplyAutograph item_item_id
*/
/**
* Constructs a new CMsgApplyAutograph.
* @exports CMsgApplyAutograph
* @classdesc Represents a CMsgApplyAutograph.
* @implements ICMsgApplyAutograph
* @constructor
* @param {ICMsgApplyAutograph=} [properties] Properties to set
*/
function CMsgApplyAutograph(properties) {
if (properties)
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
if (properties[keys[i]] != null)
this[keys[i]] = properties[keys[i]];
}
/**
* CMsgApplyAutograph autograph_item_id.
* @member {number|Long} autograph_item_id
* @memberof CMsgApplyAutograph
* @instance
*/
CMsgApplyAutograph.prototype.autograph_item_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
/**
* CMsgApplyAutograph item_item_id.
* @member {number|Long} item_item_id
* @memberof CMsgApplyAutograph
* @instance
*/
CMsgApplyAutograph.prototype.item_item_id = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
/**
* Creates a new CMsgApplyAutograph instance using the specified properties.
* @function create
* @memberof CMsgApplyAutograph
* @static
* @param {ICMsgApplyAutograph=} [properties] Properties to set
* @returns {CMsgApplyAutograph} CMsgApplyAutograph instance
*/
CMsgApplyAutograph.create = function create(properties) {
return new CMsgApplyAutograph(properties);
};
/**
* Encodes the specified CMsgApplyAutograph message. Does not implicitly {@link CMsgApplyAutograph.verify|verify} messages.
* @function encode
* @memberof CMsgApplyAutograph
* @static
* @param {ICMsgApplyAutograph} message CMsgApplyAutograph message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CMsgApplyAutograph.encode = function encode(message, writer) {
if (!writer)
writer = $Writer.create();
if (message.autograph_item_id != null && message.hasOwnProperty("autograph_item_id"))
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.autograph_item_id);
if (message.item_item_id != null && message.hasOwnProperty("item_item_id"))
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.item_item_id);
return writer;
};
/**
* Encodes the specified CMsgApplyAutograph message, length delimited. Does not implicitly {@link CMsgApplyAutograph.verify|verify} messages.
* @function encodeDelimited
* @memberof CMsgApplyAutograph
* @static
* @param {ICMsgApplyAutograph} message CMsgApplyAutograph message or plain object to encode
* @param {$protobuf.Writer} [writer] Writer to encode to
* @returns {$protobuf.Writer} Writer
*/
CMsgApplyAutograph.encodeDelimited = function encodeDelimited(message, writer) {
return this.encode(message, writer).ldelim();
};
/**
* Decodes a CMsgApplyAutograph message from the specified reader or buffer.
* @function decode
* @memberof CMsgApplyAutograph
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @param {number} [length] Message length if known beforehand
* @returns {CMsgApplyAutograph} CMsgApplyAutograph
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CMsgApplyAutograph.decode = function decode(reader, length) {
if (!(reader instanceof $Reader))
reader = $Reader.create(reader);
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CMsgApplyAutograph();
while (reader.pos < end) {
var tag = reader.uint32();
switch (tag >>> 3) {
case 1:
message.autograph_item_id = reader.uint64();
break;
case 2:
message.item_item_id = reader.uint64();
break;
default:
reader.skipType(tag & 7);
break;
}
}
return message;
};
/**
* Decodes a CMsgApplyAutograph message from the specified reader or buffer, length delimited.
* @function decodeDelimited
* @memberof CMsgApplyAutograph
* @static
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
* @returns {CMsgApplyAutograph} CMsgApplyAutograph
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
CMsgApplyAutograph.decodeDelimited = function decodeDelimited(reader) {
if (!(reader instanceof $Reader))
reader = new $Reader(reader);
return this.decode(reader, reader.uint32());
};
/**
* Verifies a CMsgApplyAutograph message.
* @function verify
* @memberof CMsgApplyAutograph
* @static
* @param {Object.<string,*>} message Plain object to verify
* @returns {string|null} `null` if valid, otherwise the reason why it is not
*/
CMsgApplyAutograph.verify = function verify(message) {
if (typeof message !== "object" || message === null)
return "object expected";
if (message.autograph_item_id != null && message.hasOwnProperty("autograph_item_id"))
if (!$util.isInteger(message.autograph_item_id) && !(message.autograph_item_id && $util.isInteger(message.autograph_item_id.low) && $util.isInteger(message.autograph_item_id.high)))
return "autograph_item_id: integer|Long expected";
if (message.item_item_id != null && message.hasOwnProperty("item_item_id"))
if (!$util.isInteger(message.item_item_id) && !(message.item_item_id && $util.isInteger(message.item_item_id.low) && $util.isInteger(message.item_item_id.high)))
return "item_item_id: integer|Long expected";
return null;
};
/**
* Creates a CMsgApplyAutograph message from a plain object. Also converts values to their respective internal types.
* @function fromObject
* @memberof CMsgApplyAutograph
* @static
* @param {Object.<string,*>} object Plain object
* @returns {CMsgApplyAutograph} CMsgApplyAutograph
*/
CMsgApplyAutograph.fromObject = function fromObject(object) {
if (object instanceof $root.CMsgApplyAutograph)
return object;
var message = new $root.CMsgApplyAutograph();
if (object.autograph_item_id != null)
if ($util.Long)
(message.autograph_item_id = $util.Long.fromValue(object.autograph_item_id)).unsigned = true;
else if (typeof object.autograph_item_id === "string")
message.autograph_item_id = parseInt(object.autograph_item_id, 10);
else if (typeof object.autograph_item_id === "number")
message.autograph_item_id = object.autograph_item_id;
else if (typeof object.autograph_item_id === "object")
message.autograph_item_id = new $util.LongBits(object.autograph_item_id.low >>> 0, object.autograph_item_id.high >>> 0).toNumber(true);
if (object.item_item_id != null)
if ($util.Long)
(message.item_item_id = $util.Long.fromValue(object.item_item_id)).unsigned = true;
else if (typeof object.item_item_id === "string")
message.item_item_id = parseInt(object.item_item_id, 10);
else if (typeof object.item_item_id === "number")
message.item_item_id = object.item_item_id;
else if (typeof object.item_item_id === "object")
message.item_item_id = new $util.LongBits(object.item_item_id.low >>> 0, object.item_item_id.high >>> 0).toNumber(true);
return message;
};
/**
* Creates a plain object from a CMsgApplyAutograph message. Also converts values to other types if specified.
* @function toObject
* @memberof CMsgApplyAutograph
* @static
* @param {CMsgApplyAutograph} message CMsgApplyAutograph
* @param {$protobuf.IConversionOptions} [options] Conversion options
* @returns {Object.<string,*>} Plain object
*/
CMsgApplyAutograph.toObject = function toObject(message, options) {
if (!options)
options = {};
var object = {};
if (options.defaults) {
if ($util.Long) {
var long = new $util.Long(0, 0, true);
object.autograph_item_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.autograph_item_id = options.longs === String ? "0" : 0;
if ($util.Long) {
var long = new $util.Long(0, 0, true);
object.item_item_id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
} else
object.item_item_id = options.longs === String ? "0" : 0;
}
if (message.autograph_item_id != null && message.hasOwnProperty("autograph_item_id"))
if (typeof message.autograph_item_id === "number")
object.autograph_item_id = options.longs === String ? String(message.autograph_item_id) : message.autograph_item_id;
else
object.autograph_item_id = options.longs === String ? $util.Long.prototype.toString.call(message.autograph_item_id) : options.longs === Number ? new $util.LongBits(message.autograph_item_id.low >>> 0, message.autograph_item_id.high >>> 0).toNumber(true) : message.autograph_item_id;
if (message.item_item_id != null && message.hasOwnProperty("item_item_id"))
if (typeof message.item_item_id === "number")
object.item_item_id = options.longs === String ? String(message.item_item_id) : message.item_item_id;
else
object.item_item_id = options.longs === String ? $util.Long.prototype.toString.call(message.item_item_id) : options.longs === Number ? new $util.LongBits(message.item_item_id.low >>> 0, message.item_item_id.high >>> 0).toNumber(true) : message.item_item_id;
return object;
};
/**
* Converts this CMsgApplyAutograph to JSON.
* @function toJSON
* @memberof CMsgApplyAutograph
* @instance
* @returns {Object.<string,*>} JSON object
*/
CMsgApplyAutograph.prototype.toJSON = function toJSON() {
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
};
return CMsgApplyAutograph;
})();
$root.CMsgEconPlayerStrangeCountAdjustment = (function() {
/**
* Properties of a CMsgEconPlayerStrangeCountAdjustment.
* @exports ICMsgEconPlayerStrangeCountAdjustment
* @interface ICMsgEconPlayerStrangeCountAdjustment
* @property {number|null} [account_id] CMsgEconPlayerStrangeCountAdjustment account_id
* @property {Array.<CMsgEconPlayerStrangeCountAdjustment.ICStrangeCountAdjustment>|null} [strange_count_adjustments] CMsgEconPlayerStrangeCountAdjustment strange_count_adjustments
*/
/**
* Constructs a new CMsgEconPlayerStrangeCountAdjustment.
* @exports CMsgEconPlayerStrangeCountAdjustment
* @classdesc Represents a CMsgEconPlayerStrangeCountAdjustment.
* @implements ICMsgEconPlayerStrangeCountAdjustment
* @constructor
* @param {ICMsgEconPlayerStrangeCountAdjustment=} [properties] Properties to set
*/
function CMsgEconPlayerStrangeCountAdjustment(properties) {
this.strange_count_adjustments = [];
if (properties)
for (var keys = Object.keys(propertie