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 ¶
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 ¶
type Protocol struct { PostProfile func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePostProfileParam) (*nex.RMCMessage, *nex.Error) GetProfiles func(err error, packet nex.PacketInterface, callID uint32, pidList *types.List[*types.PID]) (*nex.RMCMessage, *nex.Error) SendPlayReport func(err error, packet nex.PacketInterface, callID uint32, playReport *types.List[*types.PrimitiveS32]) (*nex.RMCMessage, *nex.Error) GetWorldPlayReport func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) GetReplayMeta func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreGetReplayMetaParam) (*nex.RMCMessage, *nex.Error) PrepareGetReplay func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePrepareGetReplayParam) (*nex.RMCMessage, *nex.Error) PreparePostReplay func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePreparePostReplayParam) (*nex.RMCMessage, *nex.Error) CompletePostReplay func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreCompletePostReplayParam) (*nex.RMCMessage, *nex.Error) CheckPostReplay func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStorePreparePostReplayParam) (*nex.RMCMessage, *nex.Error) GetNextReplay func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) GetApplicationConfig func(err error, packet nex.PacketInterface, callID uint32, applicationID *types.PrimitiveU32) (*nex.RMCMessage, *nex.Error) SearchReplay func(err error, packet nex.PacketInterface, callID uint32, param *datastore_super_smash_bros_4_types.DataStoreSearchReplayParam) (*nex.RMCMessage, *nex.Error) PostFightingPowerScore func(err error, packet nex.PacketInterface, callID uint32, params *types.List[*datastore_super_smash_bros_4_types.DataStorePostFightingPowerScoreParam]) (*nex.RMCMessage, *nex.Error) GetFightingPowerChart func(err error, packet nex.PacketInterface, callID uint32, mode *types.PrimitiveU8) (*nex.RMCMessage, *nex.Error) GetFightingPowerChartAll func(err error, packet nex.PacketInterface, callID uint32) (*nex.RMCMessage, *nex.Error) // 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 ¶
func NewProtocol(endpoint nex.EndpointInterface) *Protocol
NewProtocol returns a new DataStore (Super Smash Bros 4) protocol
func (*Protocol) HandlePacket ¶
func (protocol *Protocol) HandlePacket(packet nex.PacketInterface)
HandlePacket sends the packet to the correct RMC method handler
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