protocol

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Package protocol implements the MatchmakeExtensionSuperSmashBros4 protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Matchmake Extension (Super Smash Bros. 4) protocol
	ProtocolID = 0x6D

	// MethodGetTournament is the method ID for the GetTournament method
	MethodGetTournament = 0x24

	// MethodGetTournamentReplayID is the method ID for the GetTournamentReplayID method
	MethodGetTournamentReplayID = 0x25

	// MethodGetTournamentResult is the method ID for the GetTournamentResult method
	MethodGetTournamentResult = 0x26

	// MethodSetTournamentReplayID is the method ID for the SetTournamentReplayID method
	MethodSetTournamentReplayID = 0x27

	// MethodGetTournamentProfiles is the method ID for the GetTournamentProfiles method
	MethodGetTournamentProfiles = 0x28

	// MethodJoinOrCreateMatchmakeSession is the method ID for the JoinOrCreateMatchmakeSession method
	MethodJoinOrCreateMatchmakeSession = 0x29

	// MethodRegisterTournamentPlayerInfo is the method ID for the RegisterTournamentPlayerInfo method
	MethodRegisterTournamentPlayerInfo = 0x2A

	// MethodRegisterTournamentBot is the method ID for the RegisterTournamentBot method
	MethodRegisterTournamentBot = 0x2B

	// MethodReportTournamentBotRoundResult is the method ID for the ReportTournamentBotRoundResult method
	MethodReportTournamentBotRoundResult = 0x2C

	// MethodReplaceTournamentLeafNode is the method ID for the ReplaceTournamentLeafNode method
	MethodReplaceTournamentLeafNode = 0x2D

	// MethodStartTournament is the method ID for the StartTournament method
	MethodStartTournament = 0x2E

	// MethodAutoTournamentMatchmake is the method ID for the AutoTournamentMatchmake method
	MethodAutoTournamentMatchmake = 0x2F

	// MethodSimpleFindByID is the method ID for the SimpleFindByID method
	MethodSimpleFindByID = 0x30

	// MethodGetTournamentCompetitions is the method ID for the GetTournamentCompetitions method
	MethodGetTournamentCompetitions = 0x31

	// MethodGetTournamentCompetition is the method ID for the GetTournamentCompetition method
	MethodGetTournamentCompetition = 0x32

	// MethodGetTournamentReplayIDs is the method ID for the GetTournamentReplayIDs method
	MethodGetTournamentReplayIDs = 0x33

	// MethodRegisterCommunityCompetition is the method ID for the RegisterCommunityCompetition method
	MethodRegisterCommunityCompetition = 0x34

	// MethodUnregisterCommunityCompetition is the method ID for the UnregisterCommunityCompetition method
	MethodUnregisterCommunityCompetition = 0x35

	// MethodUnregisterCommunityCompetitionByID is the method ID for the UnregisterCommunityCompetitionByID method
	MethodUnregisterCommunityCompetitionByID = 0x36

	// MethodGetCommunityCompetitions is the method ID for the GetCommunityCompetitions method
	MethodGetCommunityCompetitions = 0x37

	// MethodGetCommunityCompetitionByID is the method ID for the GetCommunityCompetitionByID method
	MethodGetCommunityCompetitionByID = 0x38

	// MethodFindCommunityCompetitionsByParticipant is the method ID for the FindCommunityCompetitionsByParticipant method
	MethodFindCommunityCompetitionsByParticipant = 0x39

	// MethodFindCommunityCompetitionsByGatheringID is the method ID for the FindCommunityCompetitionsByGatheringID method
	MethodFindCommunityCompetitionsByGatheringID = 0x3A

	// MethodSelectCommunityCompetitionByOwner is the method ID for the SelectCommunityCompetitionByOwner method
	MethodSelectCommunityCompetitionByOwner = 0x3B

	// MethodJoinCommunityCompetition is the method ID for the JoinCommunityCompetition method
	MethodJoinCommunityCompetition = 0x3C

	// MethodJoinCommunityCompetitionByGatheringID is the method ID for the JoinCommunityCompetitionByGatheringID method
	MethodJoinCommunityCompetitionByGatheringID = 0x3D

	// MethodEndCommunityCompetitionParticipation is the method ID for the EndCommunityCompetitionParticipation method
	MethodEndCommunityCompetitionParticipation = 0x3E

	// MethodEndCommunityCompetitionParticipationByGatheringID is the method ID for the EndCommunityCompetitionParticipationByGatheringID method
	MethodEndCommunityCompetitionParticipationByGatheringID = 0x3F

	// MethodSearchCommunityCompetition is the method ID for the SearchCommunityCompetition method
	MethodSearchCommunityCompetition = 0x40

	// MethodPostCommunityCompetitionMatchResult is the method ID for the PostCommunityCompetitionMatchResult method
	MethodPostCommunityCompetitionMatchResult = 0x41

	// MethodGetCommunityCompetitionRanking is the method ID for the GetCommunityCompetitionRanking method
	MethodGetCommunityCompetitionRanking = 0x42

	// MethodDebugRegisterCommunityCompetition is the method ID for the DebugRegisterCommunityCompetition method
	MethodDebugRegisterCommunityCompetition = 0x43

	// MethodDebugUnregisterCommunityCompetition is the method ID for the DebugUnregisterCommunityCompetition method
	MethodDebugUnregisterCommunityCompetition = 0x44

	// MethodDebugJoinCommunityCompetition is the method ID for the DebugJoinCommunityCompetition method
	MethodDebugJoinCommunityCompetition = 0x45

	// MethodDebugEndCommunityCompetitionParticipation is the method ID for the DebugEndCommunityCompetitionParticipation method
	MethodDebugEndCommunityCompetitionParticipation = 0x46

	// MethodDebugPostCommunityCompetitionMatchResult is the method ID for the DebugPostCommunityCompetitionMatchResult method
	MethodDebugPostCommunityCompetitionMatchResult = 0x47
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	Server *nex.Server
	// contains filtered or unexported fields
}

Protocol stores all the RMC method handlers for the Matchmake Extension (Super Smash Bros. 4) protocol and listens for requests Embeds the Matchmake Extension protocol

func NewProtocol

func NewProtocol(server *nex.Server) *Protocol

NewProtocol returns a new MatchmakeExtensionSuperSmashBros4 protocol

func (*Protocol) AutoTournamentMatchmake

func (protocol *Protocol) AutoTournamentMatchmake(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

AutoTournamentMatchmake sets the AutoTournamentMatchmake handler function

func (*Protocol) DebugEndCommunityCompetitionParticipation

func (protocol *Protocol) DebugEndCommunityCompetitionParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

DebugEndCommunityCompetitionParticipation sets the DebugEndCommunityCompetitionParticipation handler function

func (*Protocol) DebugJoinCommunityCompetition

func (protocol *Protocol) DebugJoinCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

DebugJoinCommunityCompetition sets the DebugJoinCommunityCompetition handler function

func (*Protocol) DebugPostCommunityCompetitionMatchResult

func (protocol *Protocol) DebugPostCommunityCompetitionMatchResult(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

DebugPostCommunityCompetitionMatchResult sets the DebugPostCommunityCompetitionMatchResult handler function

func (*Protocol) DebugRegisterCommunityCompetition

func (protocol *Protocol) DebugRegisterCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

DebugRegisterCommunityCompetition sets the DebugRegisterCommunityCompetition handler function

func (*Protocol) DebugUnregisterCommunityCompetition

func (protocol *Protocol) DebugUnregisterCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

DebugUnregisterCommunityCompetition sets the DebugUnregisterCommunityCompetition handler function

func (*Protocol) EndCommunityCompetitionParticipation

func (protocol *Protocol) EndCommunityCompetitionParticipation(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

EndCommunityCompetitionParticipation sets the EndCommunityCompetitionParticipation handler function

func (*Protocol) EndCommunityCompetitionParticipationByGatheringID

func (protocol *Protocol) EndCommunityCompetitionParticipationByGatheringID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

EndCommunityCompetitionParticipationByGatheringID sets the EndCommunityCompetitionParticipationByGatheringID handler function

func (*Protocol) FindCommunityCompetitionsByGatheringID

func (protocol *Protocol) FindCommunityCompetitionsByGatheringID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

FindCommunityCompetitionsByGatheringID sets the FindCommunityCompetitionsByGatheringID handler function

func (*Protocol) FindCommunityCompetitionsByParticipant

func (protocol *Protocol) FindCommunityCompetitionsByParticipant(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

FindCommunityCompetitionsByParticipant sets the FindCommunityCompetitionsByParticipant handler function

func (*Protocol) GetCommunityCompetitionByID

func (protocol *Protocol) GetCommunityCompetitionByID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetCommunityCompetitionByID sets the GetCommunityCompetitionByID handler function

func (*Protocol) GetCommunityCompetitionRanking

func (protocol *Protocol) GetCommunityCompetitionRanking(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetCommunityCompetitionRanking sets the GetCommunityCompetitionRanking handler function

func (*Protocol) GetCommunityCompetitions

func (protocol *Protocol) GetCommunityCompetitions(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetCommunityCompetitions sets the GetCommunityCompetitions handler function

func (*Protocol) GetTournament

func (protocol *Protocol) GetTournament(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournament sets the GetTournament handler function

func (*Protocol) GetTournamentCompetition

func (protocol *Protocol) GetTournamentCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentCompetition sets the GetTournamentCompetition handler function

func (*Protocol) GetTournamentCompetitions

func (protocol *Protocol) GetTournamentCompetitions(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentCompetitions sets the GetTournamentCompetitions handler function

func (*Protocol) GetTournamentProfiles

func (protocol *Protocol) GetTournamentProfiles(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentProfiles sets the GetTournamentProfiles handler function

func (*Protocol) GetTournamentReplayID

func (protocol *Protocol) GetTournamentReplayID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentReplayID sets the GetTournamentReplayID handler function

func (*Protocol) GetTournamentReplayIDs

func (protocol *Protocol) GetTournamentReplayIDs(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentReplayIDs sets the GetTournamentReplayIDs handler function

func (*Protocol) GetTournamentResult

func (protocol *Protocol) GetTournamentResult(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

GetTournamentResult sets the GetTournamentResult handler function

func (*Protocol) HandlePacket

func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)

HandlePacket sends the packet to the correct RMC method handler

func (*Protocol) JoinCommunityCompetition

func (protocol *Protocol) JoinCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

JoinCommunityCompetition sets the JoinCommunityCompetition handler function

func (*Protocol) JoinCommunityCompetitionByGatheringID

func (protocol *Protocol) JoinCommunityCompetitionByGatheringID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

JoinCommunityCompetitionByGatheringID sets the JoinCommunityCompetitionByGatheringID handler function

func (*Protocol) JoinOrCreateMatchmakeSession

func (protocol *Protocol) JoinOrCreateMatchmakeSession(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

JoinOrCreateMatchmakeSession sets the JoinOrCreateMatchmakeSession handler function

func (*Protocol) PostCommunityCompetitionMatchResult

func (protocol *Protocol) PostCommunityCompetitionMatchResult(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

PostCommunityCompetitionMatchResult sets the PostCommunityCompetitionMatchResult handler function

func (*Protocol) RegisterCommunityCompetition

func (protocol *Protocol) RegisterCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

RegisterCommunityCompetition sets the RegisterCommunityCompetition handler function

func (*Protocol) RegisterTournamentBot

func (protocol *Protocol) RegisterTournamentBot(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

RegisterTournamentBot sets the RegisterTournamentBot handler function

func (*Protocol) RegisterTournamentPlayerInfo

func (protocol *Protocol) RegisterTournamentPlayerInfo(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

RegisterTournamentPlayerInfo sets the RegisterTournamentPlayerInfo handler function

func (*Protocol) ReplaceTournamentLeafNode

func (protocol *Protocol) ReplaceTournamentLeafNode(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

ReplaceTournamentLeafNode sets the ReplaceTournamentLeafNode handler function

func (*Protocol) ReportTournamentBotRoundResult

func (protocol *Protocol) ReportTournamentBotRoundResult(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

ReportTournamentBotRoundResult sets the ReportTournamentBotRoundResult handler function

func (*Protocol) SearchCommunityCompetition

func (protocol *Protocol) SearchCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

SearchCommunityCompetition sets the SearchCommunityCompetition handler function

func (*Protocol) SelectCommunityCompetitionByOwner

func (protocol *Protocol) SelectCommunityCompetitionByOwner(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

SelectCommunityCompetitionByOwner sets the SelectCommunityCompetitionByOwner handler function

func (*Protocol) SetTournamentReplayID

func (protocol *Protocol) SetTournamentReplayID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

SetTournamentReplayID sets the SetTournamentReplayID handler function

func (*Protocol) Setup

func (protocol *Protocol) Setup()

Setup initializes the protocol

func (*Protocol) SimpleFindByID

func (protocol *Protocol) SimpleFindByID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

SimpleFindByID sets the SimpleFindByID handler function

func (*Protocol) StartTournament

func (protocol *Protocol) StartTournament(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

StartTournament sets the StartTournament handler function

func (*Protocol) UnregisterCommunityCompetition

func (protocol *Protocol) UnregisterCommunityCompetition(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

UnregisterCommunityCompetition sets the UnregisterCommunityCompetition handler function

func (*Protocol) UnregisterCommunityCompetitionByID

func (protocol *Protocol) UnregisterCommunityCompetitionByID(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)

UnregisterCommunityCompetitionByID sets the UnregisterCommunityCompetitionByID handler function

Jump to

Keyboard shortcuts

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