protocol

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 19, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Package protocol implements the MatchmakeExtensionMonsterHunterXX protocol

Index

Constants

View Source
const (
	// ProtocolID is the Protocol ID for the Matchmake Extension (Monster Hunter XX) protocol
	ProtocolID = 0x6D

	// MethodUpdateFriendUserProfile is the method ID for the UpdateFriendUserProfile method
	MethodUpdateFriendUserProfile = 0x36

	// MethodGetFriendUserProfiles is the method ID for the GetFriendUserProfiles method
	MethodGetFriendUserProfiles = 0x37

	// MethodAddFriends is the method ID for the AddFriends method
	MethodAddFriends = 0x39

	// MethodRemoveFriend is the method ID for the RemoveFriend method
	MethodRemoveFriend = 0x3A

	// MethodFindCommunityByOwner is the method ID for the FindCommunityByOwner method
	MethodFindCommunityByOwner = 0x3B
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol

type Protocol struct {
	UpdateFriendUserProfile func(err error, packet nex.PacketInterface, callID uint32, param *matchmake_extension_monster_hunter_x_x_types.FriendUserParam) (*nex.RMCMessage, *nex.Error)
	GetFriendUserProfiles   func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)
	AddFriends              func(err error, packet nex.PacketInterface, callID uint32, pids *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error)
	RemoveFriend            func(err error, packet nex.PacketInterface, callID uint32, pid *types.PID) (*nex.RMCMessage, *nex.Error)
	FindCommunityByOwner    func(err error, packet nex.PacketInterface, callID uint32, id *types.PrimitiveU64, resultRange *types.ResultRange) (*nex.RMCMessage, *nex.Error)
	// contains filtered or unexported fields
}

Protocol stores all the RMC method handlers for the Matchmake Extension (Monster Hunter XX) protocol and listens for requests Embeds the Matchmake Extension protocol

func NewProtocol

func NewProtocol(endpoint nex.EndpointInterface) *Protocol

NewProtocol returns a new MatchmakeExtensionMonsterHunterXX protocol

func (*Protocol) HandlePacket

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

HandlePacket sends the packet to the correct RMC method handler

Directories

Path Synopsis
Package types implements all the types used by the MatchmakeExtension protocol
Package types implements all the types used by the MatchmakeExtension protocol

Jump to

Keyboard shortcuts

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