package matching

import "github.com/Diarkis/diarkis/proto/go/matching"

Index

Constants

const ClaimMatchmakingPushCmd uint16 = 205

ClaimMatchmakingPushCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const ClaimMatchmakingPushVer uint8 = 1

ClaimMatchmakingPushVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const ClaimMatchmakingRequestCmd uint16 = 205

ClaimMatchmakingRequestCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const ClaimMatchmakingRequestVer uint8 = 1

ClaimMatchmakingRequestVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const ClaimMatchmakingResponseCmd uint16 = 205

ClaimMatchmakingResponseCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const ClaimMatchmakingResponseVer uint8 = 1

ClaimMatchmakingResponseVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const DisbandMatchmakingPushCmd uint16 = 202

DisbandMatchmakingPushCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const DisbandMatchmakingPushVer uint8 = 1

DisbandMatchmakingPushVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const DisbandMatchmakingRequestCmd uint16 = 202

DisbandMatchmakingRequestCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const DisbandMatchmakingRequestVer uint8 = 1

DisbandMatchmakingRequestVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const HostMatchmakingCmd uint16 = 200

HostMatchmakingCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const HostMatchmakingVer uint8 = 1

HostMatchmakingVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const KickFromMatchmakingPushCmd uint16 = 217

KickFromMatchmakingPushCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const KickFromMatchmakingPushVer uint8 = 1

KickFromMatchmakingPushVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const KickFromMatchmakingRequestCmd uint16 = 217

KickFromMatchmakingRequestCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const KickFromMatchmakingRequestVer uint8 = 1

KickFromMatchmakingRequestVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const LeaveMatchmakingPushCmd uint16 = 203

LeaveMatchmakingPushCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const LeaveMatchmakingPushVer uint8 = 1

LeaveMatchmakingPushVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const LeaveMatchmakingRequestCmd uint16 = 203

LeaveMatchmakingRequestCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const LeaveMatchmakingRequestVer uint8 = 1

LeaveMatchmakingRequestVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const MmRoomPropsCmd uint16 = 0

MmRoomPropsCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const MmRoomPropsVer uint8 = 0

MmRoomPropsVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const PropertyCmd uint16 = 0

PropertyCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const PropertyVer uint8 = 0

PropertyVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const SearchListRequestCmd uint16 = 207

SearchListRequestCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const SearchListRequestVer uint8 = 1

SearchListRequestVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const SearchListResponseCmd uint16 = 207

SearchListResponseCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const SearchListResponseVer uint8 = 1

SearchListResponseVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const SearchMatchmakingCmd uint16 = 201

SearchMatchmakingCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const SearchMatchmakingVer uint8 = 1

SearchMatchmakingVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const SearchResultCmd uint16 = 0

SearchResultCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const SearchResultVer uint8 = 0

SearchResultVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.
const SyncMatchmakingMembersCmd uint16 = 204

SyncMatchmakingMembersCmd represents the command ID of the protocol's command ID.

[NOTE] The value is optional and if cmd is not given in the definition JSON, it will be 0.
const SyncMatchmakingMembersVer uint8 = 1

SyncMatchmakingMembersVer represents the ver of the protocol's command.

[NOTE] The value is optional and if ver is not given in the definition JSON, it will be 0.

Types

type ClaimMatchmakingPush

type ClaimMatchmakingPush struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message broadcast on matchmaking room join.
	Message []byte
	// The profile ID of the matching room for which the user has joined.
	ProfileID string
	// User ID of the member who joined the matchmaking room.
	UID string
}

ClaimMatchmakingPush represents the command protocol data structure.

func NewClaimMatchmakingPush

func NewClaimMatchmakingPush() *ClaimMatchmakingPush

NewClaimMatchmakingPush creates a new instance of ClaimMatchmakingPush struct.

func (*ClaimMatchmakingPush) GetCmd

func (proto *ClaimMatchmakingPush) GetCmd() uint16

func (*ClaimMatchmakingPush) GetVer

func (proto *ClaimMatchmakingPush) GetVer() uint8

func (*ClaimMatchmakingPush) Pack

func (proto *ClaimMatchmakingPush) Pack() []byte

Pack encodes ClaimMatchmakingPush struct to a byte array to be delivered over the command.

func (*ClaimMatchmakingPush) PackedSize

func (proto *ClaimMatchmakingPush) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*ClaimMatchmakingPush) String

func (proto *ClaimMatchmakingPush) String() string

func (*ClaimMatchmakingPush) Unpack

func (proto *ClaimMatchmakingPush) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to ClaimMatchmakingPush struct.

type ClaimMatchmakingRequest

type ClaimMatchmakingRequest struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message broadcast on matchmaking room join.
	Message []byte
	// Password of the matchmaking room to commit to.
	Password string
	// Room ID of the matchmaking room to commit to.
	RoomID string
}

ClaimMatchmakingRequest represents the command protocol data structure.

func NewClaimMatchmakingRequest

func NewClaimMatchmakingRequest() *ClaimMatchmakingRequest

NewClaimMatchmakingRequest creates a new instance of ClaimMatchmakingRequest struct.

func (*ClaimMatchmakingRequest) GetCmd

func (proto *ClaimMatchmakingRequest) GetCmd() uint16

func (*ClaimMatchmakingRequest) GetVer

func (proto *ClaimMatchmakingRequest) GetVer() uint8

func (*ClaimMatchmakingRequest) Pack

func (proto *ClaimMatchmakingRequest) Pack() []byte

Pack encodes ClaimMatchmakingRequest struct to a byte array to be delivered over the command.

func (*ClaimMatchmakingRequest) PackedSize

func (proto *ClaimMatchmakingRequest) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*ClaimMatchmakingRequest) String

func (proto *ClaimMatchmakingRequest) String() string

func (*ClaimMatchmakingRequest) Unpack

func (proto *ClaimMatchmakingRequest) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to ClaimMatchmakingRequest struct.

type ClaimMatchmakingResponse

type ClaimMatchmakingResponse struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// List of member IDs in the matchmaking room.
	MemberIDs []string
	// Owner ID of the matchmaking room.
	OwnerID string
	// Room ID of the matchmaking room to commit to.
	RoomID string
}

ClaimMatchmakingResponse represents the command protocol data structure.

func NewClaimMatchmakingResponse

func NewClaimMatchmakingResponse() *ClaimMatchmakingResponse

NewClaimMatchmakingResponse creates a new instance of ClaimMatchmakingResponse struct.

func (*ClaimMatchmakingResponse) GetCmd

func (proto *ClaimMatchmakingResponse) GetCmd() uint16

func (*ClaimMatchmakingResponse) GetVer

func (proto *ClaimMatchmakingResponse) GetVer() uint8

func (*ClaimMatchmakingResponse) Pack

func (proto *ClaimMatchmakingResponse) Pack() []byte

Pack encodes ClaimMatchmakingResponse struct to a byte array to be delivered over the command.

func (*ClaimMatchmakingResponse) PackedSize

func (proto *ClaimMatchmakingResponse) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*ClaimMatchmakingResponse) String

func (proto *ClaimMatchmakingResponse) String() string

func (*ClaimMatchmakingResponse) Unpack

func (proto *ClaimMatchmakingResponse) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to ClaimMatchmakingResponse struct.

type DisbandMatchmakingPush

type DisbandMatchmakingPush struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message broadcast on matchmaking room deletion.
	Message []byte
	// The profile ID for which the host's matchmaking room is searchable by, and for which to remove.
	ProfileID string
	// Room ID of the matchmaking room that was disbanded.
	RoomID string
}

DisbandMatchmakingPush represents the command protocol data structure.

func NewDisbandMatchmakingPush

func NewDisbandMatchmakingPush() *DisbandMatchmakingPush

NewDisbandMatchmakingPush creates a new instance of DisbandMatchmakingPush struct.

func (*DisbandMatchmakingPush) GetCmd

func (proto *DisbandMatchmakingPush) GetCmd() uint16

func (*DisbandMatchmakingPush) GetVer

func (proto *DisbandMatchmakingPush) GetVer() uint8

func (*DisbandMatchmakingPush) Pack

func (proto *DisbandMatchmakingPush) Pack() []byte

Pack encodes DisbandMatchmakingPush struct to a byte array to be delivered over the command.

func (*DisbandMatchmakingPush) PackedSize

func (proto *DisbandMatchmakingPush) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*DisbandMatchmakingPush) String

func (proto *DisbandMatchmakingPush) String() string

func (*DisbandMatchmakingPush) Unpack

func (proto *DisbandMatchmakingPush) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to DisbandMatchmakingPush struct.

type DisbandMatchmakingRequest

type DisbandMatchmakingRequest struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message announced on matchmaking room deletion.
	Message []byte
	// The profile ID for which the host's matchmaking room is searchable by, and for which to remove.
	ProfileID string
}

DisbandMatchmakingRequest represents the command protocol data structure.

func NewDisbandMatchmakingRequest

func NewDisbandMatchmakingRequest() *DisbandMatchmakingRequest

NewDisbandMatchmakingRequest creates a new instance of DisbandMatchmakingRequest struct.

func (*DisbandMatchmakingRequest) GetCmd

func (proto *DisbandMatchmakingRequest) GetCmd() uint16

func (*DisbandMatchmakingRequest) GetVer

func (proto *DisbandMatchmakingRequest) GetVer() uint8

func (*DisbandMatchmakingRequest) Pack

func (proto *DisbandMatchmakingRequest) Pack() []byte

Pack encodes DisbandMatchmakingRequest struct to a byte array to be delivered over the command.

func (*DisbandMatchmakingRequest) PackedSize

func (proto *DisbandMatchmakingRequest) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*DisbandMatchmakingRequest) String

func (proto *DisbandMatchmakingRequest) String() string

func (*DisbandMatchmakingRequest) Unpack

func (proto *DisbandMatchmakingRequest) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to DisbandMatchmakingRequest struct.

type HostMatchmaking

type HostMatchmaking struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Maximum number of members allowed to join the matchmaking room.
	MaxMembers uint16
	// Serialized metadata associated with the matchmaking room.
	Metadata []byte
	// Password to join the matchmaking room.
	Password string
	// The profile ID for which to make the host's matchmaking room searchable by.
	ProfileID string
	// Properties of map(k string, v int) associated with the matchmaking room.
	Props []*MmRoomProps
	// If true, the room will only be reserved for the host and not automatically joined (allowEmpty=true).
	ReserveOnly bool
	// TTL of the room when it is empty in seconds. The value must be greater than 0. Minimum is 10 seconds.
	TTL uint16
	// The tags for which to make the host's matchmaking room searchable by.
	Tags []string
}

HostMatchmaking represents the command protocol data structure.

func NewHostMatchmaking

func NewHostMatchmaking() *HostMatchmaking

NewHostMatchmaking creates a new instance of HostMatchmaking struct.

func (*HostMatchmaking) GetCmd

func (proto *HostMatchmaking) GetCmd() uint16

func (*HostMatchmaking) GetVer

func (proto *HostMatchmaking) GetVer() uint8

func (*HostMatchmaking) Pack

func (proto *HostMatchmaking) Pack() []byte

Pack encodes HostMatchmaking struct to a byte array to be delivered over the command.

func (*HostMatchmaking) PackedSize

func (proto *HostMatchmaking) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*HostMatchmaking) String

func (proto *HostMatchmaking) String() string

func (*HostMatchmaking) Unpack

func (proto *HostMatchmaking) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to HostMatchmaking struct.

type KickFromMatchmakingPush

type KickFromMatchmakingPush struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// UID of the user who was kicked from the matchmaking room.
	KickedUID string
	// Message to be sent to the kicked user.
	Message []byte
	// The profile ID of the matching room for which the user was kicked from.
	ProfileID string
}

KickFromMatchmakingPush represents the command protocol data structure.

func NewKickFromMatchmakingPush

func NewKickFromMatchmakingPush() *KickFromMatchmakingPush

NewKickFromMatchmakingPush creates a new instance of KickFromMatchmakingPush struct.

func (*KickFromMatchmakingPush) GetCmd

func (proto *KickFromMatchmakingPush) GetCmd() uint16

func (*KickFromMatchmakingPush) GetVer

func (proto *KickFromMatchmakingPush) GetVer() uint8

func (*KickFromMatchmakingPush) Pack

func (proto *KickFromMatchmakingPush) Pack() []byte

Pack encodes KickFromMatchmakingPush struct to a byte array to be delivered over the command.

func (*KickFromMatchmakingPush) PackedSize

func (proto *KickFromMatchmakingPush) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*KickFromMatchmakingPush) String

func (proto *KickFromMatchmakingPush) String() string

func (*KickFromMatchmakingPush) Unpack

func (proto *KickFromMatchmakingPush) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to KickFromMatchmakingPush struct.

type KickFromMatchmakingRequest

type KickFromMatchmakingRequest struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message announced to matchmaking room via kicked user on kick.
	Message []byte
	// The profile ID of the matching room for which the host kicks a user from.
	ProfileID string
	// User ID of the target user to kick from the matchmaking room.
	TargetUID string
}

KickFromMatchmakingRequest represents the command protocol data structure.

func NewKickFromMatchmakingRequest

func NewKickFromMatchmakingRequest() *KickFromMatchmakingRequest

NewKickFromMatchmakingRequest creates a new instance of KickFromMatchmakingRequest struct.

func (*KickFromMatchmakingRequest) GetCmd

func (proto *KickFromMatchmakingRequest) GetCmd() uint16

func (*KickFromMatchmakingRequest) GetVer

func (proto *KickFromMatchmakingRequest) GetVer() uint8

func (*KickFromMatchmakingRequest) Pack

func (proto *KickFromMatchmakingRequest) Pack() []byte

Pack encodes KickFromMatchmakingRequest struct to a byte array to be delivered over the command.

func (*KickFromMatchmakingRequest) PackedSize

func (proto *KickFromMatchmakingRequest) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*KickFromMatchmakingRequest) String

func (proto *KickFromMatchmakingRequest) String() string

func (*KickFromMatchmakingRequest) Unpack

func (proto *KickFromMatchmakingRequest) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to KickFromMatchmakingRequest struct.

type LeaveMatchmakingPush

type LeaveMatchmakingPush struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Leave message of the member who has left the matchmaking room.
	Message []byte
	// The profile ID for matching room from which the user left.
	ProfileID string
	// User ID of the member who has left the matchmaking room.
	UID string
}

LeaveMatchmakingPush represents the command protocol data structure.

func NewLeaveMatchmakingPush

func NewLeaveMatchmakingPush() *LeaveMatchmakingPush

NewLeaveMatchmakingPush creates a new instance of LeaveMatchmakingPush struct.

func (*LeaveMatchmakingPush) GetCmd

func (proto *LeaveMatchmakingPush) GetCmd() uint16

func (*LeaveMatchmakingPush) GetVer

func (proto *LeaveMatchmakingPush) GetVer() uint8

func (*LeaveMatchmakingPush) Pack

func (proto *LeaveMatchmakingPush) Pack() []byte

Pack encodes LeaveMatchmakingPush struct to a byte array to be delivered over the command.

func (*LeaveMatchmakingPush) PackedSize

func (proto *LeaveMatchmakingPush) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*LeaveMatchmakingPush) String

func (proto *LeaveMatchmakingPush) String() string

func (*LeaveMatchmakingPush) Unpack

func (proto *LeaveMatchmakingPush) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to LeaveMatchmakingPush struct.

type LeaveMatchmakingRequest

type LeaveMatchmakingRequest struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message to broadcast upon leaving the matchmaking room.
	Message []byte
	// The profile ID of the matching room from which the user leaves.
	ProfileID string
}

LeaveMatchmakingRequest represents the command protocol data structure.

func NewLeaveMatchmakingRequest

func NewLeaveMatchmakingRequest() *LeaveMatchmakingRequest

NewLeaveMatchmakingRequest creates a new instance of LeaveMatchmakingRequest struct.

func (*LeaveMatchmakingRequest) GetCmd

func (proto *LeaveMatchmakingRequest) GetCmd() uint16

func (*LeaveMatchmakingRequest) GetVer

func (proto *LeaveMatchmakingRequest) GetVer() uint8

func (*LeaveMatchmakingRequest) Pack

func (proto *LeaveMatchmakingRequest) Pack() []byte

Pack encodes LeaveMatchmakingRequest struct to a byte array to be delivered over the command.

func (*LeaveMatchmakingRequest) PackedSize

func (proto *LeaveMatchmakingRequest) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*LeaveMatchmakingRequest) String

func (proto *LeaveMatchmakingRequest) String() string

func (*LeaveMatchmakingRequest) Unpack

func (proto *LeaveMatchmakingRequest) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to LeaveMatchmakingRequest struct.

type MmRoomProps

type MmRoomProps struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Key of the matchmaking room property map[string]int
	Key string
	// Value of matchmaking room property map[string]int
	Value int64
}

MmRoomProps represents the command protocol data structure.

func NewMmRoomProps

func NewMmRoomProps() *MmRoomProps

NewMmRoomProps creates a new instance of MmRoomProps struct.

func (*MmRoomProps) GetCmd

func (proto *MmRoomProps) GetCmd() uint16

func (*MmRoomProps) GetVer

func (proto *MmRoomProps) GetVer() uint8

func (*MmRoomProps) Pack

func (proto *MmRoomProps) Pack() []byte

Pack encodes MmRoomProps struct to a byte array to be delivered over the command.

func (*MmRoomProps) PackedSize

func (proto *MmRoomProps) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*MmRoomProps) String

func (proto *MmRoomProps) String() string

func (*MmRoomProps) Unpack

func (proto *MmRoomProps) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to MmRoomProps struct.

type Property

type Property struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Key of the property.
	Key string
	// Value of the property.
	Value int64
}

Property represents the command protocol data structure.

func NewProperty

func NewProperty() *Property

NewProperty creates a new instance of Property struct.

func (*Property) GetCmd

func (proto *Property) GetCmd() uint16

func (*Property) GetVer

func (proto *Property) GetVer() uint8

func (*Property) Pack

func (proto *Property) Pack() []byte

Pack encodes Property struct to a byte array to be delivered over the command.

func (*Property) PackedSize

func (proto *Property) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*Property) String

func (proto *Property) String() string

func (*Property) Unpack

func (proto *Property) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to Property struct.

type SearchListRequest

type SearchListRequest struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Number of result rooms to return.
	Howmany uint16
	// List of profile IDs to search for.
	ProfileIDs []string
	// List of properties to search for.
	Properties []*Property
	// List of tags to search for.
	Tags []string
}

SearchListRequest represents the command protocol data structure.

func NewSearchListRequest

func NewSearchListRequest() *SearchListRequest

NewSearchListRequest creates a new instance of SearchListRequest struct.

func (*SearchListRequest) GetCmd

func (proto *SearchListRequest) GetCmd() uint16

func (*SearchListRequest) GetVer

func (proto *SearchListRequest) GetVer() uint8

func (*SearchListRequest) Pack

func (proto *SearchListRequest) Pack() []byte

Pack encodes SearchListRequest struct to a byte array to be delivered over the command.

func (*SearchListRequest) PackedSize

func (proto *SearchListRequest) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*SearchListRequest) String

func (proto *SearchListRequest) String() string

func (*SearchListRequest) Unpack

func (proto *SearchListRequest) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to SearchListRequest struct.

type SearchListResponse

type SearchListResponse struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Search results
	Results []*SearchResult
}

SearchListResponse represents the command protocol data structure.

func NewSearchListResponse

func NewSearchListResponse() *SearchListResponse

NewSearchListResponse creates a new instance of SearchListResponse struct.

func (*SearchListResponse) GetCmd

func (proto *SearchListResponse) GetCmd() uint16

func (*SearchListResponse) GetVer

func (proto *SearchListResponse) GetVer() uint8

func (*SearchListResponse) Pack

func (proto *SearchListResponse) Pack() []byte

Pack encodes SearchListResponse struct to a byte array to be delivered over the command.

func (*SearchListResponse) PackedSize

func (proto *SearchListResponse) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*SearchListResponse) String

func (proto *SearchListResponse) String() string

func (*SearchListResponse) Unpack

func (proto *SearchListResponse) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to SearchListResponse struct.

type SearchMatchmaking

type SearchMatchmaking struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message broadcast on matchmaking room join.
	Message []byte
	// List of profile IDs to search for.
	ProfileIDs []string
	// List of properties to search for.
	Properties []*Property
	// List of tags to search for.
	Tags []string
}

SearchMatchmaking represents the command protocol data structure.

func NewSearchMatchmaking

func NewSearchMatchmaking() *SearchMatchmaking

NewSearchMatchmaking creates a new instance of SearchMatchmaking struct.

func (*SearchMatchmaking) GetCmd

func (proto *SearchMatchmaking) GetCmd() uint16

func (*SearchMatchmaking) GetVer

func (proto *SearchMatchmaking) GetVer() uint8

func (*SearchMatchmaking) Pack

func (proto *SearchMatchmaking) Pack() []byte

Pack encodes SearchMatchmaking struct to a byte array to be delivered over the command.

func (*SearchMatchmaking) PackedSize

func (proto *SearchMatchmaking) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*SearchMatchmaking) String

func (proto *SearchMatchmaking) String() string

func (*SearchMatchmaking) Unpack

func (proto *SearchMatchmaking) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to SearchMatchmaking struct.

type SearchResult

type SearchResult struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Current number of members in the matchmaking room.
	CurrentMembers uint16
	// True if the matchmaking room has a password.
	HasPassword bool
	// Latency between the client and the server.
	Latency int64
	// Maximum number of members allowed to join the matchmaking room.
	MaxMembers uint16
	// Serialized metadata associated with the matchmaking room.
	Metadata []byte
	// Owner ID of the matchmaking room.
	OwnerID string
	// Room ID of the matchmaking room.
	RoomID string
}

SearchResult represents the command protocol data structure.

func NewSearchResult

func NewSearchResult() *SearchResult

NewSearchResult creates a new instance of SearchResult struct.

func (*SearchResult) GetCmd

func (proto *SearchResult) GetCmd() uint16

func (*SearchResult) GetVer

func (proto *SearchResult) GetVer() uint8

func (*SearchResult) Pack

func (proto *SearchResult) Pack() []byte

Pack encodes SearchResult struct to a byte array to be delivered over the command.

func (*SearchResult) PackedSize

func (proto *SearchResult) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*SearchResult) String

func (proto *SearchResult) String() string

func (*SearchResult) Unpack

func (proto *SearchResult) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to SearchResult struct.

type SyncMatchmakingMembers

type SyncMatchmakingMembers struct {
	// Command version of the protocol
	Ver uint8
	// Command ID of the protocol
	Cmd uint16
	// Message announced to matchmaking room upon sync.
	Message []byte
	// The profile ID of the matching room for which to sync a message with members.
	ProfileID string
}

SyncMatchmakingMembers represents the command protocol data structure.

func NewSyncMatchmakingMembers

func NewSyncMatchmakingMembers() *SyncMatchmakingMembers

NewSyncMatchmakingMembers creates a new instance of SyncMatchmakingMembers struct.

func (*SyncMatchmakingMembers) GetCmd

func (proto *SyncMatchmakingMembers) GetCmd() uint16

func (*SyncMatchmakingMembers) GetVer

func (proto *SyncMatchmakingMembers) GetVer() uint8

func (*SyncMatchmakingMembers) Pack

func (proto *SyncMatchmakingMembers) Pack() []byte

Pack encodes SyncMatchmakingMembers struct to a byte array to be delivered over the command.

func (*SyncMatchmakingMembers) PackedSize

func (proto *SyncMatchmakingMembers) PackedSize() int

PackedSize returns the estimated packed size of the struct.

func (*SyncMatchmakingMembers) String

func (proto *SyncMatchmakingMembers) String() string

func (*SyncMatchmakingMembers) Unpack

func (proto *SyncMatchmakingMembers) Unpack(bytes []byte) error

Unpack decodes the command payload byte array to SyncMatchmakingMembers struct.