Documentation ¶
Index ¶
- Variables
- type Bool
- type DevRegister
- func (*DevRegister) Descriptor() ([]byte, []int)deprecated
- func (x *DevRegister) GetAccountName() string
- func (x *DevRegister) GetIp() string
- func (x *DevRegister) GetPassword() string
- func (*DevRegister) ProtoMessage()
- func (x *DevRegister) ProtoReflect() protoreflect.Message
- func (x *DevRegister) Reset()
- func (x *DevRegister) String() string
- type Double
- type ErrorResponse
- func (*ErrorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ErrorResponse) GetCode() int32
- func (x *ErrorResponse) GetMessage() string
- func (*ErrorResponse) ProtoMessage()
- func (x *ErrorResponse) ProtoReflect() protoreflect.Message
- func (x *ErrorResponse) Reset()
- func (x *ErrorResponse) String() string
- type Int32
- type Int32Int32
- type Int32Int64
- type Int32Int64Map
- type Int32List
- type Int32Map
- type Int64
- type Int64Int32
- type Int64Int64
- type Int64List
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetParams() map[int32]string
- func (x *LoginRequest) GetServerId() int32
- func (x *LoginRequest) GetToken() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetOpenId() string
- func (x *LoginResponse) GetParams() map[int32]string
- func (x *LoginResponse) GetPid() int32
- func (x *LoginResponse) GetUid() int64
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type NodeState
- type None
- type Player
- func (*Player) Descriptor() ([]byte, []int)deprecated
- func (x *Player) GetCreateTime() int64
- func (x *Player) GetExp() int64
- func (x *Player) GetGender() int32
- func (x *Player) GetLevel() int32
- func (x *Player) GetPlayerId() int64
- func (x *Player) GetPlayerName() string
- func (*Player) ProtoMessage()
- func (x *Player) ProtoReflect() protoreflect.Message
- func (x *Player) Reset()
- func (x *Player) String() string
- type PlayerAttribute
- func (PlayerAttribute) Descriptor() protoreflect.EnumDescriptor
- func (x PlayerAttribute) Enum() *PlayerAttribute
- func (PlayerAttribute) EnumDescriptor() ([]byte, []int)deprecated
- func (x PlayerAttribute) Number() protoreflect.EnumNumber
- func (x PlayerAttribute) String() string
- func (PlayerAttribute) Type() protoreflect.EnumType
- type PlayerCreateRequest
- func (*PlayerCreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerCreateRequest) GetGender() int32
- func (x *PlayerCreateRequest) GetPlayerName() string
- func (*PlayerCreateRequest) ProtoMessage()
- func (x *PlayerCreateRequest) ProtoReflect() protoreflect.Message
- func (x *PlayerCreateRequest) Reset()
- func (x *PlayerCreateRequest) String() string
- type PlayerCreateResponse
- func (*PlayerCreateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerCreateResponse) GetPlayer() *Player
- func (*PlayerCreateResponse) ProtoMessage()
- func (x *PlayerCreateResponse) ProtoReflect() protoreflect.Message
- func (x *PlayerCreateResponse) Reset()
- func (x *PlayerCreateResponse) String() string
- type PlayerEnterResponse
- func (*PlayerEnterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerEnterResponse) GetGuideMaps() map[int32]int32
- func (*PlayerEnterResponse) ProtoMessage()
- func (x *PlayerEnterResponse) ProtoReflect() protoreflect.Message
- func (x *PlayerEnterResponse) Reset()
- func (x *PlayerEnterResponse) String() string
- type PlayerSelectResponse
- func (*PlayerSelectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlayerSelectResponse) GetList() []*Player
- func (*PlayerSelectResponse) ProtoMessage()
- func (x *PlayerSelectResponse) ProtoReflect() protoreflect.Message
- func (x *PlayerSelectResponse) Reset()
- func (x *PlayerSelectResponse) String() string
- type String
- type StringKeyValue
- func (*StringKeyValue) Descriptor() ([]byte, []int)deprecated
- func (x *StringKeyValue) GetKey() string
- func (x *StringKeyValue) GetValue() string
- func (*StringKeyValue) ProtoMessage()
- func (x *StringKeyValue) ProtoReflect() protoreflect.Message
- func (x *StringKeyValue) Reset()
- func (x *StringKeyValue) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetIp() string
- func (x *User) GetOpenId() string
- func (x *User) GetPid() int32
- func (x *User) GetSdkId() int32
- func (x *User) GetServerId() int32
- func (x *User) GetUid() int64
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PlayerAttribute_name = map[int32]string{ 0: "AA_AttributeNone", } PlayerAttribute_value = map[string]int32{ "AA_AttributeNone": 0, } )
Enum value maps for PlayerAttribute.
var ( NodeState_name = map[int32]string{ 0: "Open", 1: "Maintain", 2: "Closed", } NodeState_value = map[string]int32{ "Open": 0, "Maintain": 1, "Closed": 2, } )
Enum value maps for NodeState.
var File_base_error_proto protoreflect.FileDescriptor
var File_base_type_proto protoreflect.FileDescriptor
var File_login_proto protoreflect.FileDescriptor
var File_player_proto protoreflect.FileDescriptor
var File_rpc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct { Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Bool) Descriptor
deprecated
func (*Bool) ProtoMessage ¶
func (*Bool) ProtoMessage()
func (*Bool) ProtoReflect ¶
func (x *Bool) ProtoReflect() protoreflect.Message
type DevRegister ¶
type DevRegister struct { AccountName string `protobuf:"bytes,1,opt,name=accountName,proto3" json:"accountName,omitempty"` // 帐号名 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码 Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` // ip地址 // contains filtered or unexported fields }
注册开发帐号
func (*DevRegister) Descriptor
deprecated
func (*DevRegister) Descriptor() ([]byte, []int)
Deprecated: Use DevRegister.ProtoReflect.Descriptor instead.
func (*DevRegister) GetAccountName ¶
func (x *DevRegister) GetAccountName() string
func (*DevRegister) GetIp ¶
func (x *DevRegister) GetIp() string
func (*DevRegister) GetPassword ¶
func (x *DevRegister) GetPassword() string
func (*DevRegister) ProtoMessage ¶
func (*DevRegister) ProtoMessage()
func (*DevRegister) ProtoReflect ¶
func (x *DevRegister) ProtoReflect() protoreflect.Message
func (*DevRegister) Reset ¶
func (x *DevRegister) Reset()
func (*DevRegister) String ¶
func (x *DevRegister) String() string
type Double ¶
type Double struct { Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Double) Descriptor
deprecated
func (*Double) ProtoMessage ¶
func (*Double) ProtoMessage()
func (*Double) ProtoReflect ¶
func (x *Double) ProtoReflect() protoreflect.Message
type ErrorResponse ¶
type ErrorResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // 错误码 Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // 错误内容 // contains filtered or unexported fields }
响应错误 当客户端发送Request类型消息时,如果有异常则返回ErrorResponse 踢下线协议也会用到该结构
func (*ErrorResponse) Descriptor
deprecated
func (*ErrorResponse) Descriptor() ([]byte, []int)
Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.
func (*ErrorResponse) GetCode ¶
func (x *ErrorResponse) GetCode() int32
func (*ErrorResponse) GetMessage ¶
func (x *ErrorResponse) GetMessage() string
func (*ErrorResponse) ProtoMessage ¶
func (*ErrorResponse) ProtoMessage()
func (*ErrorResponse) ProtoReflect ¶
func (x *ErrorResponse) ProtoReflect() protoreflect.Message
func (*ErrorResponse) Reset ¶
func (x *ErrorResponse) Reset()
func (*ErrorResponse) String ¶
func (x *ErrorResponse) String() string
type Int32 ¶
type Int32 struct { Value int32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int32) Descriptor
deprecated
func (*Int32) ProtoMessage ¶
func (*Int32) ProtoMessage()
func (*Int32) ProtoReflect ¶
func (x *Int32) ProtoReflect() protoreflect.Message
type Int32Int32 ¶
type Int32Int32 struct { Key int32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int32Int32) Descriptor
deprecated
func (*Int32Int32) Descriptor() ([]byte, []int)
Deprecated: Use Int32Int32.ProtoReflect.Descriptor instead.
func (*Int32Int32) GetKey ¶
func (x *Int32Int32) GetKey() int32
func (*Int32Int32) GetValue ¶
func (x *Int32Int32) GetValue() int32
func (*Int32Int32) ProtoMessage ¶
func (*Int32Int32) ProtoMessage()
func (*Int32Int32) ProtoReflect ¶
func (x *Int32Int32) ProtoReflect() protoreflect.Message
func (*Int32Int32) Reset ¶
func (x *Int32Int32) Reset()
func (*Int32Int32) String ¶
func (x *Int32Int32) String() string
type Int32Int64 ¶
type Int32Int64 struct { Key int32 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int32Int64) Descriptor
deprecated
func (*Int32Int64) Descriptor() ([]byte, []int)
Deprecated: Use Int32Int64.ProtoReflect.Descriptor instead.
func (*Int32Int64) GetKey ¶
func (x *Int32Int64) GetKey() int32
func (*Int32Int64) GetValue ¶
func (x *Int32Int64) GetValue() int64
func (*Int32Int64) ProtoMessage ¶
func (*Int32Int64) ProtoMessage()
func (*Int32Int64) ProtoReflect ¶
func (x *Int32Int64) ProtoReflect() protoreflect.Message
func (*Int32Int64) Reset ¶
func (x *Int32Int64) Reset()
func (*Int32Int64) String ¶
func (x *Int32Int64) String() string
type Int32Int64Map ¶
type Int32Int64Map struct { Value map[int32]int64 `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Int32Int64Map) Descriptor
deprecated
func (*Int32Int64Map) Descriptor() ([]byte, []int)
Deprecated: Use Int32Int64Map.ProtoReflect.Descriptor instead.
func (*Int32Int64Map) GetValue ¶
func (x *Int32Int64Map) GetValue() map[int32]int64
func (*Int32Int64Map) ProtoMessage ¶
func (*Int32Int64Map) ProtoMessage()
func (*Int32Int64Map) ProtoReflect ¶
func (x *Int32Int64Map) ProtoReflect() protoreflect.Message
func (*Int32Int64Map) Reset ¶
func (x *Int32Int64Map) Reset()
func (*Int32Int64Map) String ¶
func (x *Int32Int64Map) String() string
type Int32List ¶
type Int32List struct { List []int32 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Int32List) Descriptor
deprecated
func (*Int32List) ProtoMessage ¶
func (*Int32List) ProtoMessage()
func (*Int32List) ProtoReflect ¶
func (x *Int32List) ProtoReflect() protoreflect.Message
type Int32Map ¶
type Int32Map struct { Value map[int32]int32 `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Int32Map) Descriptor
deprecated
func (*Int32Map) ProtoMessage ¶
func (*Int32Map) ProtoMessage()
func (*Int32Map) ProtoReflect ¶
func (x *Int32Map) ProtoReflect() protoreflect.Message
type Int64 ¶
type Int64 struct { Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int64) Descriptor
deprecated
func (*Int64) ProtoMessage ¶
func (*Int64) ProtoMessage()
func (*Int64) ProtoReflect ¶
func (x *Int64) ProtoReflect() protoreflect.Message
type Int64Int32 ¶
type Int64Int32 struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int64Int32) Descriptor
deprecated
func (*Int64Int32) Descriptor() ([]byte, []int)
Deprecated: Use Int64Int32.ProtoReflect.Descriptor instead.
func (*Int64Int32) GetKey ¶
func (x *Int64Int32) GetKey() int64
func (*Int64Int32) GetValue ¶
func (x *Int64Int32) GetValue() int32
func (*Int64Int32) ProtoMessage ¶
func (*Int64Int32) ProtoMessage()
func (*Int64Int32) ProtoReflect ¶
func (x *Int64Int32) ProtoReflect() protoreflect.Message
func (*Int64Int32) Reset ¶
func (x *Int64Int32) Reset()
func (*Int64Int32) String ¶
func (x *Int64Int32) String() string
type Int64Int64 ¶
type Int64Int64 struct { Key int64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"` Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Int64Int64) Descriptor
deprecated
func (*Int64Int64) Descriptor() ([]byte, []int)
Deprecated: Use Int64Int64.ProtoReflect.Descriptor instead.
func (*Int64Int64) GetKey ¶
func (x *Int64Int64) GetKey() int64
func (*Int64Int64) GetValue ¶
func (x *Int64Int64) GetValue() int64
func (*Int64Int64) ProtoMessage ¶
func (*Int64Int64) ProtoMessage()
func (*Int64Int64) ProtoReflect ¶
func (x *Int64Int64) ProtoReflect() protoreflect.Message
func (*Int64Int64) Reset ¶
func (x *Int64Int64) Reset()
func (*Int64Int64) String ¶
func (x *Int64Int64) String() string
type Int64List ¶
type Int64List struct { List []int64 `protobuf:"varint,1,rep,packed,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*Int64List) Descriptor
deprecated
func (*Int64List) ProtoMessage ¶
func (*Int64List) ProtoMessage()
func (*Int64List) ProtoReflect ¶
func (x *Int64List) ProtoReflect() protoreflect.Message
type LoginRequest ¶
type LoginRequest struct { ServerId int32 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"` // 当前登陆的服务器id Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` // 登陆token(web login api生成的base64字符串) Params map[int32]string `` // 登陆时上传的参数 key: LoginParams /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
登陆请求(建立连接后的第一条消息,验证通过后则进行后续流程)
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetParams ¶
func (x *LoginRequest) GetParams() map[int32]string
func (*LoginRequest) GetServerId ¶
func (x *LoginRequest) GetServerId() int32
func (*LoginRequest) GetToken ¶
func (x *LoginRequest) GetToken() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // 游戏内的用户唯一id Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // 平台id OpenId string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId,omitempty"` // 平台openId(平台的帐号唯一id) Params map[int32]string `` // 登陆后的扩展参数,按需增加 /* 154-byte string literal not displayed */ // contains filtered or unexported fields }
登陆响应
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetOpenId ¶
func (x *LoginResponse) GetOpenId() string
func (*LoginResponse) GetParams ¶
func (x *LoginResponse) GetParams() map[int32]string
func (*LoginResponse) GetPid ¶
func (x *LoginResponse) GetPid() int32
func (*LoginResponse) GetUid ¶
func (x *LoginResponse) GetUid() int64
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type NodeState ¶
type NodeState int32
节点状态
func (NodeState) Descriptor ¶
func (NodeState) Descriptor() protoreflect.EnumDescriptor
func (NodeState) EnumDescriptor
deprecated
func (NodeState) Number ¶
func (x NodeState) Number() protoreflect.EnumNumber
func (NodeState) Type ¶
func (NodeState) Type() protoreflect.EnumType
type None ¶
type None struct {
// contains filtered or unexported fields
}
func (*None) Descriptor
deprecated
func (*None) ProtoMessage ¶
func (*None) ProtoMessage()
func (*None) ProtoReflect ¶
func (x *None) ProtoReflect() protoreflect.Message
type Player ¶
type Player struct { PlayerId int64 `protobuf:"varint,1,opt,name=playerId,proto3" json:"playerId,omitempty"` // 玩家ID PlayerName string `protobuf:"bytes,2,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家昵称 Gender int32 `protobuf:"varint,3,opt,name=gender,proto3" json:"gender,omitempty"` // 角色性别 Level int32 `protobuf:"varint,4,opt,name=level,proto3" json:"level,omitempty"` // 角色等级 CreateTime int64 `protobuf:"varint,5,opt,name=createTime,proto3" json:"createTime,omitempty"` // 创建时间 Exp int64 `protobuf:"varint,6,opt,name=exp,proto3" json:"exp,omitempty"` // 经验值 // contains filtered or unexported fields }
玩家基本信息
func (*Player) Descriptor
deprecated
func (*Player) GetCreateTime ¶
func (*Player) GetPlayerId ¶
func (*Player) GetPlayerName ¶
func (*Player) ProtoMessage ¶
func (*Player) ProtoMessage()
func (*Player) ProtoReflect ¶
func (x *Player) ProtoReflect() protoreflect.Message
type PlayerAttribute ¶
type PlayerAttribute int32
玩家属性变化
const (
PlayerAttribute_AA_AttributeNone PlayerAttribute = 0 // 未使用
)
func (PlayerAttribute) Descriptor ¶
func (PlayerAttribute) Descriptor() protoreflect.EnumDescriptor
func (PlayerAttribute) Enum ¶
func (x PlayerAttribute) Enum() *PlayerAttribute
func (PlayerAttribute) EnumDescriptor
deprecated
func (PlayerAttribute) EnumDescriptor() ([]byte, []int)
Deprecated: Use PlayerAttribute.Descriptor instead.
func (PlayerAttribute) Number ¶
func (x PlayerAttribute) Number() protoreflect.EnumNumber
func (PlayerAttribute) String ¶
func (x PlayerAttribute) String() string
func (PlayerAttribute) Type ¶
func (PlayerAttribute) Type() protoreflect.EnumType
type PlayerCreateRequest ¶
type PlayerCreateRequest struct { PlayerName string `protobuf:"bytes,1,opt,name=playerName,proto3" json:"playerName,omitempty"` // 玩家昵称 Gender int32 `protobuf:"varint,2,opt,name=gender,proto3" json:"gender,omitempty"` // 性别(0女,1男) // contains filtered or unexported fields }
请求创建角色
func (*PlayerCreateRequest) Descriptor
deprecated
func (*PlayerCreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use PlayerCreateRequest.ProtoReflect.Descriptor instead.
func (*PlayerCreateRequest) GetGender ¶
func (x *PlayerCreateRequest) GetGender() int32
func (*PlayerCreateRequest) GetPlayerName ¶
func (x *PlayerCreateRequest) GetPlayerName() string
func (*PlayerCreateRequest) ProtoMessage ¶
func (*PlayerCreateRequest) ProtoMessage()
func (*PlayerCreateRequest) ProtoReflect ¶
func (x *PlayerCreateRequest) ProtoReflect() protoreflect.Message
func (*PlayerCreateRequest) Reset ¶
func (x *PlayerCreateRequest) Reset()
func (*PlayerCreateRequest) String ¶
func (x *PlayerCreateRequest) String() string
type PlayerCreateResponse ¶
type PlayerCreateResponse struct { Player *Player `protobuf:"bytes,1,opt,name=player,proto3" json:"player,omitempty"` // 玩家信息 // contains filtered or unexported fields }
创建角色回应
func (*PlayerCreateResponse) Descriptor
deprecated
func (*PlayerCreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlayerCreateResponse.ProtoReflect.Descriptor instead.
func (*PlayerCreateResponse) GetPlayer ¶
func (x *PlayerCreateResponse) GetPlayer() *Player
func (*PlayerCreateResponse) ProtoMessage ¶
func (*PlayerCreateResponse) ProtoMessage()
func (*PlayerCreateResponse) ProtoReflect ¶
func (x *PlayerCreateResponse) ProtoReflect() protoreflect.Message
func (*PlayerCreateResponse) Reset ¶
func (x *PlayerCreateResponse) Reset()
func (*PlayerCreateResponse) String ¶
func (x *PlayerCreateResponse) String() string
type PlayerEnterResponse ¶
type PlayerEnterResponse struct { GuideMaps map[int32]int32 `` // 新手引导记录列表 /* 161-byte string literal not displayed */ // contains filtered or unexported fields }
进入游戏响应
func (*PlayerEnterResponse) Descriptor
deprecated
func (*PlayerEnterResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlayerEnterResponse.ProtoReflect.Descriptor instead.
func (*PlayerEnterResponse) GetGuideMaps ¶
func (x *PlayerEnterResponse) GetGuideMaps() map[int32]int32
func (*PlayerEnterResponse) ProtoMessage ¶
func (*PlayerEnterResponse) ProtoMessage()
func (*PlayerEnterResponse) ProtoReflect ¶
func (x *PlayerEnterResponse) ProtoReflect() protoreflect.Message
func (*PlayerEnterResponse) Reset ¶
func (x *PlayerEnterResponse) Reset()
func (*PlayerEnterResponse) String ¶
func (x *PlayerEnterResponse) String() string
type PlayerSelectResponse ¶
type PlayerSelectResponse struct { List []*Player `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // 玩家列表 // contains filtered or unexported fields }
查询角色响应
func (*PlayerSelectResponse) Descriptor
deprecated
func (*PlayerSelectResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlayerSelectResponse.ProtoReflect.Descriptor instead.
func (*PlayerSelectResponse) GetList ¶
func (x *PlayerSelectResponse) GetList() []*Player
func (*PlayerSelectResponse) ProtoMessage ¶
func (*PlayerSelectResponse) ProtoMessage()
func (*PlayerSelectResponse) ProtoReflect ¶
func (x *PlayerSelectResponse) ProtoReflect() protoreflect.Message
func (*PlayerSelectResponse) Reset ¶
func (x *PlayerSelectResponse) Reset()
func (*PlayerSelectResponse) String ¶
func (x *PlayerSelectResponse) String() string
type String ¶
type String struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*String) Descriptor
deprecated
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶
func (x *String) ProtoReflect() protoreflect.Message
type StringKeyValue ¶
type StringKeyValue struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*StringKeyValue) Descriptor
deprecated
func (*StringKeyValue) Descriptor() ([]byte, []int)
Deprecated: Use StringKeyValue.ProtoReflect.Descriptor instead.
func (*StringKeyValue) GetKey ¶
func (x *StringKeyValue) GetKey() string
func (*StringKeyValue) GetValue ¶
func (x *StringKeyValue) GetValue() string
func (*StringKeyValue) ProtoMessage ¶
func (*StringKeyValue) ProtoMessage()
func (*StringKeyValue) ProtoReflect ¶
func (x *StringKeyValue) ProtoReflect() protoreflect.Message
func (*StringKeyValue) Reset ¶
func (x *StringKeyValue) Reset()
func (*StringKeyValue) String ¶
func (x *StringKeyValue) String() string
type User ¶
type User struct { SdkId int32 `protobuf:"varint,1,opt,name=sdkId,proto3" json:"sdkId,omitempty"` // sdk id Pid int32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` // 包id OpenId string `protobuf:"bytes,3,opt,name=openId,proto3" json:"openId,omitempty"` // sdk的openid ServerId int32 `protobuf:"varint,4,opt,name=serverId,proto3" json:"serverId,omitempty"` // 所在游戏服id Uid int64 `protobuf:"varint,5,opt,name=uid,proto3" json:"uid,omitempty"` // 用户id Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` // 请求ip // contains filtered or unexported fields }
用户信息
func (*User) Descriptor
deprecated
func (*User) GetServerId ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message