dac

package module
v0.0.0-...-316a96e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 12 Imported by: 0

README

Dota Underlords

GoDoc Widget Go Report Card Widget

Introduction

go-underlords is a DOTA Auto Chess (Underlords) client plugin for go-steam.

Games implemented:

This project makes use of a dynamic API generator (apigen) designed to automatically interpret Valve's various naming conventions into a intermediate API scheme representation, which is then converted into Go code.

SOCache Mechanism

The caching mechanism makes it easy to watch for changes to common objects, like Lobby, LobbyInvite, Party, PartyInvite.

This mechanism is used everywhere, these objects are not exposed in their own events.

import (
	gcmm "github.com/paralin/go-underlords/protocol"
	"github.com/paralin/go-underlords/cso"
)

eventCh, eventCancel, err := dota.GetCache().SubscribeType(cso.Lobby)
if err != nil {
    return err
}

defer eventCancel()

lobbyEvent := <-eventCh
lobby := lobbyEvent.Object.(*gcmm.CSODACLobby)

Events for the object type are emitted on the eventCh. Be sure to call eventCancel once you are done with the channel to prevent resource leaks.

The cache object also adds interfaces to get and list the current objects in the cache.

Implementation Generation

The base API implementation is generated by the apigen code. Using heuristics, request IDs are matched to response IDs, and events and action-only requests are identified. Some manual tweaking is done in the overrides file.

Next, the API information is used to build a Go code-gen set of implementations around the MakeRequest request tracking mechanism.

This means that ALL of the Underlords API will be available in this codebase, although only some of it is documented.

go-steam Dependency

This library depends on go-steam. Currently we are using the FACEIT fork.

Documentation

Index

Constants

View Source
const AppID = 1046930

AppID is the ID for underlords

Variables

View Source
var ErrNotReady = errors.New("client not ready")

ErrNotReady is returned when the client is not ready.

Functions

This section is empty.

Types

type DAC

type DAC struct {
	// contains filtered or unexported fields
}

DAC handles the dota game handler.

func New

func New(client *steam.Client, le *logrus.Entry) *DAC

New builds a new DAC handler.

func (*DAC) CheckFriendCode

func (d *DAC) CheckFriendCode(
	ctx context.Context,
	friendCode uint64,
) (*protocol.CMsgClientToGCCheckFriendCodeResponse, error)

CheckFriendCode checks a friend code. Request ID: k_EMsgClientToGCCheckFriendCode Response ID: k_EMsgClientToGCCheckFriendCodeResponse Request type: CMsgClientToGCCheckFriendCode Response type: CMsgClientToGCCheckFriendCodeResponse

func (*DAC) Close

func (d *DAC) Close()

Close kills any ongoing calls.

func (*DAC) CreateFriendCode

func (d *DAC) CreateFriendCode(
	ctx context.Context,
) (*protocol.CMsgClientToGCCreateFriendCodeResponse, error)

CreateFriendCode creates a friend code. Request ID: k_EMsgClientToGCCreateFriendCode Response ID: k_EMsgClientToGCCreateFriendCodeResponse Request type: CMsgClientToGCCreateFriendCode Response type: CMsgClientToGCCreateFriendCodeResponse

func (*DAC) CreateParty

func (d *DAC) CreateParty(
	ctx context.Context,
	partyMmInfo protocol.CMsgPartyMMInfo,
	startReady bool,
	inviteAccountID uint32,
	disablePartyCode bool,
) (*protocol.CMsgClientToGCPartyCreateResponse, error)

CreateParty creates a party. Request ID: k_EMsgClientToGCPartyCreate Response ID: k_EMsgClientToGCPartyCreateResponse Request type: CMsgClientToGCPartyCreate Response type: CMsgClientToGCPartyCreateResponse

func (*DAC) GetCache

func (d *DAC) GetCache() *socache.SOCache

GetCache returns the SO Cache.

func (*DAC) GetDuosRanks

func (d *DAC) GetDuosRanks(
	ctx context.Context,
	accountID uint32,
	cursorValue uint32,
	batchSize uint32,
	sortOrder protocol.CMsgClientToGCGetDuosRanks_ESortOrder,
) (*protocol.CMsgClientToGCGetDuosRanksResponse, error)

GetDuosRanks gets duos ranks. Request ID: k_EMsgClientToGCGetDuosRanks Response ID: k_EMsgClientToGCGetDuosRanksResponse Request type: CMsgClientToGCGetDuosRanks Response type: CMsgClientToGCGetDuosRanksResponse

func (*DAC) GetFriendCodes

func (d *DAC) GetFriendCodes(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetFriendCodesResponse, error)

GetFriendCodes gets friend codes. Request ID: k_EMsgClientToGCGetFriendCodes Response ID: k_EMsgClientToGCGetFriendCodesResponse Request type: CMsgClientToGCGetFriendCodes Response type: CMsgClientToGCGetFriendCodesResponse

func (*DAC) GetFriendRanks

func (d *DAC) GetFriendRanks(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetFriendRanksResponse, error)

GetFriendRanks gets friend ranks. Request ID: k_EMsgClientToGCGetFriendRanks Response ID: k_EMsgClientToGCGetFriendRanksResponse Request type: CMsgClientToGCGetFriendRanks Response type: CMsgClientToGCGetFriendRanksResponse

func (*DAC) GetMatchHistory

func (d *DAC) GetMatchHistory(
	ctx context.Context,
	accountID uint32,
	requestRows uint32,
	matchIDCursor uint64,
) (*protocol.CMsgClientToGCGetMatchHistoryResponse, error)

GetMatchHistory gets a match history. Request ID: k_EMsgClientToGCGetMatchHistory Response ID: k_EMsgClientToGCGetMatchHistoryResponse Request type: CMsgClientToGCGetMatchHistory Response type: CMsgClientToGCGetMatchHistoryResponse

func (*DAC) GetPostMatchStats

func (d *DAC) GetPostMatchStats(
	ctx context.Context,
	matchID uint64,
) (*protocol.CMsgClientToGCGetPostMatchStatsResponse, error)

GetPostMatchStats gets post match stats. Request ID: k_EMsgClientToGCGetPostMatchStats Response ID: k_EMsgClientToGCGetPostMatchStatsResponse Request type: CMsgClientToGCGetPostMatchStats Response type: CMsgClientToGCGetPostMatchStatsResponse

func (*DAC) GetProfile

func (d *DAC) GetProfile(
	ctx context.Context,
	accountID uint32,
) (*protocol.CMsgClientToGCGetProfileResponse, error)

GetProfile gets a profile. Request ID: k_EMsgClientToGCGetProfile Response ID: k_EMsgClientToGCGetProfileResponse Request type: CMsgClientToGCGetProfile Response type: CMsgClientToGCGetProfileResponse

func (*DAC) GetPuzzleLeaderboards

func (d *DAC) GetPuzzleLeaderboards(
	ctx context.Context,
	puzzleID uint32,
	count uint32,
) (*protocol.CMsgClientToGCGetPuzzleLeaderboardsResponse, error)

GetPuzzleLeaderboards gets puzzle leaderboards. Request ID: k_EMsgClientToGCGetPuzzleLeaderboards Response ID: k_EMsgClientToGCGetPuzzleLeaderboardsResponse Request type: CMsgClientToGCGetPuzzleLeaderboards Response type: CMsgClientToGCGetPuzzleLeaderboardsResponse

func (*DAC) GetRegionModeInfo

func (d *DAC) GetRegionModeInfo(
	ctx context.Context,
) (*protocol.CMsgClientToGCGetRegionModeInfoResponse, error)

GetRegionModeInfo gets a region mode info. Request ID: k_EMsgClientToGCGetRegionModeInfo Response ID: k_EMsgClientToGCGetRegionModeInfoResponse Request type: CMsgClientToGCGetRegionModeInfo Response type: CMsgClientToGCGetRegionModeInfoResponse

func (*DAC) HandleGCPacket

func (d *DAC) HandleGCPacket(packet *gamecoordinator.GCPacket)

HandleGCPacket handles an incoming game coordinator packet.

func (*DAC) InviteLobbyMember

func (d *DAC) InviteLobbyMember(playerID steamid.SteamId)

InviteLobbyMember attempts to invite a player to the current lobby.

func (*DAC) JoinParty

func (d *DAC) JoinParty(
	ctx context.Context,
	partyID uint64,
	isRejoin bool,
	partyMmInfo protocol.CMsgPartyMMInfo,
	startReady bool,
) (*protocol.CMsgClientToGCPartyJoinResponse, error)

JoinParty joins a party. Request ID: k_EMsgClientToGCPartyJoin Response ID: k_EMsgClientToGCPartyJoinResponse Request type: CMsgClientToGCPartyJoin Response type: CMsgClientToGCPartyJoinResponse

func (*DAC) JoinPartyViaCode

func (d *DAC) JoinPartyViaCode(
	ctx context.Context,
	joinCode uint64,
	partyMmInfo protocol.CMsgPartyMMInfo,
	startReady bool,
) (*protocol.CMsgClientToGCPartyJoinViaCodeResponse, error)

JoinPartyViaCode joins a party via code. Request ID: k_EMsgClientToGCPartyJoinViaCode Response ID: k_EMsgClientToGCPartyJoinViaCodeResponse Request type: CMsgClientToGCPartyJoinViaCode Response type: CMsgClientToGCPartyJoinViaCodeResponse

func (*DAC) LeaveLobby

func (d *DAC) LeaveLobby(
	ctx context.Context,
	lobbyID uint64,
) (*protocol.CMsgClientToGCLeaveLobbyResponse, error)

LeaveLobby leaves a lobby. Request ID: k_EMsgClientToGCLeaveLobby Response ID: k_EMsgClientToGCLeaveLobbyResponse Request type: CMsgClientToGCLeaveLobby Response type: CMsgClientToGCLeaveLobbyResponse

func (*DAC) LeaveParty

func (d *DAC) LeaveParty(
	ctx context.Context,
	partyID uint64,
) (*protocol.CMsgClientToGCPartyLeaveResponse, error)

LeaveParty leaves a party. Request ID: k_EMsgClientToGCPartyLeave Response ID: k_EMsgClientToGCPartyLeaveResponse Request type: CMsgClientToGCPartyLeave Response type: CMsgClientToGCPartyLeaveResponse

func (*DAC) LeavePartyGCBase

func (d *DAC) LeavePartyGCBase()

LeavePartyGCBase attempts to leave the current party using the GC base party system.

func (*DAC) MakeRequest

func (d *DAC) MakeRequest(
	ctx context.Context,
	reqMsgID uint32,
	request proto.Message,
	respMsgID uint32,
	response proto.Message,
	matchesRequest ...func(proto.Message) bool,
) (mrErr error)

MakeRequest starts and tracks a request given a context.

func (*DAC) PurchaseCanItem

PurchaseCanItem purchases a can item. Request ID: k_EMsgClientToGCCanPurchaseItem Response ID: k_EMsgClientToGCCanPurchaseItemResponse Request type: CMsgClientToGCCanPurchaseItem Response type: CMsgClientToGCCanPurchaseItemResponse

func (*DAC) PurchaseClearReserve

func (d *DAC) PurchaseClearReserve(
	ctx context.Context,
	defIndex uint32,
	storeID protocol.EDACStoreID,
	deviceID uint64,
) (*protocol.CMsgClientToGCClearPurchaseReserveResponse, error)

PurchaseClearReserve purchases a clear reserve. Request ID: k_EMsgClientToGCClearPurchaseReserve Response ID: k_EMsgClientToGCClearPurchaseReserveResponse Request type: CMsgClientToGCClearPurchaseReserve Response type: CMsgClientToGCClearPurchaseReserveResponse

func (*DAC) PurchaseEvent

func (d *DAC) PurchaseEvent(
	ctx context.Context,
	eventID uint32,
	expectedCredits uint32,
) (*protocol.CMsgClientToGCEventPurchaseResponse, error)

PurchaseEvent purchases a event. Request ID: k_EMsgClientToGCEventPurchase Response ID: k_EMsgClientToGCEventPurchaseResponse Request type: CMsgClientToGCEventPurchase Response type: CMsgClientToGCEventPurchaseResponse

func (*DAC) PurchaseEventCurrency

func (d *DAC) PurchaseEventCurrency(
	ctx context.Context,
	eventID uint32,
	purchaseQuantity uint32,
	expectedCost uint32,
	currencyID uint32,
	startingBalance uint32,
) (*protocol.CMsgClientToGCEventPurchaseCurrencyResponse, error)

PurchaseEventCurrency purchases a event currency. Request ID: k_EMsgClientToGCEventPurchaseCurrency Response ID: k_EMsgClientToGCEventPurchaseCurrencyResponse Request type: CMsgClientToGCEventPurchaseCurrency Response type: CMsgClientToGCEventPurchaseCurrencyResponse

func (*DAC) PurchaseItemHandle

PurchaseItemHandle purchases a item handle. Request ID: k_EMsgClientToGCHandleItemPurchase Response ID: k_EMsgClientToGCHandleItemPurchaseResponse Request type: CMsgClientToGCHandleItemPurchase Response type: CMsgClientToGCHandleItemPurchaseResponse

func (*DAC) RecordLocalBotMatch

func (d *DAC) RecordLocalBotMatch(
	req *protocol.CMsgClientToGCRecordLocalBotMatch,
)

RecordLocalBotMatch records a local bot match. Request ID: k_EMsgClientToGCRecordLocalBotMatch Request type: CMsgClientToGCRecordLocalBotMatch

func (*DAC) RedeemFriendCode

func (d *DAC) RedeemFriendCode(
	ctx context.Context,
	friendCode uint64,
	targetAccountID uint32,
) (*protocol.CMsgClientToGCRedeemFriendCodeResponse, error)

RedeemFriendCode redeems a friend code. Request ID: k_EMsgClientToGCRedeemFriendCode Response ID: k_EMsgClientToGCRedeemFriendCodeResponse Request type: CMsgClientToGCRedeemFriendCode Response type: CMsgClientToGCRedeemFriendCodeResponse

func (*DAC) RequestCacheSubscriptionRefresh

func (d *DAC) RequestCacheSubscriptionRefresh(ownerSoid *gcsdkm.CMsgSOIDOwner)

RequestCacheSubscriptionRefresh requests a subscription refresh for a specific cache ID.

func (*DAC) RequestEventInfo

func (d *DAC) RequestEventInfo(
	accountID uint32,
	eventID uint32,
)

RequestEventInfo requests a event info. Request ID: k_EMsgClientToGCEventRequestInfo Request type: CMsgClientToGCEventRequestInfo

func (*DAC) RequestEventInfoSync

func (d *DAC) RequestEventInfoSync(
	ctx context.Context,
	accountID uint32,
	eventID uint32,
) (*protocol.CMsgClientToGCEventRequestInfoSyncResponse, error)

RequestEventInfoSync requests a event info sync. Request ID: k_EMsgClientToGCEventRequestInfoSync Response ID: k_EMsgClientToGCEventRequestInfoSyncResponse Request type: CMsgClientToGCEventRequestInfoSync Response type: CMsgClientToGCEventRequestInfoSyncResponse

func (*DAC) RerollChallenge

func (d *DAC) RerollChallenge(
	ctx context.Context,
	eventID uint32,
	slotID uint32,
	sequenceID uint32,
) (*protocol.CMsgClientToGCRerollChallengeResponse, error)

RerollChallenge rerolls a challenge. Request ID: k_EMsgClientToGCRerollChallenge Response ID: k_EMsgClientToGCRerollChallengeResponse Request type: CMsgClientToGCRerollChallenge Response type: CMsgClientToGCRerollChallengeResponse

func (*DAC) RevokeFriendCode

func (d *DAC) RevokeFriendCode(
	ctx context.Context,
	friendCode uint64,
) (*protocol.CMsgClientToGCRevokeFriendCodeResponse, error)

RevokeFriendCode revokes a friend code. Request ID: k_EMsgClientToGCRevokeFriendCode Response ID: k_EMsgClientToGCRevokeFriendCodeResponse Request type: CMsgClientToGCRevokeFriendCode Response type: CMsgClientToGCRevokeFriendCodeResponse

func (*DAC) SayHello

func (d *DAC) SayHello(haveCacheVersions ...*gcsdkm.CMsgSOCacheHaveVersion)

SayHello says hello to the DAC server, in an attempt to get a session.

func (*DAC) SendAckSupportCredits

func (d *DAC) SendAckSupportCredits(
	ctx context.Context,
	itemID uint64,
) (*protocol.CMsgClientToGCAckSupportCreditsResponse, error)

SendAckSupportCredits sends ack support credits. Request ID: k_EMsgClientToGCAckSupportCredits Response ID: k_EMsgClientToGCAckSupportCreditsResponse Request type: CMsgClientToGCAckSupportCredits Response type: CMsgClientToGCAckSupportCreditsResponse

func (*DAC) SendAssociateDevice

func (d *DAC) SendAssociateDevice(
	ctx context.Context,
	deviceID uint64,
	platform protocol.EDACPlatform,
	salt uint32,
) (*protocol.CMsgClientToGCAssociateDeviceResponse, error)

SendAssociateDevice sends a associate device. Request ID: k_EMsgClientToGCAssociateDevice Response ID: k_EMsgClientToGCAssociateDeviceResponse Request type: CMsgClientToGCAssociateDevice Response type: CMsgClientToGCAssociateDeviceResponse

func (*DAC) SendClaimChallengeReward

func (d *DAC) SendClaimChallengeReward(
	ctx context.Context,
	eventID uint32,
	slotID uint32,
	sequenceID uint32,
	startingClaimed uint32,
) (*protocol.CMsgClientToGCClaimChallengeRewardResponse, error)

SendClaimChallengeReward sends a claim challenge reward. Request ID: k_EMsgClientToGCClaimChallengeReward Response ID: k_EMsgClientToGCClaimChallengeRewardResponse Request type: CMsgClientToGCClaimChallengeReward Response type: CMsgClientToGCClaimChallengeRewardResponse

func (*DAC) SendDevEventOperation

SendDevEventOperation sends a dev event operation. Request ID: k_EMsgClientToGCDevEventOperation Response ID: k_EMsgClientToGCDevEventOperationResponse Request type: CMsgClientToGCDevEventOperation Response type: CMsgClientToGCDevEventOperationResponse

func (*DAC) SendDevForceMatchFormation

func (d *DAC) SendDevForceMatchFormation()

SendDevForceMatchFormation sends a dev force match formation. Request ID: k_EMsgClientToGCDevForceMatchFormation Request type: CMsgClientToGCDevForceMatchFormation

func (*DAC) SendDevOperation

func (d *DAC) SendDevOperation(
	ctx context.Context,
	op protocol.CMsgClientToGCDevOperation_EOperation,
	uintValue uint64,
	strValue string,
	uintValue2 uint64,
) (*protocol.CMsgClientToGCDevOperationResponse, error)

SendDevOperation sends a dev operation. Request ID: k_EMsgClientToGCDevOperation Response ID: k_EMsgClientToGCDevOperationResponse Request type: CMsgClientToGCDevOperation Response type: CMsgClientToGCDevOperationResponse

func (*DAC) SendEquipLoadout

func (d *DAC) SendEquipLoadout(
	ctx context.Context,
	loadoutSlot []uint32,
	itemID []uint64,
	loadoutSubSlot []uint32,
) (*protocol.CMsgClientToGCEquipLoadoutResponse, error)

SendEquipLoadout sends a equip loadout. Request ID: k_EMsgClientToGCEquipLoadout Response ID: k_EMsgClientToGCEquipLoadoutResponse Request type: CMsgClientToGCEquipLoadout Response type: CMsgClientToGCEquipLoadoutResponse

func (*DAC) SendEventChallengeProgress

func (d *DAC) SendEventChallengeProgress(
	ctx context.Context,
	eventID uint32,
	slotID uint32,
	sequenceID uint32,
	progress uint32,
	auditData uint64,
) (*protocol.CMsgClientToGCEventChallengeProgressResponse, error)

SendEventChallengeProgress sends event challenge progress. Request ID: k_EMsgClientToGCEventChallengeProgress Response ID: k_EMsgClientToGCEventChallengeProgressResponse Request type: CMsgClientToGCEventChallengeProgress Response type: CMsgClientToGCEventChallengeProgressResponse

func (*DAC) SendEventChallengeProgressWithCurrency

SendEventChallengeProgressWithCurrency sends a event challenge progress with currency. Request ID: k_EMsgClientToGCEventChallengeProgressWithCurrency Response ID: k_EMsgClientToGCEventChallengeProgressWithCurrencyResponse Request type: CMsgClientToGCEventChallengeProgressWithCurrency Response type: CMsgClientToGCEventChallengeProgressWithCurrencyResponse

func (*DAC) SendEventClaim

func (d *DAC) SendEventClaim(
	ctx context.Context,
	eventID uint32,
	claimID uint32,
	startingValue uint32,
) (*protocol.CMsgClientToGCEventClaimResponse, error)

SendEventClaim sends a event claim. Request ID: k_EMsgClientToGCEventClaim Response ID: k_EMsgClientToGCEventClaimResponse Request type: CMsgClientToGCEventClaim Response type: CMsgClientToGCEventClaimResponse

func (*DAC) SendEventEquipVirtualItems

SendEventEquipVirtualItems sends event equip virtual items. Request ID: k_EMsgClientToGCEventEquipVirtualItems Response ID: k_EMsgClientToGCEventEquipVirtualItemsResponse Request type: CMsgClientToGCEventEquipVirtualItems Response type: CMsgClientToGCEventEquipVirtualItemsResponse

func (*DAC) SendIsInMatchmaking

func (d *DAC) SendIsInMatchmaking(
	ctx context.Context,
) (*protocol.CMsgClientToGCIsInMatchmakingResponse, error)

SendIsInMatchmaking sends a is in matchmaking. Request ID: k_EMsgClientToGCIsInMatchmaking Response ID: k_EMsgClientToGCIsInMatchmakingResponse Request type: CMsgClientToGCIsInMatchmaking Response type: CMsgClientToGCIsInMatchmakingResponse

func (*DAC) SendPartyAction

func (d *DAC) SendPartyAction(
	ctx context.Context,
	partyID uint64,
	targetAccountID uint32,
	actionID protocol.CMsgClientToGCPartyAction_EAction,
	uintValue uint64,
	boolValue bool,
) (*protocol.CMsgClientToGCPartyActionResponse, error)

SendPartyAction sends a party action. Request ID: k_EMsgClientToGCPartyAction Response ID: k_EMsgClientToGCPartyActionResponse Request type: CMsgClientToGCPartyAction Response type: CMsgClientToGCPartyActionResponse

func (*DAC) SendPartyClientVersion

func (d *DAC) SendPartyClientVersion(
	partyID uint64,
	partyMmInfo protocol.CMsgPartyMMInfo,
)

SendPartyClientVersion sends a party client version. Request ID: k_EMsgClientToGCPartyClientVersion Request type: CMsgClientToGCPartyClientVersion

func (*DAC) SendPartyInviteUser

func (d *DAC) SendPartyInviteUser(
	ctx context.Context,
	partyID uint64,
	inviteAccountID uint32,
) (*protocol.CMsgClientToGCPartyInviteUserResponse, error)

SendPartyInviteUser sends a party invite user. Request ID: k_EMsgClientToGCPartyInviteUser Response ID: k_EMsgClientToGCPartyInviteUserResponse Request type: CMsgClientToGCPartyInviteUser Response type: CMsgClientToGCPartyInviteUserResponse

func (*DAC) SendPerformAutoActions

func (d *DAC) SendPerformAutoActions(
	ctx context.Context,
	eventID uint32,
	updateChallengeSlots []uint32,
	updateClaims []uint32,
) (*protocol.CMsgClientToGCPerformAutoActionsResponse, error)

SendPerformAutoActions sends perform auto actions. Request ID: k_EMsgClientToGCPerformAutoActions Response ID: k_EMsgClientToGCPerformAutoActionsResponse Request type: CMsgClientToGCPerformAutoActions Response type: CMsgClientToGCPerformAutoActionsResponse

func (*DAC) SendReplacementSDRTicket

func (d *DAC) SendReplacementSDRTicket(
	ctx context.Context,
	lobbyID uint64,
) (*protocol.CMsgClientToGCReplacementSDRTicketResponse, error)

SendReplacementSDRTicket sends a replacement sdr ticket. Request ID: k_EMsgClientToGCReplacementSDRTicket Response ID: k_EMsgClientToGCReplacementSDRTicketResponse Request type: CMsgClientToGCReplacementSDRTicket Response type: CMsgClientToGCReplacementSDRTicketResponse

func (*DAC) SendUpdateAccountSync

func (d *DAC) SendUpdateAccountSync(
	ctx context.Context,
	ids []uint32,
	values []uint32,
) (*protocol.CMsgClientToGCUpdateAccountSyncResponse, error)

SendUpdateAccountSync sends a update account sync. Request ID: k_EMsgClientToGCUpdateAccountSync Response ID: k_EMsgClientToGCUpdateAccountSyncResponse Request type: CMsgClientToGCUpdateAccountSync Response type: CMsgClientToGCUpdateAccountSyncResponse

func (*DAC) SetPartyGameModifier

func (d *DAC) SetPartyGameModifier(
	ctx context.Context,
	partyID uint64,
	useCustomModifier bool,
	customModifier protocol.CMsgGameModifiers,
) (*protocol.CMsgClientToGCPartySetGameModifierResponse, error)

SetPartyGameModifier sets a party game modifier. Request ID: k_EMsgClientToGCPartySetGameModifier Response ID: k_EMsgClientToGCPartySetGameModifierResponse Request type: CMsgClientToGCPartySetGameModifier Response type: CMsgClientToGCPartySetGameModifierResponse

func (*DAC) SetPlaying

func (d *DAC) SetPlaying(playing bool)

SetPlaying informs Steam we are playing / not playing Dota 2.

func (*DAC) SetTeamName

func (d *DAC) SetTeamName(
	ctx context.Context,
	routingID uint32,
	otherAccountID uint32,
	teamName string,
) (*protocol.CMsgClientToGCSetTeamNameResponse, error)

SetTeamName sets a team name. Request ID: k_EMsgClientToGCSetTeamName Response ID: k_EMsgClientToGCSetTeamNameResponse Request type: CMsgClientToGCSetTeamName Response type: CMsgClientToGCSetTeamNameResponse

func (*DAC) SpectateUser

func (d *DAC) SpectateUser(
	ctx context.Context,
	spectateAccountID uint32,
	regionMode protocol.EDACRegionMode,
) (*protocol.CMsgClientToGCSpectateUserResponse, error)

SpectateUser spectates a user. Request ID: k_EMsgClientToGCSpectateUser Response ID: k_EMsgClientToGCSpectateUserResponse Request type: CMsgClientToGCSpectateUser Response type: CMsgClientToGCSpectateUserResponse

func (*DAC) StartMatchmaking

StartMatchmaking starts a matchmaking. Request ID: k_EMsgClientToGCStartMatchmaking Response ID: k_EMsgClientToGCStartMatchmakingResponse Request type: CMsgClientToGCStartMatchmaking Response type: CMsgClientToGCStartMatchmakingResponse

func (*DAC) StartPartyMatch

StartPartyMatch starts a party match. Request ID: k_EMsgClientToGCPartyStartMatch Response ID: k_EMsgClientToGCPartyStartMatchResponse Request type: CMsgClientToGCPartyStartMatch Response type: CMsgClientToGCPartyStartMatchResponse

func (*DAC) StopMatchmaking

func (d *DAC) StopMatchmaking(
	ctx context.Context,
) (*protocol.CMsgClientToGCStopMatchmakingResponse, error)

StopMatchmaking stops a matchmaking. Request ID: k_EMsgClientToGCStopMatchmaking Response ID: k_EMsgClientToGCStopMatchmakingResponse Request type: CMsgClientToGCStopMatchmaking Response type: CMsgClientToGCStopMatchmakingResponse

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL