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 RankingSplatoon protocol

Package protocol implements the RankingSplatoon protocol

Package protocol implements the RankingSplatoon protocol

Package protocol implements the RankingSplatoon protocol

Package protocol implements the RankingSplatoon protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Ranking (Splatoon) protocol
	ProtocolID = 0x70

	// MethodGetCompetitionRankingScore is the method ID for the GetCompetitionRankingScore method
	MethodGetCompetitionRankingScore = 0x10

	// MethodGetcompetitionRankingScoreByPeriodList is the method ID for the GetcompetitionRankingScoreByPeriodList method
	MethodGetcompetitionRankingScoreByPeriodList = 0x11

	// MethodUploadCompetitionRankingScore is the method ID for the UploadCompetitionRankingScore method
	MethodUploadCompetitionRankingScore = 0x12

	// MethodDeleteCompetitionRankingScore is the method ID for the DeleteCompetitionRankingScore method
	MethodDeleteCompetitionRankingScore = 0x13
)

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 Ranking (Splatoon) protocol and listens for requests Embeds the Ranking protocol

func NewProtocol

func NewProtocol(server *nex.Server) *Protocol

NewProtocol returns a new RankingSplatoon protocol

func (*Protocol) DeleteCompetitionRankingScore

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

DeleteCompetitionRankingScore sets the DeleteCompetitionRankingScore handler function

func (*Protocol) GetCompetitionRankingScore

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

GetCompetitionRankingScore sets the GetCompetitionRankingScore handler function

func (*Protocol) GetcompetitionRankingScoreByPeriodList

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

GetcompetitionRankingScoreByPeriodList sets the GetcompetitionRankingScoreByPeriodList handler function

func (*Protocol) HandlePacket

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

HandlePacket sends the packet to the correct RMC method handler

func (*Protocol) Setup

func (protocol *Protocol) Setup()

Setup initializes the protocol

func (*Protocol) UploadCompetitionRankingScore

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

UploadCompetitionRankingScore sets the UploadCompetitionRankingScore handler function

Jump to

Keyboard shortcuts

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