Documentation ¶
Overview ¶
Package protocol implements the Nintendo Badge Arcade Shop protocol
Package protocol implements the Nintendo Badge Arcade Shop protocol ¶
Package protocol implements the Nintendo Badge Arcade Shop protocol
Index ¶
Constants ¶
View Source
const ( // ProtocolID is the Protocol ID for the Shop (Nintendo Badge Arcade) protocol ProtocolID = 0x7F // CustomProtocolID is the Custom ID for the Shop (Nintendo Badge Arcade) protocol CustomProtocolID = 0xC8 // MethodGetRivToken is the method ID for GetRivToken MethodGetRivToken = 0x1 // MethodPostPlayLog is the method ID for PostPlayLog MethodPostPlayLog = 0x2 )
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 Shop (Nintendo Badge Arcade) protocol and listens for requests Embeds the Shop protocol
func NewProtocol ¶ added in v1.0.45
NewProtocol returns a new Shop (Nintendo Badge Arcade)
func (*Protocol) GetRivToken ¶ added in v1.0.45
func (protocol *Protocol) GetRivToken(handler func(err error, packet nex.PacketInterface, callID uint32, itemCode string, referenceID []byte) uint32)
GetRivToken sets the GetRivToken function
func (*Protocol) HandlePacket ¶ added in v1.0.45
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
func (*Protocol) PostPlayLog ¶ added in v1.0.45
func (protocol *Protocol) PostPlayLog(handler func(err error, packet nex.PacketInterface, callID uint32, param *shop_nintendo_badge_arcade_types.ShopPostPlayLogParam) uint32)
PostPlayLog sets the PostPlayLog function
Click to show internal directories.
Click to hide internal directories.