Documentation ¶
Overview ¶
Package protocol implements the RankingMarioKart8 protocol
Package protocol implements the RankingMarioKart8 protocol ¶
Package protocol implements the RankingMarioKart8 protocol ¶
Package protocol implements the RankingMarioKart8 protocol
Index ¶
- Constants
- type Protocol
- func (protocol *Protocol) GetCompetitionInfo(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) GetCompetitionRankingScore(...)
- func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
- func (protocol *Protocol) Setup()
- func (protocol *Protocol) UploadCompetitionRankingScore(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
Constants ¶
View Source
const ( // ProtocolID is the Protocol ID for the Ranking (Mario Kart 8) protocol ProtocolID = 0x70 // MethodGetCompetitionRankingScore is the method ID for the GetCompetitionRankingScore method MethodGetCompetitionRankingScore = 0xE // MethodUploadCompetitionRankingScore is the method ID for the UploadCompetitionRankingScore method MethodUploadCompetitionRankingScore = 0xF // MethodGetCompetitionInfo is the method ID for the GetCompetitionInfo method MethodGetCompetitionInfo = 0x10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶ added in v1.0.45
Protocol stores all the RMC method handlers for the Ranking (Mario Kart 8) protocol and listens for requests Embeds the Ranking protocol
func NewProtocol ¶ added in v1.0.45
NewProtocol returns a new RankingMarioKart8 protocol
func (*Protocol) GetCompetitionInfo ¶ added in v1.0.47
func (protocol *Protocol) GetCompetitionInfo(handler func(err error, packet nex.PacketInterface, callID uint32, param *ranking_mario_kart8_types.CompetitionRankingInfoGetParam) uint32)
GetCompetitionInfo sets the GetCompetitionInfo handler function
func (*Protocol) GetCompetitionRankingScore ¶ added in v1.0.47
func (protocol *Protocol) GetCompetitionRankingScore(handler func(err error, packet nex.PacketInterface, callID uint32, packetPayload []byte) uint32)
GetCompetitionRankingScore sets the GetCompetitionRankingScore handler function
func (*Protocol) HandlePacket ¶ added in v1.0.47
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
func (*Protocol) Setup ¶ added in v1.0.45
func (protocol *Protocol) Setup()
Setup initializes the protocol
func (*Protocol) UploadCompetitionRankingScore ¶ added in v1.0.47
func (protocol *Protocol) UploadCompetitionRankingScore(handler func(err error, packet nex.PacketInterface, callID uint32, param *ranking_mario_kart8_types.CompetitionRankingUploadScoreParam) uint32)
UploadCompetitionRankingScore sets the UploadCompetitionRankingScore handler function
Source Files ¶
Click to show internal directories.
Click to hide internal directories.