Documentation ¶
Overview ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol
Package protocol implements the MatchmakeExtensionMarioKart8 protocol ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol ¶
Package protocol implements the MatchmakeExtensionMarioKart8 protocol
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the Protocol ID for the Matchmake Extension (Mario Kart 8) protocol ProtocolID = 0x6D // MethodCreateSimpleSearchObject is the method ID for the CreateSimpleSearchObject method MethodCreateSimpleSearchObject = 0x24 // MethodUpdateSimpleSearchObject is the method ID for the UpdateSimpleSearchObject method MethodUpdateSimpleSearchObject = 0x25 // MethodDeleteSimpleSearchObject is the method ID for the DeleteSimpleSearchObject method MethodDeleteSimpleSearchObject = 0x26 // MethodSearchSimpleSearchObject is the method ID for the SearchSimpleSearchObject method MethodSearchSimpleSearchObject = 0x27 // MethodJoinMatchmakeSessionWithExtraParticipants is the method ID for the JoinMatchmakeSessionWithExtraParticipants method MethodJoinMatchmakeSessionWithExtraParticipants = 0x28 // MethodSearchSimpleSearchObjectByObjectIDs is the method ID for the SearchSimpleSearchObjectByObjectIDs method MethodSearchSimpleSearchObjectByObjectIDs = 0x29 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶
type Protocol struct { CreateSimpleSearchObject func(err error, packet nex.PacketInterface, callID uint32, object *matchmake_extension_mario_kart8_types.SimpleSearchObject) (*nex.RMCMessage, *nex.Error) UpdateSimpleSearchObject func(err error, packet nex.PacketInterface, callID uint32, objectID *types.PrimitiveU32, newObject *matchmake_extension_mario_kart8_types.SimpleSearchObject) (*nex.RMCMessage, *nex.Error) DeleteSimpleSearchObject func(err error, packet nex.PacketInterface, callID uint32, objectID *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error) SearchSimpleSearchObject func(err error, packet nex.PacketInterface, callID uint32, param *matchmake_extension_mario_kart8_types.SimpleSearchParam) (*nex.RMCMessage, *nex.Error) JoinMatchmakeSessionWithExtraParticipants func(err error, packet nex.PacketInterface, callID uint32, gid *types.PrimitiveU32, joinMessage *types.String, ignoreBlacklist *types.PrimitiveBool, participationCount *types.PrimitiveU16, extraParticipants *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error) SearchSimpleSearchObjectByObjectIDs func(err error, packet nex.PacketInterface, callID uint32, objectIDs *types.List[*types.PrimitiveU32]) (*nex.RMCMessage, *nex.Error) // contains filtered or unexported fields }
Protocol stores all the RMC method handlers for the Matchmake Extension (Mario Kart 8) protocol and listens for requests Embeds the Matchmake Extension protocol
func NewProtocol ¶
func NewProtocol(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new MatchmakeExtensionMarioKart8 protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.