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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.