matchmaker

package
v0.0.0-...-cd9d53d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kurushimi_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllocationData

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

func (*AllocationData) Descriptor deprecated

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

Deprecated: Use AllocationData.ProtoReflect.Descriptor instead.

func (*AllocationData) GetMatch

func (x *AllocationData) GetMatch() *Match

func (*AllocationData) ProtoMessage

func (*AllocationData) ProtoMessage()

func (*AllocationData) ProtoReflect

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

func (*AllocationData) Reset

func (x *AllocationData) Reset()

func (*AllocationData) String

func (x *AllocationData) String() string

type Assignment

type Assignment struct {
	ServerId      string `protobuf:"bytes,1,opt,name=server_id,json=serverId,proto3" json:"server_id,omitempty"`
	ServerAddress string `protobuf:"bytes,2,opt,name=server_address,json=serverAddress,proto3" json:"server_address,omitempty"`
	ServerPort    uint32 `protobuf:"varint,3,opt,name=server_port,json=serverPort,proto3" json:"server_port,omitempty"`
	// protocol_version e.g. 754
	// Not present for proxies
	ProtocolVersion *int64 `protobuf:"varint,4,opt,name=protocol_version,json=protocolVersion,proto3,oneof" json:"protocol_version,omitempty"`
	// version_name e.g. 1.19.4
	// Not present for proxies
	VersionName *string `protobuf:"bytes,5,opt,name=version_name,json=versionName,proto3,oneof" json:"version_name,omitempty"`
	// contains filtered or unexported fields
}

func (*Assignment) Descriptor deprecated

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

Deprecated: Use Assignment.ProtoReflect.Descriptor instead.

func (*Assignment) GetProtocolVersion

func (x *Assignment) GetProtocolVersion() int64

func (*Assignment) GetServerAddress

func (x *Assignment) GetServerAddress() string

func (*Assignment) GetServerId

func (x *Assignment) GetServerId() string

func (*Assignment) GetServerPort

func (x *Assignment) GetServerPort() uint32

func (*Assignment) GetVersionName

func (x *Assignment) GetVersionName() string

func (*Assignment) ProtoMessage

func (*Assignment) ProtoMessage()

func (*Assignment) ProtoReflect

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

func (*Assignment) Reset

func (x *Assignment) Reset()

func (*Assignment) String

func (x *Assignment) String() string

type Match

type Match struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	GameModeId string `protobuf:"bytes,2,opt,name=game_mode_id,json=gameModeId,proto3" json:"game_mode_id,omitempty"`
	// map_id selected by the matchmaker based on the game mode config
	// Only present if the game mode has a map pool.
	// Clients should still always account for it being null for testing purposes (random map when in game dev mode)
	MapId *string `protobuf:"bytes,3,opt,name=map_id,json=mapId,proto3,oneof" json:"map_id,omitempty"`
	// tickets is a source of truth for all the grouped players in the match.
	Tickets    []*Ticket   `protobuf:"bytes,4,rep,name=tickets,proto3" json:"tickets,omitempty"`
	Assignment *Assignment `protobuf:"bytes,5,opt,name=assignment,proto3,oneof" json:"assignment,omitempty"`
	// contains filtered or unexported fields
}

func (*Match) Descriptor deprecated

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

Deprecated: Use Match.ProtoReflect.Descriptor instead.

func (*Match) GetAssignment

func (x *Match) GetAssignment() *Assignment

func (*Match) GetGameModeId

func (x *Match) GetGameModeId() string

func (*Match) GetId

func (x *Match) GetId() string

func (*Match) GetMapId

func (x *Match) GetMapId() string

func (*Match) GetTickets

func (x *Match) GetTickets() []*Ticket

func (*Match) ProtoMessage

func (*Match) ProtoMessage()

func (*Match) ProtoReflect

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

func (*Match) Reset

func (x *Match) Reset()

func (*Match) String

func (x *Match) String() string

type PendingMatch

type PendingMatch struct {
	Id         string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	GameModeId string `protobuf:"bytes,2,opt,name=game_mode_id,json=gameModeId,proto3" json:"game_mode_id,omitempty"`
	// ticket_ids of type ObjectID (mongo id)
	TicketIds    []string               `protobuf:"bytes,3,rep,name=ticket_ids,json=ticketIds,proto3" json:"ticket_ids,omitempty"`
	TeleportTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=teleport_time,json=teleportTime,proto3" json:"teleport_time,omitempty"`
	// player_count is the number of players in the tickets of the PendingMatch.
	// This is updated each time the matchfunction is run.
	PlayerCount int64 `protobuf:"varint,5,opt,name=player_count,json=playerCount,proto3" json:"player_count,omitempty"`
	// contains filtered or unexported fields
}

func (*PendingMatch) Descriptor deprecated

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

Deprecated: Use PendingMatch.ProtoReflect.Descriptor instead.

func (*PendingMatch) GetGameModeId

func (x *PendingMatch) GetGameModeId() string

func (*PendingMatch) GetId

func (x *PendingMatch) GetId() string

func (*PendingMatch) GetPlayerCount

func (x *PendingMatch) GetPlayerCount() int64

func (*PendingMatch) GetTeleportTime

func (x *PendingMatch) GetTeleportTime() *timestamppb.Timestamp

func (*PendingMatch) GetTicketIds

func (x *PendingMatch) GetTicketIds() []string

func (*PendingMatch) ProtoMessage

func (*PendingMatch) ProtoMessage()

func (*PendingMatch) ProtoReflect

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

func (*PendingMatch) Reset

func (x *PendingMatch) Reset()

func (*PendingMatch) String

func (x *PendingMatch) String() string

type QueuedPlayer

type QueuedPlayer struct {

	// id of type UUID (minecraft player id)
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ticket_id of type ObjectID, the ID of the ticket that the player belongs to
	TicketId string  `protobuf:"bytes,2,opt,name=ticket_id,json=ticketId,proto3" json:"ticket_id,omitempty"`
	MapId    *string `protobuf:"bytes,3,opt,name=map_id,json=mapId,proto3,oneof" json:"map_id,omitempty"`
	// contains filtered or unexported fields
}

func (*QueuedPlayer) Descriptor deprecated

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

Deprecated: Use QueuedPlayer.ProtoReflect.Descriptor instead.

func (*QueuedPlayer) GetId

func (x *QueuedPlayer) GetId() string

func (*QueuedPlayer) GetMapId

func (x *QueuedPlayer) GetMapId() string

func (*QueuedPlayer) GetTicketId

func (x *QueuedPlayer) GetTicketId() string

func (*QueuedPlayer) ProtoMessage

func (*QueuedPlayer) ProtoMessage()

func (*QueuedPlayer) ProtoReflect

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

func (*QueuedPlayer) Reset

func (x *QueuedPlayer) Reset()

func (*QueuedPlayer) String

func (x *QueuedPlayer) String() string

type Ticket

type Ticket struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// party_id of type ObjectID (mongo id)
	// Whilst technically optional, it is very rare. The party_id is only null on join lobby selection
	// as the player does not yet have a party.
	PartyId   *string                `protobuf:"bytes,2,opt,name=party_id,json=partyId,proto3,oneof" json:"party_id,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// player_ids of type UUID (minecraft player id)
	PlayerIds  []string `protobuf:"bytes,4,rep,name=player_ids,json=playerIds,proto3" json:"player_ids,omitempty"`
	GameModeId string   `protobuf:"bytes,5,opt,name=game_mode_id,json=gameModeId,proto3" json:"game_mode_id,omitempty"`
	// auto_teleport if true, the proxy will listen for match messages and teleport the player to the match.
	// if false, the proxy will not auto-teleport the player and you should listen for match messages yourself.
	//
	// e.g. this is used by the proxy for lobby matchmaking as it is handled differently
	// to when the player is already connected to the server.
	//
	// NOTE: This field is optional in the request, but not optional afterwards and is resolved to true/false from the optional.
	AutoTeleport bool `protobuf:"varint,6,opt,name=auto_teleport,json=autoTeleport,proto3" json:"auto_teleport,omitempty"`
	// dequeue_on_disconnect: is determined by the party settings. True if the player is not in a party, or if the party
	// is not set to stay in queue on disconnect.
	// NOTE: The ticket will be deleted anyway if the party is deleted.
	DequeueOnDisconnect bool `protobuf:"varint,7,opt,name=dequeue_on_disconnect,json=dequeueOnDisconnect,proto3" json:"dequeue_on_disconnect,omitempty"`
	InPendingMatch      bool `protobuf:"varint,8,opt,name=in_pending_match,json=inPendingMatch,proto3" json:"in_pending_match,omitempty"`
	// contains filtered or unexported fields
}

func (*Ticket) Descriptor deprecated

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

Deprecated: Use Ticket.ProtoReflect.Descriptor instead.

func (*Ticket) GetAutoTeleport

func (x *Ticket) GetAutoTeleport() bool

func (*Ticket) GetCreatedAt

func (x *Ticket) GetCreatedAt() *timestamppb.Timestamp

func (*Ticket) GetDequeueOnDisconnect

func (x *Ticket) GetDequeueOnDisconnect() bool

func (*Ticket) GetGameModeId

func (x *Ticket) GetGameModeId() string

func (*Ticket) GetId

func (x *Ticket) GetId() string

func (*Ticket) GetInPendingMatch

func (x *Ticket) GetInPendingMatch() bool

func (*Ticket) GetPartyId

func (x *Ticket) GetPartyId() string

func (*Ticket) GetPlayerIds

func (x *Ticket) GetPlayerIds() []string

func (*Ticket) ProtoMessage

func (*Ticket) ProtoMessage()

func (*Ticket) ProtoReflect

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

func (*Ticket) Reset

func (x *Ticket) Reset()

func (*Ticket) String

func (x *Ticket) String() string

Jump to

Keyboard shortcuts

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