Skip to content

Commit c3b7518

Browse files
committed
fix: switch to new profile structures
1 parent 81ed030 commit c3b7518

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

apigen/msg_overrides.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ var msgSenderOverrides = map[dm.EDOTAGCMsg]MsgSender{
177177

178178
dm.EDOTAGCMsg_k_EMsgGCToClientAllStarVotesSubmit: MsgSenderNone,
179179
dm.EDOTAGCMsg_k_EMsgGCToClientAllStarVotesSubmitReply: MsgSenderNone,
180+
181+
dm.EDOTAGCMsg_k_EMsgGCProfileRequest: MsgSenderNone,
182+
dm.EDOTAGCMsg_k_EMsgGCProfileResponse: MsgSenderNone,
180183
}
181184

182185
// msgMethodNameOverrides overrides the generated client method names.

client_generated.go

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3271,29 +3271,6 @@ func (d *Dota2) RequestProfile(
32713271
)
32723272
}
32733273

3274-
// RequestProfile requests a profile.
3275-
// Request ID: k_EMsgGCProfileRequest
3276-
// Response ID: k_EMsgGCProfileResponse
3277-
// Request type: CMsgProfileRequest
3278-
// Response type: CMsgProfileResponse
3279-
func (d *Dota2) RequestProfile(
3280-
ctx context.Context,
3281-
accountID uint32,
3282-
) (*dota_gcmessages_client.CMsgProfileResponse, error) {
3283-
req := &dota_gcmessages_client.CMsgProfileRequest{
3284-
AccountId: &accountID,
3285-
}
3286-
resp := &dota_gcmessages_client.CMsgProfileResponse{}
3287-
3288-
return resp, d.MakeRequest(
3289-
ctx,
3290-
uint32(dota_gcmessages_msgid.EDOTAGCMsg_k_EMsgGCProfileRequest),
3291-
req,
3292-
uint32(dota_gcmessages_msgid.EDOTAGCMsg_k_EMsgGCProfileResponse),
3293-
resp,
3294-
)
3295-
}
3296-
32973274
// RequestQuickStats requests quick stats.
32983275
// Request ID: k_EMsgClientToGCQuickStatsRequest
32993276
// Response ID: k_EMsgClientToGCQuickStatsResponse

0 commit comments

Comments
 (0)