matchmaking

package
v0.0.0-...-5b44b94 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_gameserver_gameserver_matchmaking_proto protoreflect.FileDescriptor
View Source
var GameServerMatchmaking_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "towerdefence.cc.service.gameserver.matchmaking.GameServerMatchmaking",
	HandlerType: (*GameServerMatchmakingServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "MatchFound",
			Handler:    _GameServerMatchmaking_MatchFound_Handler,
		},
		{
			MethodName: "MatchCancelled",
			Handler:    _GameServerMatchmaking_MatchCancelled_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "gameserver/gameserver_matchmaking.proto",
}

GameServerMatchmaking_ServiceDesc is the grpc.ServiceDesc for GameServerMatchmaking service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterGameServerMatchmakingServer

func RegisterGameServerMatchmakingServer(s grpc.ServiceRegistrar, srv GameServerMatchmakingServer)

Types

type GameServerMatchmakingClient

type GameServerMatchmakingClient interface {
	MatchFound(ctx context.Context, in *MatchFoundRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	MatchCancelled(ctx context.Context, in *MatchCancelledRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

GameServerMatchmakingClient is the client API for GameServerMatchmaking service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type GameServerMatchmakingServer

type GameServerMatchmakingServer interface {
	MatchFound(context.Context, *MatchFoundRequest) (*emptypb.Empty, error)
	MatchCancelled(context.Context, *MatchCancelledRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

GameServerMatchmakingServer is the server API for GameServerMatchmaking service. All implementations must embed UnimplementedGameServerMatchmakingServer for forward compatibility

type MatchCancelledRequest

type MatchCancelledRequest struct {
	PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	// contains filtered or unexported fields
}

func (*MatchCancelledRequest) Descriptor deprecated

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

Deprecated: Use MatchCancelledRequest.ProtoReflect.Descriptor instead.

func (*MatchCancelledRequest) GetPlayerId

func (x *MatchCancelledRequest) GetPlayerId() string

func (*MatchCancelledRequest) ProtoMessage

func (*MatchCancelledRequest) ProtoMessage()

func (*MatchCancelledRequest) ProtoReflect

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

func (*MatchCancelledRequest) Reset

func (x *MatchCancelledRequest) Reset()

func (*MatchCancelledRequest) String

func (x *MatchCancelledRequest) String() string

type MatchFoundRequest

type MatchFoundRequest struct {
	PlayerId     string                 `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"`
	PlayerCount  uint32                 `protobuf:"varint,3,opt,name=player_count,json=playerCount,proto3" json:"player_count,omitempty"`
	TeleportTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=teleport_time,json=teleportTime,proto3" json:"teleport_time,omitempty"`
	// contains filtered or unexported fields
}

MatchFoundRequest is sent by the matchmaking director when a match is found. and ALSO when the player count is updated.

func (*MatchFoundRequest) Descriptor deprecated

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

Deprecated: Use MatchFoundRequest.ProtoReflect.Descriptor instead.

func (*MatchFoundRequest) GetPlayerCount

func (x *MatchFoundRequest) GetPlayerCount() uint32

func (*MatchFoundRequest) GetPlayerId

func (x *MatchFoundRequest) GetPlayerId() string

func (*MatchFoundRequest) GetTeleportTime

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

func (*MatchFoundRequest) ProtoMessage

func (*MatchFoundRequest) ProtoMessage()

func (*MatchFoundRequest) ProtoReflect

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

func (*MatchFoundRequest) Reset

func (x *MatchFoundRequest) Reset()

func (*MatchFoundRequest) String

func (x *MatchFoundRequest) String() string

type UnimplementedGameServerMatchmakingServer

type UnimplementedGameServerMatchmakingServer struct {
}

UnimplementedGameServerMatchmakingServer must be embedded to have forward compatible implementations.

func (UnimplementedGameServerMatchmakingServer) MatchCancelled

func (UnimplementedGameServerMatchmakingServer) MatchFound

type UnsafeGameServerMatchmakingServer

type UnsafeGameServerMatchmakingServer interface {
	// contains filtered or unexported methods
}

UnsafeGameServerMatchmakingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GameServerMatchmakingServer will result in compilation errors.

Jump to

Keyboard shortcuts

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