@@ -38,7 +38,7 @@ Dota2.Dota2Client.prototype.requestPlayerMatchHistory = function(account_id, opt
38
38
payload . account_id = account_id ;
39
39
payload . matches_requested = payload . matches_requested || 1 ;
40
40
payload . request_id = payload . request_id || account_id ;
41
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgDOTAGetPlayerMatchHistory ,
41
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgDOTAGetPlayerMatchHistory ,
42
42
Dota2 . schema . lookupType ( "CMsgDOTAGetPlayerMatchHistory" ) . encode ( payload ) . finish ( ) ,
43
43
onPlayerMatchHistoryResponse , callback ) ;
44
44
} ;
@@ -63,7 +63,7 @@ Dota2.Dota2Client.prototype.requestProfileCard = function(account_id, callback)
63
63
var payload = {
64
64
"account_id" : account_id
65
65
} ;
66
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgClientToGCGetProfileCard ,
66
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgClientToGCGetProfileCard ,
67
67
Dota2 . schema . lookupType ( "CMsgClientToGCGetProfileCard" ) . encode ( payload ) . finish ( ) ,
68
68
onProfileCardResponse , callback ) ;
69
69
} ;
@@ -87,7 +87,7 @@ Dota2.Dota2Client.prototype.requestHallOfFame = function(week, callback) {
87
87
var payload = {
88
88
"week" : week
89
89
} ;
90
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgGCHallOfFameRequest ,
90
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgGCHallOfFameRequest ,
91
91
Dota2 . schema . lookupType ( "CMsgDOTAHallOfFameRequest" ) . encode ( payload ) . finish ( ) ,
92
92
onHallOfFameResponse , callback ) ;
93
93
} ;
@@ -115,7 +115,7 @@ Dota2.Dota2Client.prototype.requestPlayerInfo = function(account_ids) {
115
115
var payload = {
116
116
player_infos : account_ids
117
117
} ;
118
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgGCPlayerInfoRequest ,
118
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgGCPlayerInfoRequest ,
119
119
Dota2 . schema . lookupType ( "CMsgGCPlayerInfoRequest" ) . encode ( payload ) . finish ( ) ) ;
120
120
} ;
121
121
@@ -137,7 +137,7 @@ Dota2.Dota2Client.prototype.requestTrophyList = function(account_id, callback) {
137
137
var payload = {
138
138
"account_id" : account_id
139
139
} ;
140
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgClientToGCGetTrophyList ,
140
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgClientToGCGetTrophyList ,
141
141
Dota2 . schema . lookupType ( "CMsgClientToGCGetTrophyList" ) . encode ( payload ) . finish ( ) ,
142
142
onTrophyListResponse , callback ) ;
143
143
} ;
@@ -161,7 +161,7 @@ Dota2.Dota2Client.prototype.requestPlayerStats = function(account_id, callback)
161
161
var payload = {
162
162
"account_id" : account_id
163
163
} ;
164
- this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgClientToGCPlayerStatsRequest ,
164
+ this . sendToGC ( Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgClientToGCPlayerStatsRequest ,
165
165
Dota2 . schema . lookupType ( "CMsgClientToGCPlayerStatsRequest" ) . encode ( payload ) . finish ( ) ,
166
166
onPlayerStatsResponse , callback ) ;
167
167
}
@@ -272,7 +272,7 @@ var onPlayerMatchHistoryResponse = function onPlayerMatchHistoryResponse(message
272
272
if ( callback ) callback ( matchHistoryResponse . result , matchHistoryResponse ) ;
273
273
}
274
274
} ;
275
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgDOTAGetPlayerMatchHistoryResponse ] = onPlayerMatchHistoryResponse ;
275
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgDOTAGetPlayerMatchHistoryResponse ] = onPlayerMatchHistoryResponse ;
276
276
277
277
var onProfileCardResponse = function onProfileCardResponse ( message , callback ) {
278
278
callback = callback || null ;
@@ -282,7 +282,7 @@ var onProfileCardResponse = function onProfileCardResponse(message, callback) {
282
282
this . emit ( "profileCardData" , profileCardResponse . account_id , profileCardResponse ) ;
283
283
if ( callback ) callback ( null , profileCardResponse ) ;
284
284
} ;
285
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgClientToGCGetProfileCardResponse ] = onProfileCardResponse ;
285
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgClientToGCGetProfileCardResponse ] = onProfileCardResponse ;
286
286
287
287
var onHallOfFameResponse = function onHallOfFameResponse ( message , callback ) {
288
288
callback = callback || null ;
@@ -297,15 +297,15 @@ var onHallOfFameResponse = function onHallOfFameResponse(message, callback) {
297
297
if ( callback ) callback ( hallOfFameResponse . result , hallOfFameResponse ) ;
298
298
}
299
299
} ;
300
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgGCHallOfFameResponse ] = onHallOfFameResponse ;
300
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgGCHallOfFameResponse ] = onHallOfFameResponse ;
301
301
302
302
var onPlayerInfoResponse = function onPlayerInfoResponse ( message ) {
303
303
var playerInfoResponse = Dota2 . schema . lookupType ( "CMsgGCPlayerInfo" ) . decode ( message ) ;
304
304
305
305
if ( this . debug ) util . log ( "Received new player info data" ) ;
306
306
this . emit ( "playerInfoData" , playerInfoResponse ) ;
307
307
} ;
308
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgGCPlayerInfo ] = onPlayerInfoResponse ;
308
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgGCPlayerInfo ] = onPlayerInfoResponse ;
309
309
310
310
var onTrophyListResponse = function onTrophyListResponse ( message , callback ) {
311
311
var trophyListResponse = Dota2 . schema . lookupType ( "CMsgClientToGCGetTrophyListResponse" ) . decode ( message ) ;
@@ -314,7 +314,7 @@ var onTrophyListResponse = function onTrophyListResponse(message, callback) {
314
314
this . emit ( "trophyListData" , trophyListResponse ) ;
315
315
if ( callback ) callback ( null , trophyListResponse ) ;
316
316
} ;
317
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgClientToGCGetTrophyListResponse ] = onTrophyListResponse ;
317
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgClientToGCGetTrophyListResponse ] = onTrophyListResponse ;
318
318
319
319
var onPlayerStatsResponse = function onPlayerStatsResponse ( message , callback ) {
320
320
var playerStatsResponse = Dota2 . schema . lookupType ( "CMsgGCToClientPlayerStatsResponse" ) . decode ( message ) ;
@@ -324,4 +324,4 @@ var onPlayerStatsResponse = function onPlayerStatsResponse(message, callback) {
324
324
if ( callback ) callback ( null , playerStatsResponse ) ;
325
325
326
326
} ;
327
- handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . k_EMsgGCToClientPlayerStatsResponse ] = onPlayerStatsResponse ;
327
+ handlers [ Dota2 . schema . lookupEnum ( "EDOTAGCMsg" ) . values . k_EMsgGCToClientPlayerStatsResponse ] = onPlayerStatsResponse ;
0 commit comments