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 { GetCompetitionRankingScore func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) GetcompetitionRankingScoreByPeriodList func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) UploadCompetitionRankingScore func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) DeleteCompetitionRankingScore func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) (*nex.RMCMessage, *nex.Error) // 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(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new RankingSplatoon protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
Click to show internal directories.
Click to hide internal directories.