matchmaker

package
v0.0.0-...-66adcdc Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TicketDeletedMessage_Reason_name = map[int32]string{
		0: "GAME_MODE_DELETED",
		1: "MANUAL_DEQUEUE",
		2: "MATCH_CREATED",
	}
	TicketDeletedMessage_Reason_value = map[string]int32{
		"GAME_MODE_DELETED": 0,
		"MANUAL_DEQUEUE":    1,
		"MATCH_CREATED":     2,
	}
)

Enum value maps for TicketDeletedMessage_Reason.

View Source
var (
	PendingMatchDeletedMessage_Reason_name = map[int32]string{
		0: "CANCELLED",
		1: "MATCH_CREATED",
	}
	PendingMatchDeletedMessage_Reason_value = map[string]int32{
		"CANCELLED":     0,
		"MATCH_CREATED": 1,
	}
)

Enum value maps for PendingMatchDeletedMessage_Reason.

View Source
var File_kurushimi_messages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MatchCreatedMessage

type MatchCreatedMessage struct {
	Match *matchmaker.Match `protobuf:"bytes,1,opt,name=match,proto3" json:"match,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchCreatedMessage) Descriptor deprecated

func (*MatchCreatedMessage) Descriptor() ([]byte, []int)

Deprecated: Use MatchCreatedMessage.ProtoReflect.Descriptor instead.

func (*MatchCreatedMessage) GetMatch

func (x *MatchCreatedMessage) GetMatch() *matchmaker.Match

func (*MatchCreatedMessage) ProtoMessage

func (*MatchCreatedMessage) ProtoMessage()

func (*MatchCreatedMessage) ProtoReflect

func (x *MatchCreatedMessage) ProtoReflect() protoreflect.Message

func (*MatchCreatedMessage) Reset

func (x *MatchCreatedMessage) Reset()

func (*MatchCreatedMessage) String

func (x *MatchCreatedMessage) String() string

type PendingMatchCreatedMessage

type PendingMatchCreatedMessage struct {
	PendingMatch *matchmaker.PendingMatch `protobuf:"bytes,1,opt,name=pending_match,json=pendingMatch,proto3" json:"pending_match,omitempty"`
	// contains filtered or unexported fields
}

func (*PendingMatchCreatedMessage) Descriptor deprecated

func (*PendingMatchCreatedMessage) Descriptor() ([]byte, []int)

Deprecated: Use PendingMatchCreatedMessage.ProtoReflect.Descriptor instead.

func (*PendingMatchCreatedMessage) GetPendingMatch

func (x *PendingMatchCreatedMessage) GetPendingMatch() *matchmaker.PendingMatch

func (*PendingMatchCreatedMessage) ProtoMessage

func (*PendingMatchCreatedMessage) ProtoMessage()

func (*PendingMatchCreatedMessage) ProtoReflect

func (*PendingMatchCreatedMessage) Reset

func (x *PendingMatchCreatedMessage) Reset()

func (*PendingMatchCreatedMessage) String

func (x *PendingMatchCreatedMessage) String() string

type PendingMatchDeletedMessage

type PendingMatchDeletedMessage struct {
	PendingMatch *matchmaker.PendingMatch          `protobuf:"bytes,1,opt,name=pending_match,json=pendingMatch,proto3" json:"pending_match,omitempty"`
	Reason       PendingMatchDeletedMessage_Reason `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PendingMatchDeletedMessage) Descriptor deprecated

func (*PendingMatchDeletedMessage) Descriptor() ([]byte, []int)

Deprecated: Use PendingMatchDeletedMessage.ProtoReflect.Descriptor instead.

func (*PendingMatchDeletedMessage) GetPendingMatch

func (x *PendingMatchDeletedMessage) GetPendingMatch() *matchmaker.PendingMatch

func (*PendingMatchDeletedMessage) GetReason

func (*PendingMatchDeletedMessage) ProtoMessage

func (*PendingMatchDeletedMessage) ProtoMessage()

func (*PendingMatchDeletedMessage) ProtoReflect

func (*PendingMatchDeletedMessage) Reset

func (x *PendingMatchDeletedMessage) Reset()

func (*PendingMatchDeletedMessage) String

func (x *PendingMatchDeletedMessage) String() string

type PendingMatchDeletedMessage_Reason

type PendingMatchDeletedMessage_Reason int32
const (
	PendingMatchDeletedMessage_CANCELLED     PendingMatchDeletedMessage_Reason = 0
	PendingMatchDeletedMessage_MATCH_CREATED PendingMatchDeletedMessage_Reason = 1
)

func (PendingMatchDeletedMessage_Reason) Descriptor

func (PendingMatchDeletedMessage_Reason) Enum

func (PendingMatchDeletedMessage_Reason) EnumDescriptor deprecated

func (PendingMatchDeletedMessage_Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use PendingMatchDeletedMessage_Reason.Descriptor instead.

func (PendingMatchDeletedMessage_Reason) Number

func (PendingMatchDeletedMessage_Reason) String

func (PendingMatchDeletedMessage_Reason) Type

type PendingMatchUpdatedMessage

type PendingMatchUpdatedMessage struct {
	PendingMatch *matchmaker.PendingMatch `protobuf:"bytes,1,opt,name=pending_match,json=pendingMatch,proto3" json:"pending_match,omitempty"`
	// contains filtered or unexported fields
}

PendingMatchUpdatedMessage is sent when players join/leave a pending match which can be used to update the UI with the player count

func (*PendingMatchUpdatedMessage) Descriptor deprecated

func (*PendingMatchUpdatedMessage) Descriptor() ([]byte, []int)

Deprecated: Use PendingMatchUpdatedMessage.ProtoReflect.Descriptor instead.

func (*PendingMatchUpdatedMessage) GetPendingMatch

func (x *PendingMatchUpdatedMessage) GetPendingMatch() *matchmaker.PendingMatch

func (*PendingMatchUpdatedMessage) ProtoMessage

func (*PendingMatchUpdatedMessage) ProtoMessage()

func (*PendingMatchUpdatedMessage) ProtoReflect

func (*PendingMatchUpdatedMessage) Reset

func (x *PendingMatchUpdatedMessage) Reset()

func (*PendingMatchUpdatedMessage) String

func (x *PendingMatchUpdatedMessage) String() string

type TicketCreatedMessage

type TicketCreatedMessage struct {
	Ticket *matchmaker.Ticket `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*TicketCreatedMessage) Descriptor deprecated

func (*TicketCreatedMessage) Descriptor() ([]byte, []int)

Deprecated: Use TicketCreatedMessage.ProtoReflect.Descriptor instead.

func (*TicketCreatedMessage) GetTicket

func (x *TicketCreatedMessage) GetTicket() *matchmaker.Ticket

func (*TicketCreatedMessage) ProtoMessage

func (*TicketCreatedMessage) ProtoMessage()

func (*TicketCreatedMessage) ProtoReflect

func (x *TicketCreatedMessage) ProtoReflect() protoreflect.Message

func (*TicketCreatedMessage) Reset

func (x *TicketCreatedMessage) Reset()

func (*TicketCreatedMessage) String

func (x *TicketCreatedMessage) String() string

type TicketDeletedMessage

type TicketDeletedMessage struct {
	Ticket *matchmaker.Ticket          `protobuf:"bytes,1,opt,name=ticket,proto3" json:"ticket,omitempty"`
	Reason TicketDeletedMessage_Reason `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

TicketDeletedMessage is sent when a ticket is deleted NOTE: This is not when a delete request is received, but when the removal gets processed. If this message is received, the ticket is no longer in any queue NOTE 2: This is not fired when a PendingMatch is converted to a Match. In that case, only a MatchCreatedMessage is sent.

func (*TicketDeletedMessage) Descriptor deprecated

func (*TicketDeletedMessage) Descriptor() ([]byte, []int)

Deprecated: Use TicketDeletedMessage.ProtoReflect.Descriptor instead.

func (*TicketDeletedMessage) GetReason

func (*TicketDeletedMessage) GetTicket

func (x *TicketDeletedMessage) GetTicket() *matchmaker.Ticket

func (*TicketDeletedMessage) ProtoMessage

func (*TicketDeletedMessage) ProtoMessage()

func (*TicketDeletedMessage) ProtoReflect

func (x *TicketDeletedMessage) ProtoReflect() protoreflect.Message

func (*TicketDeletedMessage) Reset

func (x *TicketDeletedMessage) Reset()

func (*TicketDeletedMessage) String

func (x *TicketDeletedMessage) String() string

type TicketDeletedMessage_Reason

type TicketDeletedMessage_Reason int32
const (
	TicketDeletedMessage_GAME_MODE_DELETED TicketDeletedMessage_Reason = 0
	TicketDeletedMessage_MANUAL_DEQUEUE    TicketDeletedMessage_Reason = 1
	TicketDeletedMessage_MATCH_CREATED     TicketDeletedMessage_Reason = 2
)

func (TicketDeletedMessage_Reason) Descriptor

func (TicketDeletedMessage_Reason) Enum

func (TicketDeletedMessage_Reason) EnumDescriptor deprecated

func (TicketDeletedMessage_Reason) EnumDescriptor() ([]byte, []int)

Deprecated: Use TicketDeletedMessage_Reason.Descriptor instead.

func (TicketDeletedMessage_Reason) Number

func (TicketDeletedMessage_Reason) String

func (TicketDeletedMessage_Reason) Type

type TicketUpdatedMessage

type TicketUpdatedMessage struct {
	NewTicket *matchmaker.Ticket `protobuf:"bytes,1,opt,name=new_ticket,json=newTicket,proto3" json:"new_ticket,omitempty"`
	// contains filtered or unexported fields
}

func (*TicketUpdatedMessage) Descriptor deprecated

func (*TicketUpdatedMessage) Descriptor() ([]byte, []int)

Deprecated: Use TicketUpdatedMessage.ProtoReflect.Descriptor instead.

func (*TicketUpdatedMessage) GetNewTicket

func (x *TicketUpdatedMessage) GetNewTicket() *matchmaker.Ticket

func (*TicketUpdatedMessage) ProtoMessage

func (*TicketUpdatedMessage) ProtoMessage()

func (*TicketUpdatedMessage) ProtoReflect

func (x *TicketUpdatedMessage) ProtoReflect() protoreflect.Message

func (*TicketUpdatedMessage) Reset

func (x *TicketUpdatedMessage) Reset()

func (*TicketUpdatedMessage) String

func (x *TicketUpdatedMessage) String() string

Jump to

Keyboard shortcuts

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