protocol

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the DataStoreSuperSmashBros4 protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Package protocol implements the Super Smash Bros. 4 DataStore protocol

Index

Constants

View Source
const (
	// ProtocolID is the protocol ID for the DataStore (Super Smash Bros 4) protocol. ID is the same as the DataStore protocol
	ProtocolID = 0x73

	// MethodPostProfile is the method ID for the method PostProfile
	MethodPostProfile = 0x2D

	// MethodGetProfiles is the method ID for the method GetProfiles
	MethodGetProfiles = 0x2E

	// MethodSendPlayReport is the method ID for the method SendPlayReport
	MethodSendPlayReport = 0x2F

	// MethodGetWorldPlayReport is the method ID for the method GetWorldPlayReport
	MethodGetWorldPlayReport = 0x30

	// MethodGetReplayMeta is the method ID for the method GetReplayMeta
	MethodGetReplayMeta = 0x31

	// MethodPrepareGetReplay is the method ID for the method PrepareGetReplay
	MethodPrepareGetReplay = 0x32

	// MethodPreparePostReplay is the method ID for the method PreparePostReplay
	MethodPreparePostReplay = 0x33

	// MethodCompletePostReplay is the method ID for the method CompletePostReplay
	MethodCompletePostReplay = 0x34

	// MethodCheckPostReplay is the method ID for the method CheckPostReplay
	MethodCheckPostReplay = 0x35

	// MethodGetNextReplay is the method ID for the method GetNextReplay
	MethodGetNextReplay = 0x36

	// MethodPreparePostSharedData is the method ID for the method PreparePostSharedData
	MethodPreparePostSharedData = 0x37

	// MethodCompletePostSharedData is the method ID for the method CompletePostSharedData
	MethodCompletePostSharedData = 0x38

	// MethodSearchSharedData is the method ID for the method SearchSharedData
	MethodSearchSharedData = 0x39

	// MethodGetApplicationConfig is the method ID for the method GetApplicationConfig
	MethodGetApplicationConfig = 0x3A

	// MethodSearchReplay is the method ID for the method SearchReplay
	MethodSearchReplay = 0x3B

	// MethodPostFightingPowerScore is the method ID for the method PostFightingPowerScore
	MethodPostFightingPowerScore = 0x3C

	// MethodGetFightingPowerChart is the method ID for the method GetFightingPowerChart
	MethodGetFightingPowerChart = 0x3D

	// MethodGetFightingPowerChartAll is the method ID for the method GetFightingPowerChartAll
	MethodGetFightingPowerChartAll = 0x3E

	// MethodReportSharedData is the method ID for the method ReportSharedData
	MethodReportSharedData = 0x3F

	// MethodGetSharedDataMeta is the method ID for the method GetSharedDataMeta
	MethodGetSharedDataMeta = 0x40
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Protocol added in v1.0.45

type Protocol struct {
	Server *nex.Server
	// contains filtered or unexported fields
}

Protocol stores all the RMC method handlers for the DataStore (Super Smash Bros 4) protocol and listens for requests Embeds the DataStore protocol

func NewProtocol added in v1.0.45

func NewProtocol(server *nex.Server) *Protocol

NewProtocol returns a new DataStore (Super Smash Bros 4) protocol

func (*Protocol) CheckPostReplay added in v1.0.45

func (protocol *Protocol) CheckPostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePreparePostReplayParam) uint32)

CheckPostReplay sets the CheckPostReplay handler function

func (*Protocol) CompletePostReplay added in v1.0.45

func (protocol *Protocol) CompletePostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreCompletePostReplayParam) uint32)

CompletePostReplay sets the CompletePostReplay handler function

func (*Protocol) CompletePostSharedData added in v1.0.45

func (protocol *Protocol) CompletePostSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreCompletePostSharedDataParam) uint32)

CompletePostSharedData sets the CompletePostSharedData handler function

func (*Protocol) GetApplicationConfig added in v1.0.45

func (protocol *Protocol) GetApplicationConfig(handler func(err error, packet nex.PacketInterface, callID uint32, applicationID uint32) uint32)

GetApplicationConfig sets the GetApplicationConfig handler function

func (*Protocol) GetFightingPowerChart added in v1.0.45

func (protocol *Protocol) GetFightingPowerChart(handler func(err error, packet nex.PacketInterface, callID uint32, mode uint8) uint32)

GetFightingPowerChart sets the GetFightingPowerChart handler function

func (*Protocol) GetFightingPowerChartAll added in v1.0.45

func (protocol *Protocol) GetFightingPowerChartAll(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)

GetFightingPowerChartAll sets the GetFightingPowerChartAll handler function

func (*Protocol) GetNextReplay added in v1.0.45

func (protocol *Protocol) GetNextReplay(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)

GetNextReplay sets the GetNextReplay handler function

func (*Protocol) GetProfiles added in v1.0.45

func (protocol *Protocol) GetProfiles(handler func(err error, packet nex.PacketInterface, callID uint32, pidList []uint32) uint32)

GetProfiles sets the GetProfiles handler function

func (*Protocol) GetReplayMeta added in v1.0.45

func (protocol *Protocol) GetReplayMeta(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreGetReplayMetaParam) uint32)

GetReplayMeta sets the GetReplayMeta handler function

func (*Protocol) GetSharedDataMeta added in v1.0.47

func (protocol *Protocol) GetSharedDataMeta(handler func(err error, packet nex.PacketInterface, callID uint32, pakcetPayload []byte) uint32)

GetSharedDataMeta sets the GetSharedDataMeta handler function

func (*Protocol) GetWorldPlayReport added in v1.0.45

func (protocol *Protocol) GetWorldPlayReport(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)

GetWorldPlayReport sets the GetWorldPlayReport handler 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) PostFightingPowerScore added in v1.0.45

func (protocol *Protocol) PostFightingPowerScore(handler func(err error, packet nex.PacketInterface, callID uint32, params []*datastore_super_smash_bros_4_types.DataStorePostFightingPowerScoreParam) uint32)

PostFightingPowerScore sets the PostFightingPowerScore handler function

func (*Protocol) PostProfile added in v1.0.45

func (protocol *Protocol) PostProfile(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePostProfileParam) uint32)

PostProfile sets the PostProfile handler function

func (*Protocol) PrepareGetReplay added in v1.0.45

func (protocol *Protocol) PrepareGetReplay(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePrepareGetReplayParam) uint32)

PrepareGetReplay sets the PrepareGetReplay handler function

func (*Protocol) PreparePostReplay added in v1.0.45

func (protocol *Protocol) PreparePostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePreparePostReplayParam) uint32)

PreparePostReplay sets the PreparePostReplay handler function

func (*Protocol) PreparePostSharedData added in v1.0.45

func (protocol *Protocol) PreparePostSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePreparePostSharedDataParam) uint32)

PreparePostSharedData sets the PreparePostSharedData handler function

func (*Protocol) ReportSharedData added in v1.0.45

func (protocol *Protocol) ReportSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, dataID uint64) uint32)

ReportSharedData sets the ReportSharedData handler function

func (*Protocol) SearchReplay added in v1.0.45

func (protocol *Protocol) SearchReplay(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreSearchReplayParam) uint32)

SearchReplay sets the SearchReplay handler function

func (*Protocol) SearchSharedData added in v1.0.45

func (protocol *Protocol) SearchSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreSearchSharedDataParam) uint32)

SearchSharedData sets the SearchSharedData handler function

func (*Protocol) SendPlayReport added in v1.0.45

func (protocol *Protocol) SendPlayReport(handler func(err error, packet nex.PacketInterface, callID uint32, playReport []int32) uint32)

SendPlayReport sets the SendPlayReport handler function

func (*Protocol) Setup added in v1.0.45

func (protocol *Protocol) Setup()

Setup initializes the protocol

Directories

Path Synopsis
Package types implements all the types used by the DataStore Super Smash Bros.
Package types implements all the types used by the DataStore Super Smash Bros.

Jump to

Keyboard shortcuts

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