open

package
v0.0.0-...-237b7d6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AcceptanceType_name = map[int32]string{
	0: "UNKNOWN",
	1: "ACCEPT",
	2: "REJECT",
}
View Source
var AcceptanceType_value = map[string]int32{
	"UNKNOWN": 0,
	"ACCEPT":  1,
	"REJECT":  2,
}
View Source
var BackfillMode_name = map[int32]string{
	0: "AUTOMATIC",
	1: "MANUAL",
}
View Source
var BackfillMode_value = map[string]int32{
	"AUTOMATIC": 0,
	"MANUAL":    1,
}
View Source
var ComponentType_name = map[int32]string{
	0: "ComponentType_Rules",
	1: "ComponentType_Teams",
}
View Source
var ComponentType_value = map[string]int32{
	"ComponentType_Rules": 0,
	"ComponentType_Teams": 1,
}
View Source
var MatchEventType_name = map[int32]string{
	0: "MatchmakingQueued",
	1: "MatchmakingSearching",
	2: "PotentialMatchCreated",
	3: "AcceptMatch",
	4: "AcceptMatchCompleted",
	5: "MatchmakingSucceeded",
	6: "MatchmakingTimedOut",
	7: "MatchmakingCancelled",
	8: "MatchmakingFailed",
}
View Source
var MatchEventType_value = map[string]int32{
	"MatchmakingQueued":     0,
	"MatchmakingSearching":  1,
	"PotentialMatchCreated": 2,
	"AcceptMatch":           3,
	"AcceptMatchCompleted":  4,
	"MatchmakingSucceeded":  5,
	"MatchmakingTimedOut":   6,
	"MatchmakingCancelled":  7,
	"MatchmakingFailed":     8,
}
View Source
var MatchmakingRuleType_name = map[int32]string{
	0: "MatchmakingRuleType_Unknown",
	1: "MatchmakingRuleType_Comparison",
	2: "MatchmakingRuleType_Distance",
	3: "MatchmakingRuleType_Collection",
	4: "MatchmakingRuleType_BatchDistance",
	5: "MatchmakingRuleType_AbsoluteSort",
	6: "MatchmakingRuleType_DistanceSort",
}
View Source
var MatchmakingRuleType_value = map[string]int32{
	"MatchmakingRuleType_Unknown":       0,
	"MatchmakingRuleType_Comparison":    1,
	"MatchmakingRuleType_Distance":      2,
	"MatchmakingRuleType_Collection":    3,
	"MatchmakingRuleType_BatchDistance": 4,
	"MatchmakingRuleType_AbsoluteSort":  5,
	"MatchmakingRuleType_DistanceSort":  6,
}
View Source
var MatchmakingTicketStatus_name = map[int32]string{
	0: "QUEUED",
	1: "SEARCHING",
	2: "REQUIRES_ACCEPTANCE",
	3: "PLACING",
	4: "COMPLETED",
	5: "FAILED",
	6: "CANCELLED",
	7: "TIMED_OUT",
}
View Source
var MatchmakingTicketStatus_value = map[string]int32{
	"QUEUED":              0,
	"SEARCHING":           1,
	"REQUIRES_ACCEPTANCE": 2,
	"PLACING":             3,
	"COMPLETED":           4,
	"FAILED":              5,
	"CANCELLED":           6,
	"TIMED_OUT":           7,
}
View Source
var ResultCode_name = map[int32]string{}/* 175 elements not displayed */
View Source
var ResultCode_value = map[string]int32{}/* 175 elements not displayed */
View Source
var SortDirectionType_name = map[int32]string{
	0: "Ascending",
	1: "Descending",
}
View Source
var SortDirectionType_value = map[string]int32{
	"Ascending":  0,
	"Descending": 1,
}

Functions

func RegisterFlexMatchGameServer

func RegisterFlexMatchGameServer(s *grpc.Server, srv FlexMatchGameServer)

func RegisterFlexMatchServer

func RegisterFlexMatchServer(s *grpc.Server, srv FlexMatchServer)

Types

type AcceptMatchRequest

type AcceptMatchRequest struct {
	//要用于请求的对战配置的名称
	ConfigurationName string `protobuf:"bytes,1,opt,name=ConfigurationName,proto3" json:"ConfigurationName,omitempty"`
	// 玩家对潜在匹配的响应 ACCEPT-接受, REJECT-拒绝
	AcceptanceType AcceptanceType `protobuf:"varint,2,opt,name=AcceptanceType,proto3,enum=open.AcceptanceType" json:"AcceptanceType,omitempty"`
	//玩家ID
	PlayerIds []int64 `protobuf:"varint,3,rep,packed,name=PlayerIds,proto3" json:"PlayerIds,omitempty"`
	//票据ID
	TicketId             string   `protobuf:"bytes,4,opt,name=TicketId,proto3" json:"TicketId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

接受匹配

func (*AcceptMatchRequest) Descriptor

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

func (*AcceptMatchRequest) GetAcceptanceType

func (m *AcceptMatchRequest) GetAcceptanceType() AcceptanceType

func (*AcceptMatchRequest) GetConfigurationName

func (m *AcceptMatchRequest) GetConfigurationName() string

func (*AcceptMatchRequest) GetPlayerIds

func (m *AcceptMatchRequest) GetPlayerIds() []int64

func (*AcceptMatchRequest) GetTicketId

func (m *AcceptMatchRequest) GetTicketId() string

func (*AcceptMatchRequest) ProtoMessage

func (*AcceptMatchRequest) ProtoMessage()

func (*AcceptMatchRequest) Reset

func (m *AcceptMatchRequest) Reset()

func (*AcceptMatchRequest) String

func (m *AcceptMatchRequest) String() string

func (*AcceptMatchRequest) XXX_DiscardUnknown

func (m *AcceptMatchRequest) XXX_DiscardUnknown()

func (*AcceptMatchRequest) XXX_Marshal

func (m *AcceptMatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AcceptMatchRequest) XXX_Merge

func (m *AcceptMatchRequest) XXX_Merge(src proto.Message)

func (*AcceptMatchRequest) XXX_Size

func (m *AcceptMatchRequest) XXX_Size() int

func (*AcceptMatchRequest) XXX_Unmarshal

func (m *AcceptMatchRequest) XXX_Unmarshal(b []byte) error

type AcceptMatchResponse

type AcceptMatchResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

接受匹配响应

func (*AcceptMatchResponse) Descriptor

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

func (*AcceptMatchResponse) ProtoMessage

func (*AcceptMatchResponse) ProtoMessage()

func (*AcceptMatchResponse) Reset

func (m *AcceptMatchResponse) Reset()

func (*AcceptMatchResponse) String

func (m *AcceptMatchResponse) String() string

func (*AcceptMatchResponse) XXX_DiscardUnknown

func (m *AcceptMatchResponse) XXX_DiscardUnknown()

func (*AcceptMatchResponse) XXX_Marshal

func (m *AcceptMatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AcceptMatchResponse) XXX_Merge

func (m *AcceptMatchResponse) XXX_Merge(src proto.Message)

func (*AcceptMatchResponse) XXX_Size

func (m *AcceptMatchResponse) XXX_Size() int

func (*AcceptMatchResponse) XXX_Unmarshal

func (m *AcceptMatchResponse) XXX_Unmarshal(b []byte) error

type AcceptanceType

type AcceptanceType int32
const (
	AcceptanceType_UNKNOWN AcceptanceType = 0
	AcceptanceType_ACCEPT  AcceptanceType = 1
	AcceptanceType_REJECT  AcceptanceType = 2
)

func (AcceptanceType) EnumDescriptor

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

func (AcceptanceType) String

func (x AcceptanceType) String() string

type BackfillMode

type BackfillMode int32
const (
	//匹配回填
	BackfillMode_AUTOMATIC BackfillMode = 0
	//MANUAL表示游戏提出回填请求或不使用匹配回填
	BackfillMode_MANUAL BackfillMode = 1
)

func (BackfillMode) EnumDescriptor

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

func (BackfillMode) String

func (x BackfillMode) String() string

type BattleResult

type BattleResult struct {
	PlayerList           []*MatchPlayer `protobuf:"bytes,1,rep,name=PlayerList,proto3" json:"PlayerList,omitempty"`
	WinCamp              string         `protobuf:"bytes,3,opt,name=WinCamp,proto3" json:"WinCamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

对局结果

func (*BattleResult) Descriptor

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

func (*BattleResult) GetPlayerList

func (m *BattleResult) GetPlayerList() []*MatchPlayer

func (*BattleResult) GetWinCamp

func (m *BattleResult) GetWinCamp() string

func (*BattleResult) ProtoMessage

func (*BattleResult) ProtoMessage()

func (*BattleResult) Reset

func (m *BattleResult) Reset()

func (*BattleResult) String

func (m *BattleResult) String() string

func (*BattleResult) XXX_DiscardUnknown

func (m *BattleResult) XXX_DiscardUnknown()

func (*BattleResult) XXX_Marshal

func (m *BattleResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BattleResult) XXX_Merge

func (m *BattleResult) XXX_Merge(src proto.Message)

func (*BattleResult) XXX_Size

func (m *BattleResult) XXX_Size() int

func (*BattleResult) XXX_Unmarshal

func (m *BattleResult) XXX_Unmarshal(b []byte) error

type BattleResultRequest

type BattleResultRequest struct {
	Key                  string        `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Result               *BattleResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

战斗结果

func (*BattleResultRequest) Descriptor

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

func (*BattleResultRequest) GetKey

func (m *BattleResultRequest) GetKey() string

func (*BattleResultRequest) GetResult

func (m *BattleResultRequest) GetResult() *BattleResult

func (*BattleResultRequest) ProtoMessage

func (*BattleResultRequest) ProtoMessage()

func (*BattleResultRequest) Reset

func (m *BattleResultRequest) Reset()

func (*BattleResultRequest) String

func (m *BattleResultRequest) String() string

func (*BattleResultRequest) XXX_DiscardUnknown

func (m *BattleResultRequest) XXX_DiscardUnknown()

func (*BattleResultRequest) XXX_Marshal

func (m *BattleResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BattleResultRequest) XXX_Merge

func (m *BattleResultRequest) XXX_Merge(src proto.Message)

func (*BattleResultRequest) XXX_Size

func (m *BattleResultRequest) XXX_Size() int

func (*BattleResultRequest) XXX_Unmarshal

func (m *BattleResultRequest) XXX_Unmarshal(b []byte) error

type BattleResultResponse

type BattleResultResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BattleResultResponse) Descriptor

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

func (*BattleResultResponse) ProtoMessage

func (*BattleResultResponse) ProtoMessage()

func (*BattleResultResponse) Reset

func (m *BattleResultResponse) Reset()

func (*BattleResultResponse) String

func (m *BattleResultResponse) String() string

func (*BattleResultResponse) XXX_DiscardUnknown

func (m *BattleResultResponse) XXX_DiscardUnknown()

func (*BattleResultResponse) XXX_Marshal

func (m *BattleResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BattleResultResponse) XXX_Merge

func (m *BattleResultResponse) XXX_Merge(src proto.Message)

func (*BattleResultResponse) XXX_Size

func (m *BattleResultResponse) XXX_Size() int

func (*BattleResultResponse) XXX_Unmarshal

func (m *BattleResultResponse) XXX_Unmarshal(b []byte) error

type ComponentType

type ComponentType int32
const (
	//rules-规则
	ComponentType_ComponentType_Rules ComponentType = 0
	//teams-团队
	ComponentType_ComponentType_Teams ComponentType = 1
)

func (ComponentType) EnumDescriptor

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

func (ComponentType) String

func (x ComponentType) String() string

type CreateGameSessionRequest

type CreateGameSessionRequest struct {
	//最大玩家数
	MaximumPlayerSessionCount int32 `protobuf:"varint,1,opt,name=MaximumPlayerSessionCount,proto3" json:"MaximumPlayerSessionCount,omitempty"`
	//游戏透传属性
	GameProperties []*GameProperty `protobuf:"bytes,2,rep,name=GameProperties,proto3" json:"GameProperties,omitempty"`
	//开启游戏会话时透传给游戏服务端的JSON数据
	GameSessionData string `protobuf:"bytes,3,opt,name=GameSessionData,proto3" json:"GameSessionData,omitempty"`
	//匹配ID
	MatchId string `protobuf:"bytes,4,opt,name=MatchId,proto3" json:"MatchId,omitempty"`
	//游戏会话描述 传递对局配置名
	Name string `protobuf:"bytes,5,opt,name=Name,proto3" json:"Name,omitempty"`
	//匹配玩家信息
	Players              []*MatchedPlayerSession `protobuf:"bytes,6,rep,name=Players,proto3" json:"Players,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*CreateGameSessionRequest) Descriptor

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

func (*CreateGameSessionRequest) GetGameProperties

func (m *CreateGameSessionRequest) GetGameProperties() []*GameProperty

func (*CreateGameSessionRequest) GetGameSessionData

func (m *CreateGameSessionRequest) GetGameSessionData() string

func (*CreateGameSessionRequest) GetMatchId

func (m *CreateGameSessionRequest) GetMatchId() string

func (*CreateGameSessionRequest) GetMaximumPlayerSessionCount

func (m *CreateGameSessionRequest) GetMaximumPlayerSessionCount() int32

func (*CreateGameSessionRequest) GetName

func (m *CreateGameSessionRequest) GetName() string

func (*CreateGameSessionRequest) GetPlayers

func (*CreateGameSessionRequest) ProtoMessage

func (*CreateGameSessionRequest) ProtoMessage()

func (*CreateGameSessionRequest) Reset

func (m *CreateGameSessionRequest) Reset()

func (*CreateGameSessionRequest) String

func (m *CreateGameSessionRequest) String() string

func (*CreateGameSessionRequest) XXX_DiscardUnknown

func (m *CreateGameSessionRequest) XXX_DiscardUnknown()

func (*CreateGameSessionRequest) XXX_Marshal

func (m *CreateGameSessionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateGameSessionRequest) XXX_Merge

func (m *CreateGameSessionRequest) XXX_Merge(src proto.Message)

func (*CreateGameSessionRequest) XXX_Size

func (m *CreateGameSessionRequest) XXX_Size() int

func (*CreateGameSessionRequest) XXX_Unmarshal

func (m *CreateGameSessionRequest) XXX_Unmarshal(b []byte) error

type CreateGameSessionResponse

type CreateGameSessionResponse struct {
	//游戏会话
	GameSession          *GameSession `protobuf:"bytes,1,opt,name=GameSession,proto3" json:"GameSession,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*CreateGameSessionResponse) Descriptor

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

func (*CreateGameSessionResponse) GetGameSession

func (m *CreateGameSessionResponse) GetGameSession() *GameSession

func (*CreateGameSessionResponse) ProtoMessage

func (*CreateGameSessionResponse) ProtoMessage()

func (*CreateGameSessionResponse) Reset

func (m *CreateGameSessionResponse) Reset()

func (*CreateGameSessionResponse) String

func (m *CreateGameSessionResponse) String() string

func (*CreateGameSessionResponse) XXX_DiscardUnknown

func (m *CreateGameSessionResponse) XXX_DiscardUnknown()

func (*CreateGameSessionResponse) XXX_Marshal

func (m *CreateGameSessionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateGameSessionResponse) XXX_Merge

func (m *CreateGameSessionResponse) XXX_Merge(src proto.Message)

func (*CreateGameSessionResponse) XXX_Size

func (m *CreateGameSessionResponse) XXX_Size() int

func (*CreateGameSessionResponse) XXX_Unmarshal

func (m *CreateGameSessionResponse) XXX_Unmarshal(b []byte) error

type CreateMatchmakingConfigurationRequest

type CreateMatchmakingConfigurationRequest struct {
	//媒人配置
	Configuration        *MatchmakingConfiguration `protobuf:"bytes,1,opt,name=Configuration,proto3" json:"Configuration,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*CreateMatchmakingConfigurationRequest) Descriptor

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

func (*CreateMatchmakingConfigurationRequest) GetConfiguration

func (*CreateMatchmakingConfigurationRequest) ProtoMessage

func (*CreateMatchmakingConfigurationRequest) ProtoMessage()

func (*CreateMatchmakingConfigurationRequest) Reset

func (*CreateMatchmakingConfigurationRequest) String

func (*CreateMatchmakingConfigurationRequest) XXX_DiscardUnknown

func (m *CreateMatchmakingConfigurationRequest) XXX_DiscardUnknown()

func (*CreateMatchmakingConfigurationRequest) XXX_Marshal

func (m *CreateMatchmakingConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateMatchmakingConfigurationRequest) XXX_Merge

func (*CreateMatchmakingConfigurationRequest) XXX_Size

func (*CreateMatchmakingConfigurationRequest) XXX_Unmarshal

func (m *CreateMatchmakingConfigurationRequest) XXX_Unmarshal(b []byte) error

type CreateMatchmakingConfigurationResponse

type CreateMatchmakingConfigurationResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*CreateMatchmakingConfigurationResponse) Descriptor

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

func (*CreateMatchmakingConfigurationResponse) ProtoMessage

func (*CreateMatchmakingConfigurationResponse) Reset

func (*CreateMatchmakingConfigurationResponse) String

func (*CreateMatchmakingConfigurationResponse) XXX_DiscardUnknown

func (m *CreateMatchmakingConfigurationResponse) XXX_DiscardUnknown()

func (*CreateMatchmakingConfigurationResponse) XXX_Marshal

func (m *CreateMatchmakingConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateMatchmakingConfigurationResponse) XXX_Merge

func (*CreateMatchmakingConfigurationResponse) XXX_Size

func (*CreateMatchmakingConfigurationResponse) XXX_Unmarshal

func (m *CreateMatchmakingConfigurationResponse) XXX_Unmarshal(b []byte) error

type DescribeMatchmakingConfigurationRequest

type DescribeMatchmakingConfigurationRequest struct {
	ConfigurationName    string   `protobuf:"bytes,1,opt,name=ConfigurationName,proto3" json:"ConfigurationName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

检索对战配置

func (*DescribeMatchmakingConfigurationRequest) Descriptor

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

func (*DescribeMatchmakingConfigurationRequest) GetConfigurationName

func (m *DescribeMatchmakingConfigurationRequest) GetConfigurationName() string

func (*DescribeMatchmakingConfigurationRequest) ProtoMessage

func (*DescribeMatchmakingConfigurationRequest) Reset

func (*DescribeMatchmakingConfigurationRequest) String

func (*DescribeMatchmakingConfigurationRequest) XXX_DiscardUnknown

func (m *DescribeMatchmakingConfigurationRequest) XXX_DiscardUnknown()

func (*DescribeMatchmakingConfigurationRequest) XXX_Marshal

func (m *DescribeMatchmakingConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DescribeMatchmakingConfigurationRequest) XXX_Merge

func (*DescribeMatchmakingConfigurationRequest) XXX_Size

func (*DescribeMatchmakingConfigurationRequest) XXX_Unmarshal

func (m *DescribeMatchmakingConfigurationRequest) XXX_Unmarshal(b []byte) error

type DescribeMatchmakingConfigurationResponse

type DescribeMatchmakingConfigurationResponse struct {
	Configuartion        *MatchmakingConfiguration `protobuf:"bytes,1,opt,name=Configuartion,proto3" json:"Configuartion,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

检索对战配置

func (*DescribeMatchmakingConfigurationResponse) Descriptor

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

func (*DescribeMatchmakingConfigurationResponse) GetConfiguartion

func (*DescribeMatchmakingConfigurationResponse) ProtoMessage

func (*DescribeMatchmakingConfigurationResponse) Reset

func (*DescribeMatchmakingConfigurationResponse) String

func (*DescribeMatchmakingConfigurationResponse) XXX_DiscardUnknown

func (m *DescribeMatchmakingConfigurationResponse) XXX_DiscardUnknown()

func (*DescribeMatchmakingConfigurationResponse) XXX_Marshal

func (m *DescribeMatchmakingConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DescribeMatchmakingConfigurationResponse) XXX_Merge

func (*DescribeMatchmakingConfigurationResponse) XXX_Size

func (*DescribeMatchmakingConfigurationResponse) XXX_Unmarshal

func (m *DescribeMatchmakingConfigurationResponse) XXX_Unmarshal(b []byte) error

type DescribeMatchmakingRequest

type DescribeMatchmakingRequest struct {
	//票证ID
	TicketIds            []string `protobuf:"bytes,1,rep,name=TicketIds,proto3" json:"TicketIds,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

检索对战请求详细信息

func (*DescribeMatchmakingRequest) Descriptor

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

func (*DescribeMatchmakingRequest) GetTicketIds

func (m *DescribeMatchmakingRequest) GetTicketIds() []string

func (*DescribeMatchmakingRequest) ProtoMessage

func (*DescribeMatchmakingRequest) ProtoMessage()

func (*DescribeMatchmakingRequest) Reset

func (m *DescribeMatchmakingRequest) Reset()

func (*DescribeMatchmakingRequest) String

func (m *DescribeMatchmakingRequest) String() string

func (*DescribeMatchmakingRequest) XXX_DiscardUnknown

func (m *DescribeMatchmakingRequest) XXX_DiscardUnknown()

func (*DescribeMatchmakingRequest) XXX_Marshal

func (m *DescribeMatchmakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DescribeMatchmakingRequest) XXX_Merge

func (m *DescribeMatchmakingRequest) XXX_Merge(src proto.Message)

func (*DescribeMatchmakingRequest) XXX_Size

func (m *DescribeMatchmakingRequest) XXX_Size() int

func (*DescribeMatchmakingRequest) XXX_Unmarshal

func (m *DescribeMatchmakingRequest) XXX_Unmarshal(b []byte) error

type DescribeMatchmakingResponse

type DescribeMatchmakingResponse struct {
	TicketList           []*MatchmakingTicket `protobuf:"bytes,2,rep,name=TicketList,proto3" json:"TicketList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

检索对战请求详细信息

func (*DescribeMatchmakingResponse) Descriptor

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

func (*DescribeMatchmakingResponse) GetTicketList

func (m *DescribeMatchmakingResponse) GetTicketList() []*MatchmakingTicket

func (*DescribeMatchmakingResponse) ProtoMessage

func (*DescribeMatchmakingResponse) ProtoMessage()

func (*DescribeMatchmakingResponse) Reset

func (m *DescribeMatchmakingResponse) Reset()

func (*DescribeMatchmakingResponse) String

func (m *DescribeMatchmakingResponse) String() string

func (*DescribeMatchmakingResponse) XXX_DiscardUnknown

func (m *DescribeMatchmakingResponse) XXX_DiscardUnknown()

func (*DescribeMatchmakingResponse) XXX_Marshal

func (m *DescribeMatchmakingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DescribeMatchmakingResponse) XXX_Merge

func (m *DescribeMatchmakingResponse) XXX_Merge(src proto.Message)

func (*DescribeMatchmakingResponse) XXX_Size

func (m *DescribeMatchmakingResponse) XXX_Size() int

func (*DescribeMatchmakingResponse) XXX_Unmarshal

func (m *DescribeMatchmakingResponse) XXX_Unmarshal(b []byte) error

type FlexMatchClient

type FlexMatchClient interface {
	//创建一个新的对战配置
	CreateMatchmakingConfiguration(ctx context.Context, in *CreateMatchmakingConfigurationRequest, opts ...grpc.CallOption) (*CreateMatchmakingConfigurationResponse, error)
	//检索对战配置
	DescribeMatchmakingConfiguration(ctx context.Context, in *DescribeMatchmakingConfigurationRequest, opts ...grpc.CallOption) (*DescribeMatchmakingConfigurationResponse, error)
	//创建对战请求
	StartMatchmaking(ctx context.Context, in *StartMatchmakingRequest, opts ...grpc.CallOption) (*StartMatchmakingResponse, error)
	//检索对战请求详细信息 (30秒仍为收到匹配事件,查询ticket状态)
	DescribeMatchmaking(ctx context.Context, in *DescribeMatchmakingRequest, opts ...grpc.CallOption) (*DescribeMatchmakingResponse, error)
	//您可以随时通过调用,取消对战请求StopMatchmaking使用请求的票证 ID
	StopMatchmaking(ctx context.Context, in *StopMatchmakingRequest, opts ...grpc.CallOption) (*StopMatchmakingResponse, error)
	//接受匹配
	AcceptMatch(ctx context.Context, in *AcceptMatchRequest, opts ...grpc.CallOption) (*AcceptMatchResponse, error)
}

FlexMatchClient is the client API for FlexMatch service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFlexMatchClient

func NewFlexMatchClient(cc *grpc.ClientConn) FlexMatchClient

type FlexMatchGameClient

type FlexMatchGameClient interface {
	CreateGameSession(ctx context.Context, in *CreateGameSessionRequest, opts ...grpc.CallOption) (*CreateGameSessionResponse, error)
}

FlexMatchGameClient is the client API for FlexMatchGame service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewFlexMatchGameClient

func NewFlexMatchGameClient(cc *grpc.ClientConn) FlexMatchGameClient

type FlexMatchGameServer

type FlexMatchGameServer interface {
	CreateGameSession(context.Context, *CreateGameSessionRequest) (*CreateGameSessionResponse, error)
}

FlexMatchGameServer is the server API for FlexMatchGame service.

type FlexMatchServer

type FlexMatchServer interface {
	//创建一个新的对战配置
	CreateMatchmakingConfiguration(context.Context, *CreateMatchmakingConfigurationRequest) (*CreateMatchmakingConfigurationResponse, error)
	//检索对战配置
	DescribeMatchmakingConfiguration(context.Context, *DescribeMatchmakingConfigurationRequest) (*DescribeMatchmakingConfigurationResponse, error)
	//创建对战请求
	StartMatchmaking(context.Context, *StartMatchmakingRequest) (*StartMatchmakingResponse, error)
	//检索对战请求详细信息 (30秒仍为收到匹配事件,查询ticket状态)
	DescribeMatchmaking(context.Context, *DescribeMatchmakingRequest) (*DescribeMatchmakingResponse, error)
	//您可以随时通过调用,取消对战请求StopMatchmaking使用请求的票证 ID
	StopMatchmaking(context.Context, *StopMatchmakingRequest) (*StopMatchmakingResponse, error)
	//接受匹配
	AcceptMatch(context.Context, *AcceptMatchRequest) (*AcceptMatchResponse, error)
}

FlexMatchServer is the server API for FlexMatch service.

type GameProperty

type GameProperty struct {
	//属性key
	Key string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	//属性值
	Value                string   `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*GameProperty) Descriptor

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

func (*GameProperty) GetKey

func (m *GameProperty) GetKey() string

func (*GameProperty) GetValue

func (m *GameProperty) GetValue() string

func (*GameProperty) ProtoMessage

func (*GameProperty) ProtoMessage()

func (*GameProperty) Reset

func (m *GameProperty) Reset()

func (*GameProperty) String

func (m *GameProperty) String() string

func (*GameProperty) XXX_DiscardUnknown

func (m *GameProperty) XXX_DiscardUnknown()

func (*GameProperty) XXX_Marshal

func (m *GameProperty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GameProperty) XXX_Merge

func (m *GameProperty) XXX_Merge(src proto.Message)

func (*GameProperty) XXX_Size

func (m *GameProperty) XXX_Size() int

func (*GameProperty) XXX_Unmarshal

func (m *GameProperty) XXX_Unmarshal(b []byte) error

type GameSession

type GameSession struct {
	//游戏会话创建时间
	CreationTime int64 `protobuf:"varint,1,opt,name=CreationTime,proto3" json:"CreationTime,omitempty"`
	//游戏会话玩家数
	CurrentPlayerSessionCount int64 `protobuf:"varint,2,opt,name=CurrentPlayerSessionCount,proto3" json:"CurrentPlayerSessionCount,omitempty"`
	//游戏属性
	GameProperties []*GameProperty `protobuf:"bytes,3,rep,name=GameProperties,proto3" json:"GameProperties,omitempty"`
	//透传字符
	GameSessionData string `protobuf:"bytes,4,opt,name=GameSessionData,proto3" json:"GameSessionData,omitempty"`
	//游戏会话唯一标识    SvcID/RoomId
	GameSessionId string `protobuf:"bytes,5,opt,name=GameSessionId,proto3" json:"GameSessionId,omitempty"`
	//游戏会话描述
	Name string `protobuf:"bytes,6,opt,name=Name,proto3" json:"Name,omitempty"`
	//状态
	Status string `protobuf:"bytes,7,opt,name=Status,proto3" json:"Status,omitempty"`
	//状态原因
	StatusReason string `protobuf:"bytes,8,opt,name=StatusReason,proto3" json:"StatusReason,omitempty"`
	//对局服务器ID, 当游戏希望控制对局的负载均衡时使用
	SvcID string `protobuf:"bytes,9,opt,name=SvcID,proto3" json:"SvcID,omitempty"`
	//对战房间ID
	RoomID               int64    `protobuf:"varint,10,opt,name=RoomID,proto3" json:"RoomID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

描述一个游戏会话的属性。 https://docs.aws.amazon.com/zh_cn/gamelift/latest/apireference/API_GameSession.html 一个处于活跃状态的游戏会话可以接待玩家。当一个游戏会话结束时,它的状态被设置为终结。 一旦会话结束,游戏会话对象将保留30天。这意味着你可以在这个时间之后重新使用idempotency令牌值。游戏会话日志会保留14天。

func (*GameSession) Descriptor

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

func (*GameSession) GetCreationTime

func (m *GameSession) GetCreationTime() int64

func (*GameSession) GetCurrentPlayerSessionCount

func (m *GameSession) GetCurrentPlayerSessionCount() int64

func (*GameSession) GetGameProperties

func (m *GameSession) GetGameProperties() []*GameProperty

func (*GameSession) GetGameSessionData

func (m *GameSession) GetGameSessionData() string

func (*GameSession) GetGameSessionId

func (m *GameSession) GetGameSessionId() string

func (*GameSession) GetName

func (m *GameSession) GetName() string

func (*GameSession) GetRoomID

func (m *GameSession) GetRoomID() int64

func (*GameSession) GetStatus

func (m *GameSession) GetStatus() string

func (*GameSession) GetStatusReason

func (m *GameSession) GetStatusReason() string

func (*GameSession) GetSvcID

func (m *GameSession) GetSvcID() string

func (*GameSession) ProtoMessage

func (*GameSession) ProtoMessage()

func (*GameSession) Reset

func (m *GameSession) Reset()

func (*GameSession) String

func (m *GameSession) String() string

func (*GameSession) XXX_DiscardUnknown

func (m *GameSession) XXX_DiscardUnknown()

func (*GameSession) XXX_Marshal

func (m *GameSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GameSession) XXX_Merge

func (m *GameSession) XXX_Merge(src proto.Message)

func (*GameSession) XXX_Size

func (m *GameSession) XXX_Size() int

func (*GameSession) XXX_Unmarshal

func (m *GameSession) XXX_Unmarshal(b []byte) error

type GameSessionConnectionInfo

type GameSessionConnectionInfo struct {
	//游戏会话唯一标识
	GameSessionId string `protobuf:"bytes,1,opt,name=GameSessionId,proto3" json:"GameSessionId,omitempty"`
	//对战节点服务唯一标识
	SvcID string `protobuf:"bytes,2,opt,name=SvcID,proto3" json:"SvcID,omitempty"`
	//对战房间ID
	RoomID               int64                   `protobuf:"varint,3,opt,name=RoomID,proto3" json:"RoomID,omitempty"`
	Players              []*MatchedPlayerSession `protobuf:"bytes,4,rep,name=Players,proto3" json:"Players,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

响应StartMatchmaking请求而创建的新游戏会话的连接信息。一旦匹配成功,FlexMatch引擎将为其创建一个新的游戏会话。 这些信息,包括原始匹配请求中每个玩家的游戏会话端点和玩家会话,被添加到MatchmakingTicket中, 可以通过调用DescribeMatchmaking检索。

func (*GameSessionConnectionInfo) Descriptor

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

func (*GameSessionConnectionInfo) GetGameSessionId

func (m *GameSessionConnectionInfo) GetGameSessionId() string

func (*GameSessionConnectionInfo) GetPlayers

func (*GameSessionConnectionInfo) GetRoomID

func (m *GameSessionConnectionInfo) GetRoomID() int64

func (*GameSessionConnectionInfo) GetSvcID

func (m *GameSessionConnectionInfo) GetSvcID() string

func (*GameSessionConnectionInfo) ProtoMessage

func (*GameSessionConnectionInfo) ProtoMessage()

func (*GameSessionConnectionInfo) Reset

func (m *GameSessionConnectionInfo) Reset()

func (*GameSessionConnectionInfo) String

func (m *GameSessionConnectionInfo) String() string

func (*GameSessionConnectionInfo) XXX_DiscardUnknown

func (m *GameSessionConnectionInfo) XXX_DiscardUnknown()

func (*GameSessionConnectionInfo) XXX_Marshal

func (m *GameSessionConnectionInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GameSessionConnectionInfo) XXX_Merge

func (m *GameSessionConnectionInfo) XXX_Merge(src proto.Message)

func (*GameSessionConnectionInfo) XXX_Size

func (m *GameSessionConnectionInfo) XXX_Size() int

func (*GameSessionConnectionInfo) XXX_Unmarshal

func (m *GameSessionConnectionInfo) XXX_Unmarshal(b []byte) error

type MatchEvent

type MatchEvent struct {
	//事件类型
	MatchEventType MatchEventType `protobuf:"varint,1,opt,name=MatchEventType,proto3,enum=open.MatchEventType" json:"MatchEventType,omitempty"`
	//匹配票
	Tickets []*MatchmakingTicket `protobuf:"bytes,2,rep,name=Tickets,proto3" json:"Tickets,omitempty"`
	//预计等待时间(毫秒) MatchmakingSearching 存在
	EstimatedWaitMillis int64 `protobuf:"varint,3,opt,name=EstimatedWaitMillis,proto3" json:"EstimatedWaitMillis,omitempty"`
	//是否要求匹配接受
	AcceptanceRequired bool `protobuf:"varint,4,opt,name=AcceptanceRequired,proto3" json:"AcceptanceRequired,omitempty"`
	//匹配接受超时时间(秒)PotentialMatchCreated 存在
	AcceptanceTimeout int64 `protobuf:"varint,5,opt,name=AcceptanceTimeout,proto3" json:"AcceptanceTimeout,omitempty"`
	//匹配ID PotentialMatchCreated,AcceptMatch,AcceptMatchCompleted,MatchmakingSucceeded存在
	MatchId string `protobuf:"bytes,6,opt,name=MatchId,proto3" json:"MatchId,omitempty"`
	//匹配接受阶段完成原因 AcceptMatchCompleted 存在
	AcceptanceCompletedReason string `protobuf:"bytes,7,opt,name=AcceptanceCompletedReason,proto3" json:"AcceptanceCompletedReason,omitempty"`
	//原因 值域:TimedOut|Cancelled|UNEXPECTED_ERROR。MatchmakingTimedOut,MatchmakingCancelled,MatchmakingFailed 存在
	Reason string `protobuf:"bytes,8,opt,name=Reason,proto3" json:"Reason,omitempty"`
	//对原因的描述
	Message string `protobuf:"bytes,9,opt,name=Message,proto3" json:"Message,omitempty"`
	//游戏回话信息
	GameSessionInfo      *GameSessionConnectionInfo `protobuf:"bytes,10,opt,name=GameSessionInfo,proto3" json:"GameSessionInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

匹配事件

func (*MatchEvent) Descriptor

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

func (*MatchEvent) GetAcceptanceCompletedReason

func (m *MatchEvent) GetAcceptanceCompletedReason() string

func (*MatchEvent) GetAcceptanceRequired

func (m *MatchEvent) GetAcceptanceRequired() bool

func (*MatchEvent) GetAcceptanceTimeout

func (m *MatchEvent) GetAcceptanceTimeout() int64

func (*MatchEvent) GetEstimatedWaitMillis

func (m *MatchEvent) GetEstimatedWaitMillis() int64

func (*MatchEvent) GetGameSessionInfo

func (m *MatchEvent) GetGameSessionInfo() *GameSessionConnectionInfo

func (*MatchEvent) GetMatchEventType

func (m *MatchEvent) GetMatchEventType() MatchEventType

func (*MatchEvent) GetMatchId

func (m *MatchEvent) GetMatchId() string

func (*MatchEvent) GetMessage

func (m *MatchEvent) GetMessage() string

func (*MatchEvent) GetReason

func (m *MatchEvent) GetReason() string

func (*MatchEvent) GetTickets

func (m *MatchEvent) GetTickets() []*MatchmakingTicket

func (*MatchEvent) ProtoMessage

func (*MatchEvent) ProtoMessage()

func (*MatchEvent) Reset

func (m *MatchEvent) Reset()

func (*MatchEvent) String

func (m *MatchEvent) String() string

func (*MatchEvent) XXX_DiscardUnknown

func (m *MatchEvent) XXX_DiscardUnknown()

func (*MatchEvent) XXX_Marshal

func (m *MatchEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchEvent) XXX_Merge

func (m *MatchEvent) XXX_Merge(src proto.Message)

func (*MatchEvent) XXX_Size

func (m *MatchEvent) XXX_Size() int

func (*MatchEvent) XXX_Unmarshal

func (m *MatchEvent) XXX_Unmarshal(b []byte) error

type MatchEventType

type MatchEventType int32

匹配事件类型

const (
	//票据入缓存队列,还未开始Searching
	MatchEventType_MatchmakingQueued MatchEventType = 0
	//MatchmakingSearching 票据已被输入到匹配中。这包括新的请求和属于潜在匹配失败的请求。
	MatchEventType_MatchmakingSearching MatchEventType = 1
	//PotentialMatchCreated 一个潜在的匹配已经被创建。对于所有新的潜在匹配,不管是否需要接受,都会发出这个消息。
	MatchEventType_PotentialMatchCreated MatchEventType = 2
	//AcceptMatch 玩家已经接受了一场潜在的比赛。这个事件包含了比赛中每个玩家的当前接受状态。缺少的数据意味着AcceptMatch还没有为该玩家调用。
	MatchEventType_AcceptMatch MatchEventType = 3
	//AcceptMatchCompleted 由于玩家接受、玩家拒绝或接受超时,比赛接受完成。
	MatchEventType_AcceptMatchCompleted MatchEventType = 4
	//MatchmakingSucceeded 匹配已经成功完成,并且已经创建了一个游戏会话。
	MatchEventType_MatchmakingSucceeded MatchEventType = 5
	//MatchmakingTimedOut 匹配票因超时而失败。
	MatchEventType_MatchmakingTimedOut MatchEventType = 6
	//MatchmakingCancelled  匹配票已被取消。
	MatchEventType_MatchmakingCancelled MatchEventType = 7
	//MatchmakingFailed
	//匹配票遇到了一个错误。这可能是由于游戏会话队列无法访问或内部错误造成的。
	MatchEventType_MatchmakingFailed MatchEventType = 8
)

func (MatchEventType) EnumDescriptor

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

func (MatchEventType) String

func (x MatchEventType) String() string

type MatchPlayer

type MatchPlayer struct {
	UserId   int64 `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	Accepted bool  `protobuf:"varint,2,opt,name=Accepted,proto3" json:"Accepted,omitempty"`
	//玩家属性
	Attributes           []*PlayerAttribute `protobuf:"bytes,3,rep,name=Attributes,proto3" json:"Attributes,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

玩家战力相关信息

func (*MatchPlayer) Descriptor

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

func (*MatchPlayer) GetAccepted

func (m *MatchPlayer) GetAccepted() bool

func (*MatchPlayer) GetAttributes

func (m *MatchPlayer) GetAttributes() []*PlayerAttribute

func (*MatchPlayer) GetUserId

func (m *MatchPlayer) GetUserId() int64

func (*MatchPlayer) ProtoMessage

func (*MatchPlayer) ProtoMessage()

func (*MatchPlayer) Reset

func (m *MatchPlayer) Reset()

func (*MatchPlayer) String

func (m *MatchPlayer) String() string

func (*MatchPlayer) XXX_DiscardUnknown

func (m *MatchPlayer) XXX_DiscardUnknown()

func (*MatchPlayer) XXX_Marshal

func (m *MatchPlayer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchPlayer) XXX_Merge

func (m *MatchPlayer) XXX_Merge(src proto.Message)

func (*MatchPlayer) XXX_Size

func (m *MatchPlayer) XXX_Size() int

func (*MatchPlayer) XXX_Unmarshal

func (m *MatchPlayer) XXX_Unmarshal(b []byte) error

type MatchTeam

type MatchTeam struct {
	Conf                 *MatchmakingTeamConfiguration `protobuf:"bytes,1,opt,name=Conf,proto3" json:"Conf,omitempty"`
	Tickets              []*MatchmakingTicket          `protobuf:"bytes,2,rep,name=Tickets,proto3" json:"Tickets,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

匹配团队

func (*MatchTeam) Descriptor

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

func (*MatchTeam) GetConf

func (*MatchTeam) GetTickets

func (m *MatchTeam) GetTickets() []*MatchmakingTicket

func (*MatchTeam) ProtoMessage

func (*MatchTeam) ProtoMessage()

func (*MatchTeam) Reset

func (m *MatchTeam) Reset()

func (*MatchTeam) String

func (m *MatchTeam) String() string

func (*MatchTeam) XXX_DiscardUnknown

func (m *MatchTeam) XXX_DiscardUnknown()

func (*MatchTeam) XXX_Marshal

func (m *MatchTeam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchTeam) XXX_Merge

func (m *MatchTeam) XXX_Merge(src proto.Message)

func (*MatchTeam) XXX_Size

func (m *MatchTeam) XXX_Size() int

func (*MatchTeam) XXX_Unmarshal

func (m *MatchTeam) XXX_Unmarshal(b []byte) error

type MatchedPlayerSession

type MatchedPlayerSession struct {
	UserId               int64    `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	AgentSvcID           string   `protobuf:"bytes,2,opt,name=AgentSvcID,proto3" json:"AgentSvcID,omitempty"`
	AgentSessionID       string   `protobuf:"bytes,3,opt,name=AgentSessionID,proto3" json:"AgentSessionID,omitempty"`
	Team                 string   `protobuf:"bytes,4,opt,name=Team,proto3" json:"Team,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

玩家会话

func (*MatchedPlayerSession) Descriptor

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

func (*MatchedPlayerSession) GetAgentSessionID

func (m *MatchedPlayerSession) GetAgentSessionID() string

func (*MatchedPlayerSession) GetAgentSvcID

func (m *MatchedPlayerSession) GetAgentSvcID() string

func (*MatchedPlayerSession) GetTeam

func (m *MatchedPlayerSession) GetTeam() string

func (*MatchedPlayerSession) GetUserId

func (m *MatchedPlayerSession) GetUserId() int64

func (*MatchedPlayerSession) ProtoMessage

func (*MatchedPlayerSession) ProtoMessage()

func (*MatchedPlayerSession) Reset

func (m *MatchedPlayerSession) Reset()

func (*MatchedPlayerSession) String

func (m *MatchedPlayerSession) String() string

func (*MatchedPlayerSession) XXX_DiscardUnknown

func (m *MatchedPlayerSession) XXX_DiscardUnknown()

func (*MatchedPlayerSession) XXX_Marshal

func (m *MatchedPlayerSession) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchedPlayerSession) XXX_Merge

func (m *MatchedPlayerSession) XXX_Merge(src proto.Message)

func (*MatchedPlayerSession) XXX_Size

func (m *MatchedPlayerSession) XXX_Size() int

func (*MatchedPlayerSession) XXX_Unmarshal

func (m *MatchedPlayerSession) XXX_Unmarshal(b []byte) error

type MatchmakingConfiguration

type MatchmakingConfiguration struct {
	//一个标志,表示用此配置创建的匹配是否必须被匹配的玩家接受。若要求接受,设置为TRUE。
	//当这个选项被启用时,匹配票使用状态REQUIRES_ACCEPTANCE来指示完成的潜在匹配正在等
	//待玩家接受。
	// 必须:否
	AcceptanceRequired bool `protobuf:"varint,1,opt,name=AcceptanceRequired,proto3" json:"AcceptanceRequired,omitempty"`
	//如果需要接受,等待玩家接受提议的比赛的时间长度(秒)。如果有玩家拒绝比赛或在超时前没
	//有接受,门票继续寻找可接受的比赛。
	//值域: 1-600
	// 必须: 否
	AcceptanceTimeoutSeconds int64 `protobuf:"varint,2,opt,name=AcceptanceTimeoutSeconds,proto3" json:"AcceptanceTimeoutSeconds,omitempty"`
	//用于回填用该匹配配置创建的游戏会话的方法。MANUAL表示游戏提出回填请求或不使用匹配回填
	//功能。AUTOMATIC表示,只要游戏会话有一个或多个空位,GameLift就会创建StartMatchBackfill请求。
	//了解更多关于手动和自动回填的信息,请参见用FlexMatch回填现有游戏。当FlexMatchMode设置为STANDALONE时,
	//自动回填不可用。
	//值域:AUTOMATIC | MANUAL
	// 必须:否
	BackfillMode string `protobuf:"bytes,4,opt,name=BackfillMode,proto3" json:"BackfillMode,omitempty"`
	//一个描述性的标签,与匹配配置有关。
	// 必须:否
	Description string `protobuf:"bytes,8,opt,name=Description,proto3" json:"Description,omitempty"`
	//表示该匹配配置是与GameLift托管一起使用还是作为独立的匹配解决方案。
	//    STANDALONE - FlexMatch形成比赛,并在MatchmakingSucceeded事件中返回比赛信息,包括球员和球队的分配。
	//    WITH_QUEUE - FlexMatch组建比赛并使用指定的GameLift队列来启动比赛的游戏会话。 (对局由其他服务实现!!!)
	// 必须:否
	FlexMatchMode string `protobuf:"bytes,9,opt,name=FlexMatchMode,proto3" json:"FlexMatchMode,omitempty"`
	//一组游戏会话的自定义属性,格式为键:值对。这些属性在GameSession对象中被传递给游戏服务器进程,
	//并请求启动一个新的游戏会话(见启动游戏会话)。这些信息被添加到新的GameSession对象中,该对象
	//是为一个成功的比赛而创建的。当FlexMatchMode设置为STANDALONE时,这个参数不被使用。
	//必须:否
	GameProperties []*GameProperty `protobuf:"bytes,10,rep,name=GameProperties,proto3" json:"GameProperties,omitempty"`
	//开启游戏会话时透传给游戏服务端的JSON数据
	GameSessionData string `protobuf:"bytes,11,opt,name=GameSessionData,proto3" json:"GameSessionData,omitempty"`
	//匹配配置的唯一标识符。该名称用于识别与匹配请求或票据相关的配置。
	Name string `protobuf:"bytes,13,opt,name=Name,proto3" json:"Name,omitempty"`
	//一个SNS主题ARN,它被设置为接收匹配通知。
	NotificationTarget string `protobuf:"bytes,14,opt,name=NotificationTarget,proto3" json:"NotificationTarget,omitempty"`
	//匹配票在超时前可以保持在进程中的最大持续时间(秒)。由于超时而失败的请求可以根据需要重新提交。
	//值域:1-43200 (12小时)
	//必须:否
	RequestTimeoutSeconds int64 `protobuf:"varint,15,opt,name=RequestTimeoutSeconds,proto3" json:"RequestTimeoutSeconds,omitempty"`
	//规则集
	RuleSet *MatchmakingRuleSet `protobuf:"bytes,16,opt,name=RuleSet,proto3" json:"RuleSet,omitempty"`
	//匹配事件队列topic 默认和Name保持一致
	MatchEventQueueTopic string `protobuf:"bytes,17,opt,name=MatchEventQueueTopic,proto3" json:"MatchEventQueueTopic,omitempty"`
	//调试模式: 调试模式下不会真正创建对局,且加强日志打印
	Debug                bool     `protobuf:"varint,18,opt,name=Debug,proto3" json:"Debug,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

匹配配置 https://docs.aws.amazon.com/zh_cn/gamelift/latest/apireference/API_MatchmakingConfiguration.html

func (*MatchmakingConfiguration) Descriptor

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

func (*MatchmakingConfiguration) GetAcceptanceRequired

func (m *MatchmakingConfiguration) GetAcceptanceRequired() bool

func (*MatchmakingConfiguration) GetAcceptanceTimeoutSeconds

func (m *MatchmakingConfiguration) GetAcceptanceTimeoutSeconds() int64

func (*MatchmakingConfiguration) GetBackfillMode

func (m *MatchmakingConfiguration) GetBackfillMode() string

func (*MatchmakingConfiguration) GetDebug

func (m *MatchmakingConfiguration) GetDebug() bool

func (*MatchmakingConfiguration) GetDescription

func (m *MatchmakingConfiguration) GetDescription() string

func (*MatchmakingConfiguration) GetFlexMatchMode

func (m *MatchmakingConfiguration) GetFlexMatchMode() string

func (*MatchmakingConfiguration) GetGameProperties

func (m *MatchmakingConfiguration) GetGameProperties() []*GameProperty

func (*MatchmakingConfiguration) GetGameSessionData

func (m *MatchmakingConfiguration) GetGameSessionData() string

func (*MatchmakingConfiguration) GetMatchEventQueueTopic

func (m *MatchmakingConfiguration) GetMatchEventQueueTopic() string

func (*MatchmakingConfiguration) GetName

func (m *MatchmakingConfiguration) GetName() string

func (*MatchmakingConfiguration) GetNotificationTarget

func (m *MatchmakingConfiguration) GetNotificationTarget() string

func (*MatchmakingConfiguration) GetRequestTimeoutSeconds

func (m *MatchmakingConfiguration) GetRequestTimeoutSeconds() int64

func (*MatchmakingConfiguration) GetRuleSet

func (*MatchmakingConfiguration) ProtoMessage

func (*MatchmakingConfiguration) ProtoMessage()

func (*MatchmakingConfiguration) Reset

func (m *MatchmakingConfiguration) Reset()

func (*MatchmakingConfiguration) String

func (m *MatchmakingConfiguration) String() string

func (*MatchmakingConfiguration) XXX_DiscardUnknown

func (m *MatchmakingConfiguration) XXX_DiscardUnknown()

func (*MatchmakingConfiguration) XXX_Marshal

func (m *MatchmakingConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingConfiguration) XXX_Merge

func (m *MatchmakingConfiguration) XXX_Merge(src proto.Message)

func (*MatchmakingConfiguration) XXX_Size

func (m *MatchmakingConfiguration) XXX_Size() int

func (*MatchmakingConfiguration) XXX_Unmarshal

func (m *MatchmakingConfiguration) XXX_Unmarshal(b []byte) error

type MatchmakingExpansionRule

type MatchmakingExpansionRule struct {
	//目标,例如选择规则minSkill的参考值为: {ComponentType:rules,ComponentName:minSKill,Attribute:referenceValue}
	Target *MatchmakingExpansionRuleTarget `protobuf:"bytes,1,opt,name=Target,proto3" json:"Target,omitempty"`
	//固定扩张距离/次
	FixedExpansionDistance float64 `protobuf:"fixed64,2,opt,name=FixedExpansionDistance,proto3" json:"FixedExpansionDistance,omitempty"`
	//扩张阶段, FixedExpansionDistance为空时生效
	Steps                []*MatchmakingExpansionRuleStep `protobuf:"bytes,3,rep,name=Steps,proto3" json:"Steps,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

扩张配置

func (*MatchmakingExpansionRule) Descriptor

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

func (*MatchmakingExpansionRule) GetFixedExpansionDistance

func (m *MatchmakingExpansionRule) GetFixedExpansionDistance() float64

func (*MatchmakingExpansionRule) GetSteps

func (*MatchmakingExpansionRule) GetTarget

func (*MatchmakingExpansionRule) ProtoMessage

func (*MatchmakingExpansionRule) ProtoMessage()

func (*MatchmakingExpansionRule) Reset

func (m *MatchmakingExpansionRule) Reset()

func (*MatchmakingExpansionRule) String

func (m *MatchmakingExpansionRule) String() string

func (*MatchmakingExpansionRule) XXX_DiscardUnknown

func (m *MatchmakingExpansionRule) XXX_DiscardUnknown()

func (*MatchmakingExpansionRule) XXX_Marshal

func (m *MatchmakingExpansionRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingExpansionRule) XXX_Merge

func (m *MatchmakingExpansionRule) XXX_Merge(src proto.Message)

func (*MatchmakingExpansionRule) XXX_Size

func (m *MatchmakingExpansionRule) XXX_Size() int

func (*MatchmakingExpansionRule) XXX_Unmarshal

func (m *MatchmakingExpansionRule) XXX_Unmarshal(b []byte) error

type MatchmakingExpansionRuleStep

type MatchmakingExpansionRuleStep struct {
	//匹配等待时间
	WaitTimeSeconds int64 `protobuf:"varint,1,opt,name=WaitTimeSeconds,proto3" json:"WaitTimeSeconds,omitempty"`
	//扩张后的值
	Value                float64  `protobuf:"fixed64,2,opt,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

扩张阶段

func (*MatchmakingExpansionRuleStep) Descriptor

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

func (*MatchmakingExpansionRuleStep) GetValue

func (m *MatchmakingExpansionRuleStep) GetValue() float64

func (*MatchmakingExpansionRuleStep) GetWaitTimeSeconds

func (m *MatchmakingExpansionRuleStep) GetWaitTimeSeconds() int64

func (*MatchmakingExpansionRuleStep) ProtoMessage

func (*MatchmakingExpansionRuleStep) ProtoMessage()

func (*MatchmakingExpansionRuleStep) Reset

func (m *MatchmakingExpansionRuleStep) Reset()

func (*MatchmakingExpansionRuleStep) String

func (*MatchmakingExpansionRuleStep) XXX_DiscardUnknown

func (m *MatchmakingExpansionRuleStep) XXX_DiscardUnknown()

func (*MatchmakingExpansionRuleStep) XXX_Marshal

func (m *MatchmakingExpansionRuleStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingExpansionRuleStep) XXX_Merge

func (m *MatchmakingExpansionRuleStep) XXX_Merge(src proto.Message)

func (*MatchmakingExpansionRuleStep) XXX_Size

func (m *MatchmakingExpansionRuleStep) XXX_Size() int

func (*MatchmakingExpansionRuleStep) XXX_Unmarshal

func (m *MatchmakingExpansionRuleStep) XXX_Unmarshal(b []byte) error

type MatchmakingExpansionRuleTarget

type MatchmakingExpansionRuleTarget struct {
	//组件类型 rules-规则 teams-团队
	ComponentType ComponentType `protobuf:"varint,1,opt,name=ComponentType,proto3,enum=open.ComponentType" json:"ComponentType,omitempty"`
	//组件名 例如 当ComponentName为rules,对规则minSkill进行扩展
	ComponentName string `protobuf:"bytes,2,opt,name=ComponentName,proto3" json:"ComponentName,omitempty"`
	//目标组件属性,例如referenceValue
	Attribute            string   `protobuf:"bytes,3,opt,name=Attribute,proto3" json:"Attribute,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MatchmakingExpansionRuleTarget) Descriptor

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

func (*MatchmakingExpansionRuleTarget) GetAttribute

func (m *MatchmakingExpansionRuleTarget) GetAttribute() string

func (*MatchmakingExpansionRuleTarget) GetComponentName

func (m *MatchmakingExpansionRuleTarget) GetComponentName() string

func (*MatchmakingExpansionRuleTarget) GetComponentType

func (m *MatchmakingExpansionRuleTarget) GetComponentType() ComponentType

func (*MatchmakingExpansionRuleTarget) ProtoMessage

func (*MatchmakingExpansionRuleTarget) ProtoMessage()

func (*MatchmakingExpansionRuleTarget) Reset

func (m *MatchmakingExpansionRuleTarget) Reset()

func (*MatchmakingExpansionRuleTarget) String

func (*MatchmakingExpansionRuleTarget) XXX_DiscardUnknown

func (m *MatchmakingExpansionRuleTarget) XXX_DiscardUnknown()

func (*MatchmakingExpansionRuleTarget) XXX_Marshal

func (m *MatchmakingExpansionRuleTarget) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingExpansionRuleTarget) XXX_Merge

func (m *MatchmakingExpansionRuleTarget) XXX_Merge(src proto.Message)

func (*MatchmakingExpansionRuleTarget) XXX_Size

func (m *MatchmakingExpansionRuleTarget) XXX_Size() int

func (*MatchmakingExpansionRuleTarget) XXX_Unmarshal

func (m *MatchmakingExpansionRuleTarget) XXX_Unmarshal(b []byte) error

type MatchmakingRule

type MatchmakingRule struct {
	//规则名
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	//规则描述
	Description string              `protobuf:"bytes,2,opt,name=Description,proto3" json:"Description,omitempty"`
	Type        MatchmakingRuleType `protobuf:"varint,3,opt,name=Type,proto3,enum=open.MatchmakingRuleType" json:"Type,omitempty"`
	//测量值表达式
	Measurements string `protobuf:"bytes,4,opt,name=Measurements,proto3" json:"Measurements,omitempty"`
	//参考值表达式
	ReferenceValue string `protobuf:"bytes,5,opt,name=ReferenceValue,proto3" json:"ReferenceValue,omitempty"`
	//最大筛选距离,Type为distance时生效,筛选目标匹配属性到当前值的最大绝对值(距离)
	MaxDistance float64 `protobuf:"fixed64,6,opt,name=MaxDistance,proto3" json:"MaxDistance,omitempty"`
	//比较运算符,Type为comparison时生效,包含:=, !=, <, <=, >, >=
	Operation string `protobuf:"bytes,7,opt,name=Operation,proto3" json:"Operation,omitempty"`
	//决定FlexMatch如何处理有多个玩家(当事人)的门票的值。有效的选项包括票据玩家的最小(min)、最大(max)和平均(avg)值。默认值是avg
	PartyAggregation string `protobuf:"bytes,8,opt,name=PartyAggregation,proto3" json:"PartyAggregation,omitempty"`
	//用来形成批次的玩家属性值
	BatchAttribute string `protobuf:"bytes,9,opt,name=BatchAttribute,proto3" json:"BatchAttribute,omitempty"`
	//排序属性
	SortAttribute string `protobuf:"bytes,10,opt,name=SortAttribute,proto3" json:"SortAttribute,omitempty"`
	//升序或降序
	SortDirection        SortDirectionType `protobuf:"varint,11,opt,name=SortDirection,proto3,enum=open.SortDirectionType" json:"SortDirection,omitempty"`
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*MatchmakingRule) Descriptor

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

func (*MatchmakingRule) GetBatchAttribute

func (m *MatchmakingRule) GetBatchAttribute() string

func (*MatchmakingRule) GetDescription

func (m *MatchmakingRule) GetDescription() string

func (*MatchmakingRule) GetMaxDistance

func (m *MatchmakingRule) GetMaxDistance() float64

func (*MatchmakingRule) GetMeasurements

func (m *MatchmakingRule) GetMeasurements() string

func (*MatchmakingRule) GetName

func (m *MatchmakingRule) GetName() string

func (*MatchmakingRule) GetOperation

func (m *MatchmakingRule) GetOperation() string

func (*MatchmakingRule) GetPartyAggregation

func (m *MatchmakingRule) GetPartyAggregation() string

func (*MatchmakingRule) GetReferenceValue

func (m *MatchmakingRule) GetReferenceValue() string

func (*MatchmakingRule) GetSortAttribute

func (m *MatchmakingRule) GetSortAttribute() string

func (*MatchmakingRule) GetSortDirection

func (m *MatchmakingRule) GetSortDirection() SortDirectionType

func (*MatchmakingRule) GetType

func (m *MatchmakingRule) GetType() MatchmakingRuleType

func (*MatchmakingRule) ProtoMessage

func (*MatchmakingRule) ProtoMessage()

func (*MatchmakingRule) Reset

func (m *MatchmakingRule) Reset()

func (*MatchmakingRule) String

func (m *MatchmakingRule) String() string

func (*MatchmakingRule) XXX_DiscardUnknown

func (m *MatchmakingRule) XXX_DiscardUnknown()

func (*MatchmakingRule) XXX_Marshal

func (m *MatchmakingRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingRule) XXX_Merge

func (m *MatchmakingRule) XXX_Merge(src proto.Message)

func (*MatchmakingRule) XXX_Size

func (m *MatchmakingRule) XXX_Size() int

func (*MatchmakingRule) XXX_Unmarshal

func (m *MatchmakingRule) XXX_Unmarshal(b []byte) error

type MatchmakingRuleAlgorithm

type MatchmakingRuleAlgorithm struct {
	//批次偏好,批前排序:
	// sorted - 提供一个玩家属性列表,对票池进行预排序。然后,FlexMatch创建的批次在排序的属性上更加统一。
	//          例如,如果你按玩家技能对票池进行预排序,FlexMatch会将技能水平相似的票放在一起。如果你的规
	//          则集也包含了基于玩家技能的匹配规则,那么预批排序可以提高匹配效率。
	BatchingPreference string `protobuf:"bytes,1,opt,name=BatchingPreference,proto3" json:"BatchingPreference,omitempty"`
	//玩家排序属性
	SortByAttributes     []string `protobuf:"bytes,2,rep,name=SortByAttributes,proto3" json:"SortByAttributes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-design-ruleset.html#match-rulesets-components-algorithm 你可以配置FlexMatch,在形成批次之前对票池进行分类。 这种类型的定制对有大票池的游戏最有效。批前排序可以帮助加快匹配过程, 提高玩家在定义特征上的统一性。 使用算法属性 batchingPreference 来定义批前排序方法。默认设置是random(也就是不做批前排序,按ticket加入到队列的时间)。

func (*MatchmakingRuleAlgorithm) Descriptor

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

func (*MatchmakingRuleAlgorithm) GetBatchingPreference

func (m *MatchmakingRuleAlgorithm) GetBatchingPreference() string

func (*MatchmakingRuleAlgorithm) GetSortByAttributes

func (m *MatchmakingRuleAlgorithm) GetSortByAttributes() []string

func (*MatchmakingRuleAlgorithm) ProtoMessage

func (*MatchmakingRuleAlgorithm) ProtoMessage()

func (*MatchmakingRuleAlgorithm) Reset

func (m *MatchmakingRuleAlgorithm) Reset()

func (*MatchmakingRuleAlgorithm) String

func (m *MatchmakingRuleAlgorithm) String() string

func (*MatchmakingRuleAlgorithm) XXX_DiscardUnknown

func (m *MatchmakingRuleAlgorithm) XXX_DiscardUnknown()

func (*MatchmakingRuleAlgorithm) XXX_Marshal

func (m *MatchmakingRuleAlgorithm) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingRuleAlgorithm) XXX_Merge

func (m *MatchmakingRuleAlgorithm) XXX_Merge(src proto.Message)

func (*MatchmakingRuleAlgorithm) XXX_Size

func (m *MatchmakingRuleAlgorithm) XXX_Size() int

func (*MatchmakingRuleAlgorithm) XXX_Unmarshal

func (m *MatchmakingRuleAlgorithm) XXX_Unmarshal(b []byte) error

type MatchmakingRuleSet

type MatchmakingRuleSet struct {
	//玩家属性
	PlayerAttributes []*PlayerAttribute `protobuf:"bytes,2,rep,name=PlayerAttributes,proto3" json:"PlayerAttributes,omitempty"`
	//团队
	Teams                []*MatchmakingTeamConfiguration `protobuf:"bytes,3,rep,name=Teams,proto3" json:"Teams,omitempty"`
	Rules                []*MatchmakingRule              `protobuf:"bytes,4,rep,name=Rules,proto3" json:"Rules,omitempty"`
	Expansions           []*MatchmakingExpansionRule     `protobuf:"bytes,5,rep,name=Expansions,proto3" json:"Expansions,omitempty"`
	Algorithm            *MatchmakingRuleAlgorithm       `protobuf:"bytes,6,opt,name=Algorithm,proto3" json:"Algorithm,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
	XXX_unrecognized     []byte                          `json:"-"`
	XXX_sizecache        int32                           `json:"-"`
}

创建匹配池

func (*MatchmakingRuleSet) Descriptor

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

func (*MatchmakingRuleSet) GetAlgorithm

func (m *MatchmakingRuleSet) GetAlgorithm() *MatchmakingRuleAlgorithm

func (*MatchmakingRuleSet) GetExpansions

func (m *MatchmakingRuleSet) GetExpansions() []*MatchmakingExpansionRule

func (*MatchmakingRuleSet) GetPlayerAttributes

func (m *MatchmakingRuleSet) GetPlayerAttributes() []*PlayerAttribute

func (*MatchmakingRuleSet) GetRules

func (m *MatchmakingRuleSet) GetRules() []*MatchmakingRule

func (*MatchmakingRuleSet) GetTeams

func (*MatchmakingRuleSet) ProtoMessage

func (*MatchmakingRuleSet) ProtoMessage()

func (*MatchmakingRuleSet) Reset

func (m *MatchmakingRuleSet) Reset()

func (*MatchmakingRuleSet) String

func (m *MatchmakingRuleSet) String() string

func (*MatchmakingRuleSet) XXX_DiscardUnknown

func (m *MatchmakingRuleSet) XXX_DiscardUnknown()

func (*MatchmakingRuleSet) XXX_Marshal

func (m *MatchmakingRuleSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingRuleSet) XXX_Merge

func (m *MatchmakingRuleSet) XXX_Merge(src proto.Message)

func (*MatchmakingRuleSet) XXX_Size

func (m *MatchmakingRuleSet) XXX_Size() int

func (*MatchmakingRuleSet) XXX_Unmarshal

func (m *MatchmakingRuleSet) XXX_Unmarshal(b []byte) error

type MatchmakingRuleType

type MatchmakingRuleType int32
const (
	MatchmakingRuleType_MatchmakingRuleType_Unknown MatchmakingRuleType = 0
	//comparison-比较规则将一个玩家的属性值与另一个值进行比较。
	//           比较规则属性:
	//                  measurements(测量值)-要比较的玩家属性值。
	//                  referenceValue(参考值)-将测量值与潜在的匹配值进行比较。作用是什么? measurements里的值与referenceValue进行比较吗, operation为=或者!=时,可为空
	//                  operation(运算符)-<, <=, =, !=, >, >=
	//                  partyAggregation-决定FlexMatch如何处理有多个玩家(当事人)的门票的值。有效的选项包括票据玩家的最小(min)、最大(max)和平均(avg)值。默认值是avg。
	MatchmakingRuleType_MatchmakingRuleType_Comparison MatchmakingRuleType = 1
	//distance-距离规则衡量两个数字值之间的差异,如玩家技能水平之间的距离。例如,一个距离规则可能要求所有玩家至少玩了30个小时的游戏。
	//          距离规则属性:
	//                  measurements(测量值)-要测量距离的玩家属性值。这必须是一个有数值的属性。
	//                  referenceValue(参考值)-用来衡量潜在匹配的距离的数值
	//                  minDistance/maxDistance–成功匹配的最小或最大距离值。
	//                  partyAggregation-如上
	MatchmakingRuleType_MatchmakingRuleType_Distance MatchmakingRuleType = 2
	//collection-集合规则(暂不实现)
	MatchmakingRuleType_MatchmakingRuleType_Collection MatchmakingRuleType = 3
	//batchDistance-批量距离规则测量两个属性值之间的差异。你可以在大匹配和小匹配中使用批量距离规则类型 (王者中段位匹配规则?不能和段位差距过大的参与匹配)
	//              批量距离规则属性:
	//                          batchAttribute-用来形成批次的玩家属性值
	//                          maxDistance-成功匹配的最大距离值。用于比较数字属性。
	//                          partyAggregation-如上
	//例如,这种类型的批次距离规则可能要求比赛中的所有玩家都在彼此的两个技能等级之内。对于这种类型,定义所有票据的 batchAttribute 之间的最大距离。
	MatchmakingRuleType_MatchmakingRuleType_BatchDistance MatchmakingRuleType = 4
	//absoluteSort-绝对排序规则根据指定的球员属性,与添加到该批次的第一张票相比,对一批匹配票进行排序。
	//              绝对排序规则属性:
	//                          sortDirection-匹配票的排序顺序。有效选项包括ascending和descending
	//                          sortAttribute-要对门票进行排序的玩家属性。
	//                          partyAggregation-如上
	MatchmakingRuleType_MatchmakingRuleType_AbsoluteSort MatchmakingRuleType = 5
	//distanceSort-距离排序规则根据指定的球员属性与加入该批次的第一张票的距离,对一批匹配票进行排序。 和absoluteSort有什么区别?距离排序是取绝对值,绝对排序存在正负距离?
	//              距离排序规则属性同absoluteSort
	MatchmakingRuleType_MatchmakingRuleType_DistanceSort MatchmakingRuleType = 6
)

func (MatchmakingRuleType) EnumDescriptor

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

func (MatchmakingRuleType) String

func (x MatchmakingRuleType) String() string

type MatchmakingTeamConfiguration

type MatchmakingTeamConfiguration struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	PlayerNumber         int32    `protobuf:"varint,2,opt,name=PlayerNumber,proto3" json:"PlayerNumber,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MatchmakingTeamConfiguration) Descriptor

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

func (*MatchmakingTeamConfiguration) GetName

func (m *MatchmakingTeamConfiguration) GetName() string

func (*MatchmakingTeamConfiguration) GetPlayerNumber

func (m *MatchmakingTeamConfiguration) GetPlayerNumber() int32

func (*MatchmakingTeamConfiguration) ProtoMessage

func (*MatchmakingTeamConfiguration) ProtoMessage()

func (*MatchmakingTeamConfiguration) Reset

func (m *MatchmakingTeamConfiguration) Reset()

func (*MatchmakingTeamConfiguration) String

func (*MatchmakingTeamConfiguration) XXX_DiscardUnknown

func (m *MatchmakingTeamConfiguration) XXX_DiscardUnknown()

func (*MatchmakingTeamConfiguration) XXX_Marshal

func (m *MatchmakingTeamConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingTeamConfiguration) XXX_Merge

func (m *MatchmakingTeamConfiguration) XXX_Merge(src proto.Message)

func (*MatchmakingTeamConfiguration) XXX_Size

func (m *MatchmakingTeamConfiguration) XXX_Size() int

func (*MatchmakingTeamConfiguration) XXX_Unmarshal

func (m *MatchmakingTeamConfiguration) XXX_Unmarshal(b []byte) error

type MatchmakingTicket

type MatchmakingTicket struct {
	//票ID
	TicketId string `protobuf:"bytes,1,opt,name=TicketId,proto3" json:"TicketId,omitempty"`
	//开始时间
	StartTime int64 `protobuf:"varint,2,opt,name=StartTime,proto3" json:"StartTime,omitempty"`
	//单人或组队玩家信息
	Players []*MatchPlayer `protobuf:"bytes,3,rep,name=Players,proto3" json:"Players,omitempty"`
	//状态 参见MatchmakingTicketStatus定义
	Status string `protobuf:"bytes,4,opt,name=Status,proto3" json:"Status,omitempty"`
	//解释当前状态的代码。例如,一个状态原因可能表明,当一张票在提议的比赛未能收到玩家的接受后,返回到搜索状态。
	StatusReason string `protobuf:"bytes,5,opt,name=StatusReason,proto3" json:"StatusReason,omitempty"`
	//有关当前状态的其他信息。
	StatusMessage string `protobuf:"bytes,6,opt,name=StatusMessage,proto3" json:"StatusMessage,omitempty"`
	//完成时间
	EndTime int64 `protobuf:"varint,7,opt,name=EndTime,proto3" json:"EndTime,omitempty"`
	//对战配置的名称
	ConfigurationName string `protobuf:"bytes,8,opt,name=ConfigurationName,proto3" json:"ConfigurationName,omitempty"`
	//预计等待时间(单位秒)
	EstimatedWaitTime int64 `protobuf:"varint,9,opt,name=EstimatedWaitTime,proto3" json:"EstimatedWaitTime,omitempty"`
	//匹配对局唯一ID (辅助字段)
	MatchId string `protobuf:"bytes,10,opt,name=MatchId,proto3" json:"MatchId,omitempty"`
	//接收到取消请求 (延迟取消辅助字段)
	CancelRequest bool `protobuf:"varint,11,opt,name=CancelRequest,proto3" json:"CancelRequest,omitempty"`
	//完成潜在对局匹配的耗时(单位秒)
	PotentialMatchCostSeconds int64 `protobuf:"varint,12,opt,name=PotentialMatchCostSeconds,proto3" json:"PotentialMatchCostSeconds,omitempty"`
	//游戏对局会话连接信息
	GameSessionInfo      *GameSessionConnectionInfo `protobuf:"bytes,13,opt,name=GameSessionInfo,proto3" json:"GameSessionInfo,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
	XXX_unrecognized     []byte                     `json:"-"`
	XXX_sizecache        int32                      `json:"-"`
}

匹配票

func (*MatchmakingTicket) Descriptor

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

func (*MatchmakingTicket) GetCancelRequest

func (m *MatchmakingTicket) GetCancelRequest() bool

func (*MatchmakingTicket) GetConfigurationName

func (m *MatchmakingTicket) GetConfigurationName() string

func (*MatchmakingTicket) GetEndTime

func (m *MatchmakingTicket) GetEndTime() int64

func (*MatchmakingTicket) GetEstimatedWaitTime

func (m *MatchmakingTicket) GetEstimatedWaitTime() int64

func (*MatchmakingTicket) GetGameSessionInfo

func (m *MatchmakingTicket) GetGameSessionInfo() *GameSessionConnectionInfo

func (*MatchmakingTicket) GetMatchId

func (m *MatchmakingTicket) GetMatchId() string

func (*MatchmakingTicket) GetPlayers

func (m *MatchmakingTicket) GetPlayers() []*MatchPlayer

func (*MatchmakingTicket) GetPotentialMatchCostSeconds

func (m *MatchmakingTicket) GetPotentialMatchCostSeconds() int64

func (*MatchmakingTicket) GetStartTime

func (m *MatchmakingTicket) GetStartTime() int64

func (*MatchmakingTicket) GetStatus

func (m *MatchmakingTicket) GetStatus() string

func (*MatchmakingTicket) GetStatusMessage

func (m *MatchmakingTicket) GetStatusMessage() string

func (*MatchmakingTicket) GetStatusReason

func (m *MatchmakingTicket) GetStatusReason() string

func (*MatchmakingTicket) GetTicketId

func (m *MatchmakingTicket) GetTicketId() string

func (*MatchmakingTicket) ProtoMessage

func (*MatchmakingTicket) ProtoMessage()

func (*MatchmakingTicket) Reset

func (m *MatchmakingTicket) Reset()

func (*MatchmakingTicket) String

func (m *MatchmakingTicket) String() string

func (*MatchmakingTicket) XXX_DiscardUnknown

func (m *MatchmakingTicket) XXX_DiscardUnknown()

func (*MatchmakingTicket) XXX_Marshal

func (m *MatchmakingTicket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MatchmakingTicket) XXX_Merge

func (m *MatchmakingTicket) XXX_Merge(src proto.Message)

func (*MatchmakingTicket) XXX_Size

func (m *MatchmakingTicket) XXX_Size() int

func (*MatchmakingTicket) XXX_Unmarshal

func (m *MatchmakingTicket) XXX_Unmarshal(b []byte) error

type MatchmakingTicketStatus

type MatchmakingTicketStatus int32
const (
	// QUEUED-匹配请求已经收到,目前正在等待处理。
	MatchmakingTicketStatus_QUEUED MatchmakingTicketStatus = 0
	// SEARCHING-匹配请求目前正在处理中。
	MatchmakingTicketStatus_SEARCHING MatchmakingTicketStatus = 1
	// REQUIRES_ACCEPTANCE-匹配已被提出,玩家必须接受该匹配(见AcceptMatch)。该状态仅用于使用具有玩家接受要求的匹配配置的请求。
	MatchmakingTicketStatus_REQUIRES_ACCEPTANCE MatchmakingTicketStatus = 2
	// PLACING-FlexMatch引擎已经匹配了玩家,并正在为比赛安排新的游戏环节。
	MatchmakingTicketStatus_PLACING MatchmakingTicketStatus = 3
	// COMPLETED-玩家已被匹配,游戏会话已准备好接待玩家。在这种状态下的票据包含了玩家的必要连接信息。
	MatchmakingTicketStatus_COMPLETED MatchmakingTicketStatus = 4
	// FAILED-匹配请求没有完成
	MatchmakingTicketStatus_FAILED MatchmakingTicketStatus = 5
	// CANCELLED-他的匹配请求被取消了。这可能是调用StopMatchmaking的结果,或者是一个或多个玩家没有接受的拟议比赛。
	MatchmakingTicketStatus_CANCELLED MatchmakingTicketStatus = 6
	// TIMED_OUT-匹配请求在匹配配置中指定的持续时间内没有成功。
	MatchmakingTicketStatus_TIMED_OUT MatchmakingTicketStatus = 7
)

func (MatchmakingTicketStatus) EnumDescriptor

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

func (MatchmakingTicketStatus) String

func (x MatchmakingTicketStatus) String() string

type PlayerAttribute

type PlayerAttribute struct {
	//属性名
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	//数据类型
	Type string `protobuf:"bytes,2,opt,name=Type,proto3" json:"Type,omitempty"`
	//属性值
	Value                string   `protobuf:"bytes,3,opt,name=Value,proto3" json:"Value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*PlayerAttribute) Descriptor

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

func (*PlayerAttribute) GetName

func (m *PlayerAttribute) GetName() string

func (*PlayerAttribute) GetType

func (m *PlayerAttribute) GetType() string

func (*PlayerAttribute) GetValue

func (m *PlayerAttribute) GetValue() string

func (*PlayerAttribute) ProtoMessage

func (*PlayerAttribute) ProtoMessage()

func (*PlayerAttribute) Reset

func (m *PlayerAttribute) Reset()

func (*PlayerAttribute) String

func (m *PlayerAttribute) String() string

func (*PlayerAttribute) XXX_DiscardUnknown

func (m *PlayerAttribute) XXX_DiscardUnknown()

func (*PlayerAttribute) XXX_Marshal

func (m *PlayerAttribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayerAttribute) XXX_Merge

func (m *PlayerAttribute) XXX_Merge(src proto.Message)

func (*PlayerAttribute) XXX_Size

func (m *PlayerAttribute) XXX_Size() int

func (*PlayerAttribute) XXX_Unmarshal

func (m *PlayerAttribute) XXX_Unmarshal(b []byte) error

type PlayerBattleRecordList

type PlayerBattleRecordList struct {
	RecordList           []*PlayerBattleResult `protobuf:"bytes,1,rep,name=RecordList,proto3" json:"RecordList,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*PlayerBattleRecordList) Descriptor

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

func (*PlayerBattleRecordList) GetRecordList

func (m *PlayerBattleRecordList) GetRecordList() []*PlayerBattleResult

func (*PlayerBattleRecordList) ProtoMessage

func (*PlayerBattleRecordList) ProtoMessage()

func (*PlayerBattleRecordList) Reset

func (m *PlayerBattleRecordList) Reset()

func (*PlayerBattleRecordList) String

func (m *PlayerBattleRecordList) String() string

func (*PlayerBattleRecordList) XXX_DiscardUnknown

func (m *PlayerBattleRecordList) XXX_DiscardUnknown()

func (*PlayerBattleRecordList) XXX_Marshal

func (m *PlayerBattleRecordList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayerBattleRecordList) XXX_Merge

func (m *PlayerBattleRecordList) XXX_Merge(src proto.Message)

func (*PlayerBattleRecordList) XXX_Size

func (m *PlayerBattleRecordList) XXX_Size() int

func (*PlayerBattleRecordList) XXX_Unmarshal

func (m *PlayerBattleRecordList) XXX_Unmarshal(b []byte) error

type PlayerBattleResult

type PlayerBattleResult struct {
	UserId               int64    `protobuf:"varint,1,opt,name=UserId,proto3" json:"UserId,omitempty"`
	GainScore            float64  `protobuf:"fixed64,2,opt,name=GainScore,proto3" json:"GainScore,omitempty"`
	GainExpectScore      float64  `protobuf:"fixed64,3,opt,name=GainExpectScore,proto3" json:"GainExpectScore,omitempty"`
	Diff                 float64  `protobuf:"fixed64,4,opt,name=Diff,proto3" json:"Diff,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

玩家对局结果

func (*PlayerBattleResult) Descriptor

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

func (*PlayerBattleResult) GetDiff

func (m *PlayerBattleResult) GetDiff() float64

func (*PlayerBattleResult) GetGainExpectScore

func (m *PlayerBattleResult) GetGainExpectScore() float64

func (*PlayerBattleResult) GetGainScore

func (m *PlayerBattleResult) GetGainScore() float64

func (*PlayerBattleResult) GetUserId

func (m *PlayerBattleResult) GetUserId() int64

func (*PlayerBattleResult) ProtoMessage

func (*PlayerBattleResult) ProtoMessage()

func (*PlayerBattleResult) Reset

func (m *PlayerBattleResult) Reset()

func (*PlayerBattleResult) String

func (m *PlayerBattleResult) String() string

func (*PlayerBattleResult) XXX_DiscardUnknown

func (m *PlayerBattleResult) XXX_DiscardUnknown()

func (*PlayerBattleResult) XXX_Marshal

func (m *PlayerBattleResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PlayerBattleResult) XXX_Merge

func (m *PlayerBattleResult) XXX_Merge(src proto.Message)

func (*PlayerBattleResult) XXX_Size

func (m *PlayerBattleResult) XXX_Size() int

func (*PlayerBattleResult) XXX_Unmarshal

func (m *PlayerBattleResult) XXX_Unmarshal(b []byte) error

type ResultCode

type ResultCode int32
const (
	ResultCode_SUCCESS                             ResultCode = 0
	ResultCode_ErrUnknown                          ResultCode = 1
	ResultCode_Error401                            ResultCode = 401
	ResultCode_Error403                            ResultCode = 403
	ResultCode_Error404                            ResultCode = 404
	ResultCode_Aborted                             ResultCode = 410
	ResultCode_Error500                            ResultCode = 500
	ResultCode_Error503                            ResultCode = 503
	ResultCode_ProtoParseFailure                   ResultCode = 1001
	ResultCode_ParamMust                           ResultCode = 1002
	ResultCode_ObjectNull                          ResultCode = 1003
	ResultCode_AccessBindFailure                   ResultCode = 1004
	ResultCode_DBUnreachable                       ResultCode = 1005
	ResultCode_AppNotExist                         ResultCode = 1006
	ResultCode_ShardServerIdMust                   ResultCode = 1007
	ResultCode_ShardGenUserIdFailure               ResultCode = 1008
	ResultCode_RegisterFailure                     ResultCode = 1009
	ResultCode_BindInfoFailure                     ResultCode = 1010
	ResultCode_HotFixVersionFormatErr              ResultCode = 1011
	ResultCode_ParamInvalid                        ResultCode = 1012
	ResultCode_LoginServiceException               ResultCode = 1013
	ResultCode_PaySignErr                          ResultCode = 1014
	ResultCode_UnSupportPayWay                     ResultCode = 1015
	ResultCode_AppPaySettingErr                    ResultCode = 1016
	ResultCode_InvalidReceipt                      ResultCode = 1017
	ResultCode_ReceiptHasUsed                      ResultCode = 1018
	ResultCode_PayIdGenFailure                     ResultCode = 1019
	ResultCode_AppStoreDisconnected                ResultCode = 1020
	ResultCode_AppStoreReceiptNoTransaction        ResultCode = 1021
	ResultCode_PayMethodNotSupportYield            ResultCode = 1022
	ResultCode_ChannelPayPrivateKeyInvalid         ResultCode = 1023
	ResultCode_CreateSignFailure                   ResultCode = 1024
	ResultCode_NoIMAgent                           ResultCode = 1025
	ResultCode_UserNotExist                        ResultCode = 1026
	ResultCode_GachaNotUnlock                      ResultCode = 1027
	ResultCode_ConfTableErr                        ResultCode = 1028
	ResultCode_GachaUpLimit                        ResultCode = 1029
	ResultCode_FreeNumNotEnough                    ResultCode = 1030
	ResultCode_DBExecFailure                       ResultCode = 1031
	ResultCode_GachaHasUnlock                      ResultCode = 1032
	ResultCode_SignNotUnlock                       ResultCode = 1033
	ResultCode_SignActivityNotStartOrHasEnd        ResultCode = 1034
	ResultCode_SignNotAllowRepair                  ResultCode = 1035
	ResultCode_SignNoNeedRepair                    ResultCode = 1036
	ResultCode_HasSignToday                        ResultCode = 1037
	ResultCode_SignFailure                         ResultCode = 1038
	ResultCode_RandRewardFailure                   ResultCode = 1039
	ResultCode_UserTaskNotExist                    ResultCode = 1040
	ResultCode_UserTaskNotComplete                 ResultCode = 1041
	ResultCode_UserTaskHasGainReward               ResultCode = 1042
	ResultCode_TaskGainRewardFailure               ResultCode = 1043
	ResultCode_XLockFailure                        ResultCode = 1044
	ResultCode_UserStoreNotExist                   ResultCode = 1045
	ResultCode_UserStoreReachRefreshUpLimit        ResultCode = 1046
	ResultCode_UserStoreRefreshFailure             ResultCode = 1047
	ResultCode_UserStoreGoodNotSell                ResultCode = 1048
	ResultCode_NotSupportBuyWay                    ResultCode = 1049
	ResultCode_SystemInterval                      ResultCode = 1050
	ResultCode_CronEntryNotFound                   ResultCode = 1051
	ResultCode_CronAppNotFound                     ResultCode = 1052
	ResultCode_NoAvailableServer                   ResultCode = 1053
	ResultCode_SearchWordEmpty                     ResultCode = 1054
	ResultCode_ReachMaxFriendNumLimit              ResultCode = 1055
	ResultCode_ExistInOtherUnion                   ResultCode = 1056
	ResultCode_UnknownUnionType                    ResultCode = 1057
	ResultCode_UnionMinLevelCannotOutOfSelfLevel   ResultCode = 1058
	ResultCode_UnionNameHasUsed                    ResultCode = 1059
	ResultCode_UnionIDGenFailure                   ResultCode = 1060
	ResultCode_UnionNotFound                       ResultCode = 1061
	ResultCode_UnionHasIn                          ResultCode = 1062
	ResultCode_UnionMinLevelNotReach               ResultCode = 1067
	ResultCode_UnionMemberReachUpLimit             ResultCode = 1068
	ResultCode_UnionHasAppliedPreviously           ResultCode = 1069
	ResultCode_UnionNoApplyRecord                  ResultCode = 1070
	ResultCode_UnionPermissionDeny                 ResultCode = 1071
	ResultCode_UnionNotMember                      ResultCode = 1072
	ResultCode_UnionReachDutyUpLimit               ResultCode = 1073
	ResultCode_MailNotExist                        ResultCode = 1074
	ResultCode_MailNoReward                        ResultCode = 1075
	ResultCode_CdkeyNotExist                       ResultCode = 1076
	ResultCode_CdkeyExpired                        ResultCode = 1077
	ResultCode_CdkeyReachExchangeLimit             ResultCode = 1078
	ResultCode_CdkeyExchangeOnlyOnce               ResultCode = 1079
	ResultCode_CdkeyNotReady                       ResultCode = 1080
	ResultCode_CdkeyHasExchanged                   ResultCode = 1081
	ResultCode_CdkeyRewardNotConfig                ResultCode = 1082
	ResultCode_HasBindPreviously                   ResultCode = 1083
	ResultCode_InviteCodeInvalid                   ResultCode = 1084
	ResultCode_NicknameRepeated                    ResultCode = 1085
	ResultCode_VersionTooLow                       ResultCode = 1086
	ResultCode_PlatformTokenVerifyFail             ResultCode = 1087
	ResultCode_ClientMd5Invalid                    ResultCode = 1088
	ResultCode_CronAppRegisterFailure              ResultCode = 1089
	ResultCode_ApkSignNotMatch                     ResultCode = 1090
	ResultCode_BodySignNotMatch                    ResultCode = 1091
	ResultCode_NumNotEnough                        ResultCode = 1100
	ResultCode_UserNotInApp                        ResultCode = 1101
	ResultCode_AccessTokenInvalid                  ResultCode = 1102
	ResultCode_AccessTokenExpired                  ResultCode = 1103
	ResultCode_SensitiveWord                       ResultCode = 1104
	ResultCode_AppServerNotConfigured              ResultCode = 1105
	ResultCode_AppServerStatusReady                ResultCode = 1106
	ResultCode_AppServerMaintain                   ResultCode = 1107
	ResultCode_AppServerReachMaxPlayerNum          ResultCode = 1108
	ResultCode_MailRewardHasGain                   ResultCode = 1109
	ResultCode_GamePayPrivateKeyNotConfigured      ResultCode = 1110
	ResultCode_GamePayPrivateKeyInvalid            ResultCode = 1111
	ResultCode_SystemMailTplNotExist               ResultCode = 1112
	ResultCode_GiftPackageNotUnlock                ResultCode = 1113
	ResultCode_GiftPackageFreeGainReachMax         ResultCode = 1114
	ResultCode_GiftPackagePurchaseReachMax         ResultCode = 1115
	ResultCode_GiftPackageNotSupportMoneyBuy       ResultCode = 1116
	ResultCode_GiftPackageNotSupportGameCoin       ResultCode = 1117
	ResultCode_NoPurchasePerm                      ResultCode = 1118
	ResultCode_InvalidMonthCard                    ResultCode = 1119
	ResultCode_MonthCardExpired                    ResultCode = 1120
	ResultCode_MonthCardHasGainedToday             ResultCode = 1121
	ResultCode_MonthCardRewardPatchErr             ResultCode = 1122
	ResultCode_SinaPackageChannelNotConfigured     ResultCode = 1123
	ResultCode_AutiAddictionPeriod                 ResultCode = 1124
	ResultCode_OtherReachMaxFriendNumLimit         ResultCode = 1125
	ResultCode_NoReceivableFriendReward            ResultCode = 1126
	ResultCode_OutOfDailyReceivedFriendRewardLimit ResultCode = 1127
	ResultCode_ActivityNotConfigured               ResultCode = 1128
	ResultCode_ActivityNotReady                    ResultCode = 1129
	ResultCode_ActivityHasOver                     ResultCode = 1130
	ResultCode_UnionNameLengthOutOfLimit           ResultCode = 1131
	ResultCode_SamePidInUnion                      ResultCode = 1132
	ResultCode_NoIMWorker                          ResultCode = 1133
	ResultCode_LoginForbidden                      ResultCode = 1134
	ResultCode_ChatForbidden                       ResultCode = 1135
	ResultCode_PayForbidden                        ResultCode = 1136
	ResultCode_HasBeenBlack                        ResultCode = 1137
	ResultCode_BlackOutOfLimit                     ResultCode = 1138
	ResultCode_AppServerIdNotSame                  ResultCode = 1139
	ResultCode_AccountMerging                      ResultCode = 1140
	ResultCode_OutOfMaxRoomNumLimit                ResultCode = 1141
	ResultCode_GroupNotExist                       ResultCode = 1142
	ResultCode_MemberNotInGroup                    ResultCode = 1143
	ResultCode_DistributedLocking                  ResultCode = 1144
	ResultCode_CdkeyCondNotMatch                   ResultCode = 1145
	ResultCode_RequestTooFast                      ResultCode = 1146
	ResultCode_ChatTextRepeated                    ResultCode = 1147
	ResultCode_UserStoreGoodsBuyTimesOutOfLimit    ResultCode = 1148
	ResultCode_UserStoreBuyTimesOutOfLimit         ResultCode = 1149
	ResultCode_AccessHasBindOtherAccount           ResultCode = 1150
	ResultCode_GachaPoolExpired                    ResultCode = 1151
	ResultCode_KSPackageChannelNotConfigured       ResultCode = 1152
	ResultCode_PackageChannelNotConfiugred         ResultCode = 1153
	ResultCode_RsaKeyGenerateFailure               ResultCode = 1154
	ResultCode_GachaNoAvialableDetails             ResultCode = 1155
	ResultCode_RsaChiperDecryptionFailure          ResultCode = 1156
	ResultCode_UserNotVerifyREQ                    ResultCode = 1159
	ResultCode_MsgHeadEmpty                        ResultCode = 1160
	ResultCode_MsgMetaNotRegistered                ResultCode = 1161
	ResultCode_MsgDecodeFailure                    ResultCode = 1162
	ResultCode_KsAppNotConfigured                  ResultCode = 1163
	ResultCode_AccessNotExist                      ResultCode = 1164
	ResultCode_LeitingPackageChannelNotConfigured  ResultCode = 1165
	//对局配置已存在
	ResultCode_MatchmakingConfigurationHasExist ResultCode = 1200
	//对局配置保存失败
	ResultCode_MatchmakingConfigurationSaveFailure ResultCode = 1201
	//对局媒介未设置
	ResultCode_MatchmakingNotSetting ResultCode = 1202
	//匹配无法加入(重复加入或队列已满)
	ResultCode_MatchmakingTicketCannotQueued ResultCode = 1203
	//停止/取消匹配失败
	ResultCode_StopMatchmakingFailed ResultCode = 1204
	//对局状态不处于Ready或Gaming,不允许加入房间
	ResultCode_BattleStateNotReadyOrGaming ResultCode = 1300
	//用户不属于该对局房间
	ResultCode_PlayerNotBelongToBattleRoom ResultCode = 1301
	//指令压入失败
	ResultCode_PushCmdIntoFrameDataFailed ResultCode = 1302
	//创建对局房间失败
	ResultCode_CreateGameRoomFailed ResultCode = 1303
	//对局房间不存在
	ResultCode_BattleRoomNotFound ResultCode = 1304
	//对局快照为空
	ResultCode_BattleSnapshotIsNil ResultCode = 1305
	//实名认证失败
	ResultCode_IdCardBindFailure ResultCode = 1306
	//请输入有效的身份证号码
	ResultCode_IdCardInvalid ResultCode = 1307
	//身份证号和姓名不一致
	ResultCode_IdCardNotMatch ResultCode = 1308
	//暂无信息
	ResultCode_IdCardNoDB ResultCode = 1309
	//月卡添加天数失败
	ResultCode_MonthCardAddDaysFailure ResultCode = 1310
)

func (ResultCode) EnumDescriptor

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

func (ResultCode) String

func (x ResultCode) String() string

type SortDirectionType

type SortDirectionType int32
const (
	//升序
	SortDirectionType_Ascending SortDirectionType = 0
	//降序
	SortDirectionType_Descending SortDirectionType = 1
)

func (SortDirectionType) EnumDescriptor

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

func (SortDirectionType) String

func (x SortDirectionType) String() string

type StartMatchmakingRequest

type StartMatchmakingRequest struct {
	//要用于请求的对战配置的名称
	ConfigurationName string `protobuf:"bytes,1,opt,name=ConfigurationName,proto3" json:"ConfigurationName,omitempty"`
	//票ID
	TicketId string `protobuf:"bytes,2,opt,name=TicketId,proto3" json:"TicketId,omitempty"`
	//单人或组队玩家信息
	Players              []*MatchPlayer `protobuf:"bytes,3,rep,name=Players,proto3" json:"Players,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

创建对战请求

func (*StartMatchmakingRequest) Descriptor

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

func (*StartMatchmakingRequest) GetConfigurationName

func (m *StartMatchmakingRequest) GetConfigurationName() string

func (*StartMatchmakingRequest) GetPlayers

func (m *StartMatchmakingRequest) GetPlayers() []*MatchPlayer

func (*StartMatchmakingRequest) GetTicketId

func (m *StartMatchmakingRequest) GetTicketId() string

func (*StartMatchmakingRequest) ProtoMessage

func (*StartMatchmakingRequest) ProtoMessage()

func (*StartMatchmakingRequest) Reset

func (m *StartMatchmakingRequest) Reset()

func (*StartMatchmakingRequest) String

func (m *StartMatchmakingRequest) String() string

func (*StartMatchmakingRequest) XXX_DiscardUnknown

func (m *StartMatchmakingRequest) XXX_DiscardUnknown()

func (*StartMatchmakingRequest) XXX_Marshal

func (m *StartMatchmakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartMatchmakingRequest) XXX_Merge

func (m *StartMatchmakingRequest) XXX_Merge(src proto.Message)

func (*StartMatchmakingRequest) XXX_Size

func (m *StartMatchmakingRequest) XXX_Size() int

func (*StartMatchmakingRequest) XXX_Unmarshal

func (m *StartMatchmakingRequest) XXX_Unmarshal(b []byte) error

type StartMatchmakingResponse

type StartMatchmakingResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

创建对战响应

func (*StartMatchmakingResponse) Descriptor

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

func (*StartMatchmakingResponse) ProtoMessage

func (*StartMatchmakingResponse) ProtoMessage()

func (*StartMatchmakingResponse) Reset

func (m *StartMatchmakingResponse) Reset()

func (*StartMatchmakingResponse) String

func (m *StartMatchmakingResponse) String() string

func (*StartMatchmakingResponse) XXX_DiscardUnknown

func (m *StartMatchmakingResponse) XXX_DiscardUnknown()

func (*StartMatchmakingResponse) XXX_Marshal

func (m *StartMatchmakingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StartMatchmakingResponse) XXX_Merge

func (m *StartMatchmakingResponse) XXX_Merge(src proto.Message)

func (*StartMatchmakingResponse) XXX_Size

func (m *StartMatchmakingResponse) XXX_Size() int

func (*StartMatchmakingResponse) XXX_Unmarshal

func (m *StartMatchmakingResponse) XXX_Unmarshal(b []byte) error

type StopMatchmakingRequest

type StopMatchmakingRequest struct {
	//票证ID
	TicketId             string   `protobuf:"bytes,1,opt,name=TicketId,proto3" json:"TicketId,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

取消对战请求 不需要对局配置名, 难道是因为TicketId在所有匹配池均唯一,而且需要持久化,或者票据和服务节点的映射关系交于游戏服务器维护 每个匹配rpc服务带有SvcID, 游戏初始为票据分配节点后,后续该票据请求仍请求该节点。匹配服务节点只是需要通过票据ID获取媒介

func (*StopMatchmakingRequest) Descriptor

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

func (*StopMatchmakingRequest) GetTicketId

func (m *StopMatchmakingRequest) GetTicketId() string

func (*StopMatchmakingRequest) ProtoMessage

func (*StopMatchmakingRequest) ProtoMessage()

func (*StopMatchmakingRequest) Reset

func (m *StopMatchmakingRequest) Reset()

func (*StopMatchmakingRequest) String

func (m *StopMatchmakingRequest) String() string

func (*StopMatchmakingRequest) XXX_DiscardUnknown

func (m *StopMatchmakingRequest) XXX_DiscardUnknown()

func (*StopMatchmakingRequest) XXX_Marshal

func (m *StopMatchmakingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopMatchmakingRequest) XXX_Merge

func (m *StopMatchmakingRequest) XXX_Merge(src proto.Message)

func (*StopMatchmakingRequest) XXX_Size

func (m *StopMatchmakingRequest) XXX_Size() int

func (*StopMatchmakingRequest) XXX_Unmarshal

func (m *StopMatchmakingRequest) XXX_Unmarshal(b []byte) error

type StopMatchmakingResponse

type StopMatchmakingResponse struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

取消对战响应

func (*StopMatchmakingResponse) Descriptor

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

func (*StopMatchmakingResponse) ProtoMessage

func (*StopMatchmakingResponse) ProtoMessage()

func (*StopMatchmakingResponse) Reset

func (m *StopMatchmakingResponse) Reset()

func (*StopMatchmakingResponse) String

func (m *StopMatchmakingResponse) String() string

func (*StopMatchmakingResponse) XXX_DiscardUnknown

func (m *StopMatchmakingResponse) XXX_DiscardUnknown()

func (*StopMatchmakingResponse) XXX_Marshal

func (m *StopMatchmakingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StopMatchmakingResponse) XXX_Merge

func (m *StopMatchmakingResponse) XXX_Merge(src proto.Message)

func (*StopMatchmakingResponse) XXX_Size

func (m *StopMatchmakingResponse) XXX_Size() int

func (*StopMatchmakingResponse) XXX_Unmarshal

func (m *StopMatchmakingResponse) XXX_Unmarshal(b []byte) error

type UnimplementedFlexMatchGameServer

type UnimplementedFlexMatchGameServer struct {
}

UnimplementedFlexMatchGameServer can be embedded to have forward compatible implementations.

func (*UnimplementedFlexMatchGameServer) CreateGameSession

type UnimplementedFlexMatchServer

type UnimplementedFlexMatchServer struct {
}

UnimplementedFlexMatchServer can be embedded to have forward compatible implementations.

func (*UnimplementedFlexMatchServer) AcceptMatch

func (*UnimplementedFlexMatchServer) DescribeMatchmaking

func (*UnimplementedFlexMatchServer) StartMatchmaking

func (*UnimplementedFlexMatchServer) StopMatchmaking

Jump to

Keyboard shortcuts

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