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
- type Protocol
- func (protocol *Protocol) CheckPostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) CompletePostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) CompletePostSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) GetApplicationConfig(...)
- func (protocol *Protocol) GetFightingPowerChart(...)
- func (protocol *Protocol) GetFightingPowerChartAll(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)
- func (protocol *Protocol) GetNextReplay(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)
- func (protocol *Protocol) GetProfiles(...)
- func (protocol *Protocol) GetReplayMeta(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) GetSharedDataMeta(...)
- func (protocol *Protocol) GetWorldPlayReport(handler func(err error, packet nex.PacketInterface, callID uint32) uint32)
- func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
- func (protocol *Protocol) PostFightingPowerScore(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) PostProfile(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) PrepareGetReplay(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) PreparePostReplay(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) PreparePostSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) ReportSharedData(...)
- func (protocol *Protocol) SearchReplay(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) SearchSharedData(handler func(err error, packet nex.PacketInterface, callID uint32, ...) uint32)
- func (protocol *Protocol) SendPlayReport(...)
- func (protocol *Protocol) Setup()
Constants ¶
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 = 0x37 MethodCompletePostSharedData = 0x38 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 = 0x3F MethodGetSharedDataMeta = 0x40 )
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 DataStore (Super Smash Bros 4) protocol and listens for requests Embeds the DataStore protocol
func NewProtocol ¶ added in v1.0.45
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
Source Files ¶
- check_post_replay.go
- complete_post_replay.go
- complete_post_shared_data.go
- get_application_config.go
- get_fighting_power_chart.go
- get_fighting_power_chart_all.go
- get_next_replay.go
- get_profiles.go
- get_replay_meta.go
- get_shared_data_meta.go
- get_world_play_report.go
- post_fighting_power_score.go
- post_profile.go
- prepare_get_replay.go
- prepare_post_replay.go
- prepare_post_shared_data.go
- protocol.go
- report_shared_data.go
- search_replay.go
- search_shared_data.go
- send_play_report.go