msg

package
Version: v0.0.0-...-de75733 Latest Latest
Warning

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

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

Documentation

Overview

Package msg is a generated protocol buffer package.

It is generated from these files:

message.proto

It has these top-level messages:

Input
Interaction
EntityState
GameFrame
Animation
Transform
SessionCache
Vector3
Quaternion
Position
Error
TimeStamp
ID
MessageToUser
LogMessage
FriendRequest
SearchKeyWord
SearchResult
UserList
GameCreation
PemKey
Empty
RoomPrepareView
EntityInfo
Skill
HomeView
RoomSetting
RoomList
RoomInfo
RoomReview
RoomContent
PlayerInfo
Character
SessionInfo
Success
AttrSetting
SessionKey
ServerInfo
LoginInput
RegistInput
UserInfo
UserState
CharacterSetting
Color
Equipment
Ability

Index

Constants

This section is empty.

Variables

View Source
var LogMessage_Level_name = map[int32]string{
	0: "Debug",
	1: "Info",
	2: "Warn",
	3: "Fatal",
}
View Source
var LogMessage_Level_value = map[string]int32{
	"Debug": 0,
	"Info":  1,
	"Warn":  2,
	"Fatal": 3,
}
View Source
var MessageToUser_Type_name = map[int32]string{
	0: "ToView",
	2: "ToDebugLog",
}
View Source
var MessageToUser_Type_value = map[string]int32{
	"ToView":     0,
	"ToDebugLog": 2,
}
View Source
var RoomInfo_RoomStatus_name = map[int32]string{
	0: "Preparing",
	1: "OnPlaying",
	2: "Ending",
}
View Source
var RoomInfo_RoomStatus_value = map[string]int32{
	"Preparing": 0,
	"OnPlaying": 1,
	"Ending":    2,
}
View Source
var ServerInfo_Type_name = map[int32]string{
	0: "GameServer",
	1: "AgentServer",
}
View Source
var ServerInfo_Type_value = map[string]int32{
	"GameServer":  0,
	"AgentServer": 1,
}
View Source
var SessionInfo_SessionCapacity_name = map[int32]string{
	0: "GM",
	1: "RoomMaster",
	2: "RoomClient",
	3: "None",
}
View Source
var SessionInfo_SessionCapacity_value = map[string]int32{
	"GM":         0,
	"RoomMaster": 1,
	"RoomClient": 2,
	"None":       3,
}
View Source
var SessionInfo_SessionState_name = map[int32]string{
	0: "NoSession",
	1: "Guest",
	2: "UserIdle",
	3: "UserInRoom",
	4: "ConnectingGame",
	5: "AgentServerWaitReconnect",
	6: "OnStart",
	7: "Playing",
	8: "GameOver",
	9: "GameServerWaitReconnect",
}
View Source
var SessionInfo_SessionState_value = map[string]int32{
	"NoSession":                0,
	"Guest":                    1,
	"UserIdle":                 2,
	"UserInRoom":               3,
	"ConnectingGame":           4,
	"AgentServerWaitReconnect": 5,
	"OnStart":                  6,
	"Playing":                  7,
	"GameOver":                 8,
	"GameServerWaitReconnect":  9,
}
View Source
var UserState_UserStatus_name = map[int32]string{
	0: "OnCreating",
	1: "Login",
	2: "Offline",
	3: "OnPlaying",
}
View Source
var UserState_UserStatus_value = map[string]int32{
	"OnCreating": 0,
	"Login":      1,
	"Offline":    2,
	"OnPlaying":  3,
}

Functions

func RegisterAgentToGameServer

func RegisterAgentToGameServer(s *grpc.Server, srv AgentToGameServer)

func RegisterClientToAgentServer

func RegisterClientToAgentServer(s *grpc.Server, srv ClientToAgentServer)

func RegisterClientToGameServer

func RegisterClientToGameServer(s *grpc.Server, srv ClientToGameServer)

Types

type Ability

type Ability struct {
	ATK  int32   `protobuf:"varint,1,opt,name=ATK,json=aTK" json:"ATK,omitempty"`
	DEF  int32   `protobuf:"varint,2,opt,name=DEF,json=dEF" json:"DEF,omitempty"`
	SPD  float32 `protobuf:"fixed32,3,opt,name=SPD,json=sPD" json:"SPD,omitempty"`
	TSPD float32 `protobuf:"fixed32,6,opt,name=TSPD,json=tSPD" json:"TSPD,omitempty"`
	MP   int32   `protobuf:"varint,4,opt,name=MP,json=mP" json:"MP,omitempty"`
	MAKT int32   `protobuf:"varint,5,opt,name=MAKT,json=mAKT" json:"MAKT,omitempty"`
}

func (*Ability) Descriptor

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

func (*Ability) GetATK

func (m *Ability) GetATK() int32

func (*Ability) GetDEF

func (m *Ability) GetDEF() int32

func (*Ability) GetMAKT

func (m *Ability) GetMAKT() int32

func (*Ability) GetMP

func (m *Ability) GetMP() int32

func (*Ability) GetSPD

func (m *Ability) GetSPD() float32

func (*Ability) GetTSPD

func (m *Ability) GetTSPD() float32

func (*Ability) ProtoMessage

func (*Ability) ProtoMessage()

func (*Ability) Reset

func (m *Ability) Reset()

func (*Ability) String

func (m *Ability) String() string

type AgentToGameClient

type AgentToGameClient interface {
	// SessionManager
	AquireGameRoom(ctx context.Context, in *GameCreation, opts ...grpc.CallOption) (*PemKey, error)
	DeletGameRoom(ctx context.Context, in *RoomInfo, opts ...grpc.CallOption) (*Success, error)
}

func NewAgentToGameClient

func NewAgentToGameClient(cc *grpc.ClientConn) AgentToGameClient

type AgentToGameServer

type AgentToGameServer interface {
	// SessionManager
	AquireGameRoom(context.Context, *GameCreation) (*PemKey, error)
	DeletGameRoom(context.Context, *RoomInfo) (*Success, error)
}

type Animation

type Animation struct {
	Name  string  `protobuf:"bytes,1,opt,name=Name,json=name" json:"Name,omitempty"`
	Value float32 `protobuf:"fixed32,2,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*Animation) Descriptor

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

func (*Animation) GetName

func (m *Animation) GetName() string

func (*Animation) GetValue

func (m *Animation) GetValue() float32

func (*Animation) ProtoMessage

func (*Animation) ProtoMessage()

func (*Animation) Reset

func (m *Animation) Reset()

func (*Animation) String

func (m *Animation) String() string

type AttrSetting

type AttrSetting struct {
	Method string `protobuf:"bytes,1,opt,name=Method,json=method" json:"Method,omitempty"`
	Key    string `protobuf:"bytes,2,opt,name=Key,json=key" json:"Key,omitempty"`
	Value  string `protobuf:"bytes,3,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*AttrSetting) Descriptor

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

func (*AttrSetting) GetKey

func (m *AttrSetting) GetKey() string

func (*AttrSetting) GetMethod

func (m *AttrSetting) GetMethod() string

func (*AttrSetting) GetValue

func (m *AttrSetting) GetValue() string

func (*AttrSetting) ProtoMessage

func (*AttrSetting) ProtoMessage()

func (*AttrSetting) Reset

func (m *AttrSetting) Reset()

func (*AttrSetting) String

func (m *AttrSetting) String() string

type Character

type Character struct {
	Uuid          int64   `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	CharacterType string  `protobuf:"bytes,2,opt,name=CharacterType,json=characterType" json:"CharacterType,omitempty"`
	Name          string  `protobuf:"bytes,3,opt,name=Name,json=name" json:"Name,omitempty"`
	Color         *Color  `protobuf:"bytes,4,opt,name=Color,json=color" json:"Color,omitempty"`
	Level         int32   `protobuf:"varint,5,opt,name=Level,json=level" json:"Level,omitempty"`
	Exp           int32   `protobuf:"varint,6,opt,name=Exp,json=exp" json:"Exp,omitempty"`
	MaxHealth     float32 `protobuf:"fixed32,10,opt,name=MaxHealth,json=maxHealth" json:"MaxHealth,omitempty"`
	// 基本能力值
	Ability    *Ability     `protobuf:"bytes,7,opt,name=Ability,json=ability" json:"Ability,omitempty"`
	Equipments []*Equipment `protobuf:"bytes,8,rep,name=Equipments,json=equipments" json:"Equipments,omitempty"`
	// 戰鬥時添加的狀態
	Attr map[string]float32 `` /* 140-byte string literal not displayed */
}

character 即是沒有實體之腳色 entity 則藉由character來初始化

func (*Character) Descriptor

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

func (*Character) GetAbility

func (m *Character) GetAbility() *Ability

func (*Character) GetAttr

func (m *Character) GetAttr() map[string]float32

func (*Character) GetCharacterType

func (m *Character) GetCharacterType() string

func (*Character) GetColor

func (m *Character) GetColor() *Color

func (*Character) GetEquipments

func (m *Character) GetEquipments() []*Equipment

func (*Character) GetExp

func (m *Character) GetExp() int32

func (*Character) GetLevel

func (m *Character) GetLevel() int32

func (*Character) GetMaxHealth

func (m *Character) GetMaxHealth() float32

func (*Character) GetName

func (m *Character) GetName() string

func (*Character) GetUuid

func (m *Character) GetUuid() int64

func (*Character) ProtoMessage

func (*Character) ProtoMessage()

func (*Character) Reset

func (m *Character) Reset()

func (*Character) String

func (m *Character) String() string

type CharacterSetting

type CharacterSetting struct {
	Uuid       int64        `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Color      *Color       `protobuf:"bytes,2,opt,name=Color,json=color" json:"Color,omitempty"`
	Equipments []*Equipment `protobuf:"bytes,8,rep,name=Equipments,json=equipments" json:"Equipments,omitempty"`
}

func (*CharacterSetting) Descriptor

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

func (*CharacterSetting) GetColor

func (m *CharacterSetting) GetColor() *Color

func (*CharacterSetting) GetEquipments

func (m *CharacterSetting) GetEquipments() []*Equipment

func (*CharacterSetting) GetUuid

func (m *CharacterSetting) GetUuid() int64

func (*CharacterSetting) ProtoMessage

func (*CharacterSetting) ProtoMessage()

func (*CharacterSetting) Reset

func (m *CharacterSetting) Reset()

func (*CharacterSetting) String

func (m *CharacterSetting) String() string

type ClientToAgentClient

type ClientToAgentClient interface {
	AquireSessionKey(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SessionKey, error)
	AquireOtherAgent(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerInfo, error)
	GetSessionCache(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SessionCache, error)
	// Login
	Login(ctx context.Context, in *LoginInput, opts ...grpc.CallOption) (*UserInfo, error)
	CreateAccount(ctx context.Context, in *RegistInput, opts ...grpc.CallOption) (*Error, error)
	// UserSetting
	SetAccount(ctx context.Context, in *AttrSetting, opts ...grpc.CallOption) (*Success, error)
	SetCharacter(ctx context.Context, in *CharacterSetting, opts ...grpc.CallOption) (*Success, error)
	// room
	AquireGameServer(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ServerInfo, error)
	CreateRoom(ctx context.Context, in *RoomSetting, opts ...grpc.CallOption) (*Success, error)
	JoinRoom(ctx context.Context, in *ID, opts ...grpc.CallOption) (*Success, error)
	RoomReady(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Success, error)
	// View
	UpdateRoomContent(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ClientToAgent_UpdateRoomContentClient, error)
	UpdateHome(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ClientToAgent_UpdateHomeClient, error)
	UpdateRoomList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ClientToAgent_UpdateRoomListClient, error)
	UpdateUserList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ClientToAgent_UpdateUserListClient, error)
	// rpc UpdateRoomInfo(SessionKey) returns (stream RoomInfoView) {}
	Pipe(ctx context.Context, opts ...grpc.CallOption) (ClientToAgent_PipeClient, error)
}

func NewClientToAgentClient

func NewClientToAgentClient(cc *grpc.ClientConn) ClientToAgentClient

type ClientToAgentServer

type ClientToAgentServer interface {
	AquireSessionKey(context.Context, *Empty) (*SessionKey, error)
	AquireOtherAgent(context.Context, *Empty) (*ServerInfo, error)
	GetSessionCache(context.Context, *Empty) (*SessionCache, error)
	// Login
	Login(context.Context, *LoginInput) (*UserInfo, error)
	CreateAccount(context.Context, *RegistInput) (*Error, error)
	// UserSetting
	SetAccount(context.Context, *AttrSetting) (*Success, error)
	SetCharacter(context.Context, *CharacterSetting) (*Success, error)
	// room
	AquireGameServer(context.Context, *Empty) (*ServerInfo, error)
	CreateRoom(context.Context, *RoomSetting) (*Success, error)
	JoinRoom(context.Context, *ID) (*Success, error)
	RoomReady(context.Context, *Empty) (*Success, error)
	// View
	UpdateRoomContent(*Empty, ClientToAgent_UpdateRoomContentServer) error
	UpdateHome(*Empty, ClientToAgent_UpdateHomeServer) error
	UpdateRoomList(*Empty, ClientToAgent_UpdateRoomListServer) error
	UpdateUserList(*Empty, ClientToAgent_UpdateUserListServer) error
	// rpc UpdateRoomInfo(SessionKey) returns (stream RoomInfoView) {}
	Pipe(ClientToAgent_PipeServer) error
}

type ClientToAgent_PipeClient

type ClientToAgent_PipeClient interface {
	Send(*LogMessage) error
	Recv() (*MessageToUser, error)
	grpc.ClientStream
}

type ClientToAgent_PipeServer

type ClientToAgent_PipeServer interface {
	Send(*MessageToUser) error
	Recv() (*LogMessage, error)
	grpc.ServerStream
}

type ClientToAgent_UpdateHomeClient

type ClientToAgent_UpdateHomeClient interface {
	Recv() (*HomeView, error)
	grpc.ClientStream
}

type ClientToAgent_UpdateHomeServer

type ClientToAgent_UpdateHomeServer interface {
	Send(*HomeView) error
	grpc.ServerStream
}

type ClientToAgent_UpdateRoomContentClient

type ClientToAgent_UpdateRoomContentClient interface {
	Recv() (*RoomContent, error)
	grpc.ClientStream
}

type ClientToAgent_UpdateRoomContentServer

type ClientToAgent_UpdateRoomContentServer interface {
	Send(*RoomContent) error
	grpc.ServerStream
}

type ClientToAgent_UpdateRoomListClient

type ClientToAgent_UpdateRoomListClient interface {
	Recv() (*RoomList, error)
	grpc.ClientStream
}

type ClientToAgent_UpdateRoomListServer

type ClientToAgent_UpdateRoomListServer interface {
	Send(*RoomList) error
	grpc.ServerStream
}

type ClientToAgent_UpdateUserListClient

type ClientToAgent_UpdateUserListClient interface {
	Recv() (*UserList, error)
	grpc.ClientStream
}

type ClientToAgent_UpdateUserListServer

type ClientToAgent_UpdateUserListServer interface {
	Send(*UserList) error
	grpc.ServerStream
}

type ClientToGameClient

type ClientToGameClient interface {
	// roomManager
	// entityManager
	PlayerInput(ctx context.Context, opts ...grpc.CallOption) (ClientToGame_PlayerInputClient, error)
	// View
	UpdateGameFrame(ctx context.Context, in *Empty, opts ...grpc.CallOption) (ClientToGame_UpdateGameFrameClient, error)
	Pipe(ctx context.Context, opts ...grpc.CallOption) (ClientToGame_PipeClient, error)
	TimeCalibrate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*TimeStamp, error)
}

func NewClientToGameClient

func NewClientToGameClient(cc *grpc.ClientConn) ClientToGameClient

type ClientToGameServer

type ClientToGameServer interface {
	// roomManager
	// entityManager
	PlayerInput(ClientToGame_PlayerInputServer) error
	// View
	UpdateGameFrame(*Empty, ClientToGame_UpdateGameFrameServer) error
	Pipe(ClientToGame_PipeServer) error
	TimeCalibrate(context.Context, *Empty) (*TimeStamp, error)
}

type ClientToGame_PipeClient

type ClientToGame_PipeClient interface {
	Send(*LogMessage) error
	Recv() (*MessageToUser, error)
	grpc.ClientStream
}

type ClientToGame_PipeServer

type ClientToGame_PipeServer interface {
	Send(*MessageToUser) error
	Recv() (*LogMessage, error)
	grpc.ServerStream
}

type ClientToGame_PlayerInputClient

type ClientToGame_PlayerInputClient interface {
	Send(*Input) error
	CloseAndRecv() (*Empty, error)
	grpc.ClientStream
}

type ClientToGame_PlayerInputServer

type ClientToGame_PlayerInputServer interface {
	SendAndClose(*Empty) error
	Recv() (*Input, error)
	grpc.ServerStream
}

type ClientToGame_UpdateGameFrameClient

type ClientToGame_UpdateGameFrameClient interface {
	Recv() (*GameFrame, error)
	grpc.ClientStream
}

type ClientToGame_UpdateGameFrameServer

type ClientToGame_UpdateGameFrameServer interface {
	Send(*GameFrame) error
	grpc.ServerStream
}

type Color

type Color struct {
	R int32 `protobuf:"varint,1,opt,name=R,json=r" json:"R,omitempty"`
	G int32 `protobuf:"varint,2,opt,name=G,json=g" json:"G,omitempty"`
	B int32 `protobuf:"varint,3,opt,name=B,json=b" json:"B,omitempty"`
}

func (*Color) Descriptor

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

func (*Color) GetB

func (m *Color) GetB() int32

func (*Color) GetG

func (m *Color) GetG() int32

func (*Color) GetR

func (m *Color) GetR() int32

func (*Color) ProtoMessage

func (*Color) ProtoMessage()

func (*Color) Reset

func (m *Color) Reset()

func (*Color) String

func (m *Color) String() string

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type EntityInfo

type EntityInfo struct {
	Uuid        int64      `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	TeamNo      int32      `protobuf:"varint,4,opt,name=TeamNo,json=teamNo" json:"TeamNo,omitempty"`
	Transform   *Transform `protobuf:"bytes,2,opt,name=Transform,json=transform" json:"Transform,omitempty"`
	CharacterId int64      `protobuf:"varint,3,opt,name=CharacterId,json=characterId" json:"CharacterId,omitempty"`
	ActiveSkill *Skill     `protobuf:"bytes,5,opt,name=ActiveSkill,json=activeSkill" json:"ActiveSkill,omitempty"`
	Motion      string     `protobuf:"bytes,6,opt,name=Motion,json=motion" json:"Motion,omitempty"`
}

func (*EntityInfo) Descriptor

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

func (*EntityInfo) GetActiveSkill

func (m *EntityInfo) GetActiveSkill() *Skill

func (*EntityInfo) GetCharacterId

func (m *EntityInfo) GetCharacterId() int64

func (*EntityInfo) GetMotion

func (m *EntityInfo) GetMotion() string

func (*EntityInfo) GetTeamNo

func (m *EntityInfo) GetTeamNo() int32

func (*EntityInfo) GetTransform

func (m *EntityInfo) GetTransform() *Transform

func (*EntityInfo) GetUuid

func (m *EntityInfo) GetUuid() int64

func (*EntityInfo) ProtoMessage

func (*EntityInfo) ProtoMessage()

func (*EntityInfo) Reset

func (m *EntityInfo) Reset()

func (*EntityInfo) String

func (m *EntityInfo) String() string

type EntityState

type EntityState struct {
	Uuid       int64      `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Transform  *Transform `protobuf:"bytes,2,opt,name=Transform,json=transform" json:"Transform,omitempty"`
	Speed      *Vector3   `protobuf:"bytes,3,opt,name=Speed,json=speed" json:"Speed,omitempty"`
	Animation  *Animation `protobuf:"bytes,8,opt,name=Animation,json=animation" json:"Animation,omitempty"`
	PrefabName string     `protobuf:"bytes,5,opt,name=PrefabName,json=prefabName" json:"PrefabName,omitempty"`
	Health     float32    `protobuf:"fixed32,6,opt,name=Health,json=health" json:"Health,omitempty"`
}

func (*EntityState) Descriptor

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

func (*EntityState) GetAnimation

func (m *EntityState) GetAnimation() *Animation

func (*EntityState) GetHealth

func (m *EntityState) GetHealth() float32

func (*EntityState) GetPrefabName

func (m *EntityState) GetPrefabName() string

func (*EntityState) GetSpeed

func (m *EntityState) GetSpeed() *Vector3

func (*EntityState) GetTransform

func (m *EntityState) GetTransform() *Transform

func (*EntityState) GetUuid

func (m *EntityState) GetUuid() int64

func (*EntityState) ProtoMessage

func (*EntityState) ProtoMessage()

func (*EntityState) Reset

func (m *EntityState) Reset()

func (*EntityState) String

func (m *EntityState) String() string

type Equipment

type Equipment struct {
	Name      string   `protobuf:"bytes,1,opt,name=Name,json=name" json:"Name,omitempty"`
	Type      string   `protobuf:"bytes,2,opt,name=Type,json=type" json:"Type,omitempty"`
	Uuid      int64    `protobuf:"varint,3,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Colors    []*Color `protobuf:"bytes,4,rep,name=Colors,json=colors" json:"Colors,omitempty"`
	Ability   *Ability `protobuf:"bytes,5,opt,name=Ability,json=ability" json:"Ability,omitempty"`
	CD        int32    `protobuf:"varint,6,opt,name=CD,json=cD" json:"CD,omitempty"`
	Usable    int32    `protobuf:"varint,7,opt,name=Usable,json=usable" json:"Usable,omitempty"`
	Inventory int32    `protobuf:"varint,8,opt,name=Inventory,json=inventory" json:"Inventory,omitempty"`
}

func (*Equipment) Descriptor

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

func (*Equipment) GetAbility

func (m *Equipment) GetAbility() *Ability

func (*Equipment) GetCD

func (m *Equipment) GetCD() int32

func (*Equipment) GetColors

func (m *Equipment) GetColors() []*Color

func (*Equipment) GetInventory

func (m *Equipment) GetInventory() int32

func (*Equipment) GetName

func (m *Equipment) GetName() string

func (*Equipment) GetType

func (m *Equipment) GetType() string

func (*Equipment) GetUsable

func (m *Equipment) GetUsable() int32

func (*Equipment) GetUuid

func (m *Equipment) GetUuid() int64

func (*Equipment) ProtoMessage

func (*Equipment) ProtoMessage()

func (*Equipment) Reset

func (m *Equipment) Reset()

func (*Equipment) String

func (m *Equipment) String() string

type Error

type Error struct {
	ErrType  string `protobuf:"bytes,1,opt,name=ErrType,json=errType" json:"ErrType,omitempty"`
	ErrMsg   string `protobuf:"bytes,2,opt,name=ErrMsg,json=errMsg" json:"ErrMsg,omitempty"`
	RunnigNo string `protobuf:"bytes,3,opt,name=RunnigNo,json=runnigNo" json:"RunnigNo,omitempty"`
	FromId   int64  `protobuf:"varint,4,opt,name=FromId,json=fromId" json:"FromId,omitempty"`
}

func (*Error) Descriptor

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

func (*Error) GetErrMsg

func (m *Error) GetErrMsg() string

func (*Error) GetErrType

func (m *Error) GetErrType() string

func (*Error) GetFromId

func (m *Error) GetFromId() int64

func (*Error) GetRunnigNo

func (m *Error) GetRunnigNo() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

type FriendRequest

type FriendRequest struct {
	UserId   int64  `protobuf:"varint,1,opt,name=UserId,json=userId" json:"UserId,omitempty"`
	UserName string `protobuf:"bytes,2,opt,name=UserName,json=userName" json:"UserName,omitempty"`
}

func (*FriendRequest) Descriptor

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

func (*FriendRequest) GetUserId

func (m *FriendRequest) GetUserId() int64

func (*FriendRequest) GetUserName

func (m *FriendRequest) GetUserName() string

func (*FriendRequest) ProtoMessage

func (*FriendRequest) ProtoMessage()

func (*FriendRequest) Reset

func (m *FriendRequest) Reset()

func (*FriendRequest) String

func (m *FriendRequest) String() string

type GameCreation

type GameCreation struct {
	RoomInfo        *RoomInfo      `protobuf:"bytes,1,opt,name=RoomInfo,json=roomInfo" json:"RoomInfo,omitempty"`
	PlayerSessions  []*SessionInfo `protobuf:"bytes,2,rep,name=PlayerSessions,json=playerSessions" json:"PlayerSessions,omitempty"`
	MasterSessionId int64          `protobuf:"varint,3,opt,name=MasterSessionId,json=masterSessionId" json:"MasterSessionId,omitempty"`
}

func (*GameCreation) Descriptor

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

func (*GameCreation) GetMasterSessionId

func (m *GameCreation) GetMasterSessionId() int64

func (*GameCreation) GetPlayerSessions

func (m *GameCreation) GetPlayerSessions() []*SessionInfo

func (*GameCreation) GetRoomInfo

func (m *GameCreation) GetRoomInfo() *RoomInfo

func (*GameCreation) ProtoMessage

func (*GameCreation) ProtoMessage()

func (*GameCreation) Reset

func (m *GameCreation) Reset()

func (*GameCreation) String

func (m *GameCreation) String() string

type GameFrame

type GameFrame struct {
	EntityStates  map[int64]*EntityState `` /* 163-byte string literal not displayed */
	Interaction   []*Interaction         `protobuf:"bytes,2,rep,name=Interaction,json=interaction" json:"Interaction,omitempty"`
	Characters    map[int64]*Character   `` /* 157-byte string literal not displayed */
	DestroyEntity []int64                `protobuf:"varint,6,rep,packed,name=DestroyEntity,json=destroyEntity" json:"DestroyEntity,omitempty"`
	TimeStamp     int64                  `protobuf:"varint,4,opt,name=TimeStamp,json=timeStamp" json:"TimeStamp,omitempty"`
	RunnigNo      int64                  `protobuf:"varint,5,opt,name=RunnigNo,json=runnigNo" json:"RunnigNo,omitempty"`
}

func (*GameFrame) Descriptor

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

func (*GameFrame) GetCharacters

func (m *GameFrame) GetCharacters() map[int64]*Character

func (*GameFrame) GetDestroyEntity

func (m *GameFrame) GetDestroyEntity() []int64

func (*GameFrame) GetEntityStates

func (m *GameFrame) GetEntityStates() map[int64]*EntityState

func (*GameFrame) GetInteraction

func (m *GameFrame) GetInteraction() []*Interaction

func (*GameFrame) GetRunnigNo

func (m *GameFrame) GetRunnigNo() int64

func (*GameFrame) GetTimeStamp

func (m *GameFrame) GetTimeStamp() int64

func (*GameFrame) ProtoMessage

func (*GameFrame) ProtoMessage()

func (*GameFrame) Reset

func (m *GameFrame) Reset()

func (*GameFrame) String

func (m *GameFrame) String() string

type HomeView

type HomeView struct {
}

func (*HomeView) Descriptor

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

func (*HomeView) ProtoMessage

func (*HomeView) ProtoMessage()

func (*HomeView) Reset

func (m *HomeView) Reset()

func (*HomeView) String

func (m *HomeView) String() string

type ID

type ID struct {
	Value int64 `protobuf:"varint,1,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*ID) Descriptor

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

func (*ID) GetValue

func (m *ID) GetValue() int64

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

type Input

type Input struct {
	EntityStates        map[int64]*EntityState `` /* 163-byte string literal not displayed */
	Interaction         []*Interaction         `protobuf:"bytes,2,rep,name=Interaction,json=interaction" json:"Interaction,omitempty"`
	NewEntityCharacters map[int64]*Character   `` /* 184-byte string literal not displayed */
	DestroyEntity       []int64                `protobuf:"varint,4,rep,packed,name=DestroyEntity,json=destroyEntity" json:"DestroyEntity,omitempty"`
	TimeStamp           int64                  `protobuf:"varint,6,opt,name=TimeStamp,json=timeStamp" json:"TimeStamp,omitempty"`
}

func (*Input) Descriptor

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

func (*Input) GetDestroyEntity

func (m *Input) GetDestroyEntity() []int64

func (*Input) GetEntityStates

func (m *Input) GetEntityStates() map[int64]*EntityState

func (*Input) GetInteraction

func (m *Input) GetInteraction() []*Interaction

func (*Input) GetNewEntityCharacters

func (m *Input) GetNewEntityCharacters() map[int64]*Character

func (*Input) GetTimeStamp

func (m *Input) GetTimeStamp() int64

func (*Input) ProtoMessage

func (*Input) ProtoMessage()

func (*Input) Reset

func (m *Input) Reset()

func (*Input) String

func (m *Input) String() string

type Interaction

type Interaction struct {
	FromEntityId  int64    `protobuf:"varint,6,opt,name=FromEntityId,json=fromEntityId" json:"FromEntityId,omitempty"`
	ToEntityId    int64    `protobuf:"varint,1,opt,name=ToEntityId,json=toEntityId" json:"ToEntityId,omitempty"`
	Type          string   `protobuf:"bytes,2,opt,name=Type,json=type" json:"Type,omitempty"`
	Direction     *Vector3 `protobuf:"bytes,3,opt,name=Direction,json=direction" json:"Direction,omitempty"`
	ApplyPoint    *Vector3 `protobuf:"bytes,4,opt,name=ApplyPoint,json=applyPoint" json:"ApplyPoint,omitempty"`
	IsRebouncable bool     `protobuf:"varint,5,opt,name=IsRebouncable,json=isRebouncable" json:"IsRebouncable,omitempty"`
}

func (*Interaction) Descriptor

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

func (*Interaction) GetApplyPoint

func (m *Interaction) GetApplyPoint() *Vector3

func (*Interaction) GetDirection

func (m *Interaction) GetDirection() *Vector3

func (*Interaction) GetFromEntityId

func (m *Interaction) GetFromEntityId() int64

func (*Interaction) GetIsRebouncable

func (m *Interaction) GetIsRebouncable() bool

func (*Interaction) GetToEntityId

func (m *Interaction) GetToEntityId() int64

func (*Interaction) GetType

func (m *Interaction) GetType() string

func (*Interaction) ProtoMessage

func (*Interaction) ProtoMessage()

func (*Interaction) Reset

func (m *Interaction) Reset()

func (*Interaction) String

func (m *Interaction) String() string

type LogMessage

type LogMessage struct {
	LogLevel LogMessage_Level `protobuf:"varint,1,opt,name=LogLevel,json=logLevel,enum=msg.LogMessage_Level" json:"LogLevel,omitempty"`
	Context  string           `protobuf:"bytes,2,opt,name=Context,json=context" json:"Context,omitempty"`
}

func (*LogMessage) Descriptor

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

func (*LogMessage) GetContext

func (m *LogMessage) GetContext() string

func (*LogMessage) GetLogLevel

func (m *LogMessage) GetLogLevel() LogMessage_Level

func (*LogMessage) ProtoMessage

func (*LogMessage) ProtoMessage()

func (*LogMessage) Reset

func (m *LogMessage) Reset()

func (*LogMessage) String

func (m *LogMessage) String() string

type LogMessage_Level

type LogMessage_Level int32
const (
	LogMessage_Debug LogMessage_Level = 0
	LogMessage_Info  LogMessage_Level = 1
	LogMessage_Warn  LogMessage_Level = 2
	LogMessage_Fatal LogMessage_Level = 3
)

func (LogMessage_Level) EnumDescriptor

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

func (LogMessage_Level) String

func (x LogMessage_Level) String() string

type LoginInput

type LoginInput struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,json=userName" json:"UserName,omitempty"`
	Pswd     string `protobuf:"bytes,2,opt,name=Pswd,json=pswd" json:"Pswd,omitempty"`
}

func (*LoginInput) Descriptor

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

func (*LoginInput) GetPswd

func (m *LoginInput) GetPswd() string

func (*LoginInput) GetUserName

func (m *LoginInput) GetUserName() string

func (*LoginInput) ProtoMessage

func (*LoginInput) ProtoMessage()

func (*LoginInput) Reset

func (m *LoginInput) Reset()

func (*LoginInput) String

func (m *LoginInput) String() string

type MessageToUser

type MessageToUser struct {
	MsgType MessageToUser_Type `protobuf:"varint,1,opt,name=MsgType,json=msgType,enum=msg.MessageToUser_Type" json:"MsgType,omitempty"`
	Context string             `protobuf:"bytes,2,opt,name=Context,json=context" json:"Context,omitempty"`
}

func (*MessageToUser) Descriptor

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

func (*MessageToUser) GetContext

func (m *MessageToUser) GetContext() string

func (*MessageToUser) GetMsgType

func (m *MessageToUser) GetMsgType() MessageToUser_Type

func (*MessageToUser) ProtoMessage

func (*MessageToUser) ProtoMessage()

func (*MessageToUser) Reset

func (m *MessageToUser) Reset()

func (*MessageToUser) String

func (m *MessageToUser) String() string

type MessageToUser_Type

type MessageToUser_Type int32
const (
	MessageToUser_ToView     MessageToUser_Type = 0
	MessageToUser_ToDebugLog MessageToUser_Type = 2
)

func (MessageToUser_Type) EnumDescriptor

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

func (MessageToUser_Type) String

func (x MessageToUser_Type) String() string

type PemKey

type PemKey struct {
	TLS string `protobuf:"bytes,1,opt,name=TLS,json=tLS" json:"TLS,omitempty"`
	SSL string `protobuf:"bytes,2,opt,name=SSL,json=sSL" json:"SSL,omitempty"`
}

func (*PemKey) Descriptor

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

func (*PemKey) GetSSL

func (m *PemKey) GetSSL() string

func (*PemKey) GetTLS

func (m *PemKey) GetTLS() string

func (*PemKey) ProtoMessage

func (*PemKey) ProtoMessage()

func (*PemKey) Reset

func (m *PemKey) Reset()

func (*PemKey) String

func (m *PemKey) String() string

type PlayerInfo

type PlayerInfo struct {
	CharacterCode int64      `protobuf:"varint,1,opt,name=CharacterCode,json=characterCode" json:"CharacterCode,omitempty"`
	TeamNo        int32      `protobuf:"varint,2,opt,name=TeamNo,json=teamNo" json:"TeamNo,omitempty"`
	Character     *Character `protobuf:"bytes,4,opt,name=Character,json=character" json:"Character,omitempty"`
	UserId        int64      `protobuf:"varint,5,opt,name=UserId,json=userId" json:"UserId,omitempty"`
	UserName      string     `protobuf:"bytes,6,opt,name=UserName,json=userName" json:"UserName,omitempty"`
	IsReady       bool       `protobuf:"varint,7,opt,name=IsReady,json=isReady" json:"IsReady,omitempty"`
}

func (*PlayerInfo) Descriptor

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

func (*PlayerInfo) GetCharacter

func (m *PlayerInfo) GetCharacter() *Character

func (*PlayerInfo) GetCharacterCode

func (m *PlayerInfo) GetCharacterCode() int64

func (*PlayerInfo) GetIsReady

func (m *PlayerInfo) GetIsReady() bool

func (*PlayerInfo) GetTeamNo

func (m *PlayerInfo) GetTeamNo() int32

func (*PlayerInfo) GetUserId

func (m *PlayerInfo) GetUserId() int64

func (*PlayerInfo) GetUserName

func (m *PlayerInfo) GetUserName() string

func (*PlayerInfo) ProtoMessage

func (*PlayerInfo) ProtoMessage()

func (*PlayerInfo) Reset

func (m *PlayerInfo) Reset()

func (*PlayerInfo) String

func (m *PlayerInfo) String() string

type Position

type Position struct {
	PosMap    map[int64]*Transform `` /* 145-byte string literal not displayed */
	TimeStamp int64                `protobuf:"varint,2,opt,name=TimeStamp,json=timeStamp" json:"TimeStamp,omitempty"`
}

func (*Position) Descriptor

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

func (*Position) GetPosMap

func (m *Position) GetPosMap() map[int64]*Transform

func (*Position) GetTimeStamp

func (m *Position) GetTimeStamp() int64

func (*Position) ProtoMessage

func (*Position) ProtoMessage()

func (*Position) Reset

func (m *Position) Reset()

func (*Position) String

func (m *Position) String() string

type Quaternion

type Quaternion struct {
	X float32 `protobuf:"fixed32,1,opt,name=X,json=x" json:"X,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=Y,json=y" json:"Y,omitempty"`
	Z float32 `protobuf:"fixed32,3,opt,name=Z,json=z" json:"Z,omitempty"`
	W float32 `protobuf:"fixed32,4,opt,name=W,json=w" json:"W,omitempty"`
}

func (*Quaternion) Descriptor

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

func (*Quaternion) GetW

func (m *Quaternion) GetW() float32

func (*Quaternion) GetX

func (m *Quaternion) GetX() float32

func (*Quaternion) GetY

func (m *Quaternion) GetY() float32

func (*Quaternion) GetZ

func (m *Quaternion) GetZ() float32

func (*Quaternion) ProtoMessage

func (*Quaternion) ProtoMessage()

func (*Quaternion) Reset

func (m *Quaternion) Reset()

func (*Quaternion) String

func (m *Quaternion) String() string

type RegistInput

type RegistInput struct {
	UserName string `protobuf:"bytes,1,opt,name=UserName,json=userName" json:"UserName,omitempty"`
	Pswd     string `protobuf:"bytes,2,opt,name=Pswd,json=pswd" json:"Pswd,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=Email,json=email" json:"Email,omitempty"`
}

func (*RegistInput) Descriptor

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

func (*RegistInput) GetEmail

func (m *RegistInput) GetEmail() string

func (*RegistInput) GetPswd

func (m *RegistInput) GetPswd() string

func (*RegistInput) GetUserName

func (m *RegistInput) GetUserName() string

func (*RegistInput) ProtoMessage

func (*RegistInput) ProtoMessage()

func (*RegistInput) Reset

func (m *RegistInput) Reset()

func (*RegistInput) String

func (m *RegistInput) String() string

type RoomContent

type RoomContent struct {
	Uuid    int64                  `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Players map[string]*PlayerInfo `` /* 147-byte string literal not displayed */
}

func (*RoomContent) Descriptor

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

func (*RoomContent) GetPlayers

func (m *RoomContent) GetPlayers() map[string]*PlayerInfo

func (*RoomContent) GetUuid

func (m *RoomContent) GetUuid() int64

func (*RoomContent) ProtoMessage

func (*RoomContent) ProtoMessage()

func (*RoomContent) Reset

func (m *RoomContent) Reset()

func (*RoomContent) String

func (m *RoomContent) String() string

type RoomInfo

type RoomInfo struct {
	Uuid            int64               `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Name            string              `protobuf:"bytes,2,opt,name=Name,json=name" json:"Name,omitempty"`
	GameType        string              `protobuf:"bytes,3,opt,name=GameType,json=gameType" json:"GameType,omitempty"`
	OwnerUuid       int64               `protobuf:"varint,4,opt,name=OwnerUuid,json=ownerUuid" json:"OwnerUuid,omitempty"`
	UserInRoom      map[int64]*UserInfo `` /* 157-byte string literal not displayed */
	ReadyUser       map[int64]bool      `` /* 155-byte string literal not displayed */
	Status          RoomInfo_RoomStatus `protobuf:"varint,7,opt,name=Status,json=status,enum=msg.RoomInfo_RoomStatus" json:"Status,omitempty"`
	LeftMilliSecond int64               `protobuf:"varint,8,opt,name=LeftMilliSecond,json=leftMilliSecond" json:"LeftMilliSecond,omitempty"`
}

func (*RoomInfo) Descriptor

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

func (*RoomInfo) GetGameType

func (m *RoomInfo) GetGameType() string

func (*RoomInfo) GetLeftMilliSecond

func (m *RoomInfo) GetLeftMilliSecond() int64

func (*RoomInfo) GetName

func (m *RoomInfo) GetName() string

func (*RoomInfo) GetOwnerUuid

func (m *RoomInfo) GetOwnerUuid() int64

func (*RoomInfo) GetReadyUser

func (m *RoomInfo) GetReadyUser() map[int64]bool

func (*RoomInfo) GetStatus

func (m *RoomInfo) GetStatus() RoomInfo_RoomStatus

func (*RoomInfo) GetUserInRoom

func (m *RoomInfo) GetUserInRoom() map[int64]*UserInfo

func (*RoomInfo) GetUuid

func (m *RoomInfo) GetUuid() int64

func (*RoomInfo) ProtoMessage

func (*RoomInfo) ProtoMessage()

func (*RoomInfo) Reset

func (m *RoomInfo) Reset()

func (*RoomInfo) String

func (m *RoomInfo) String() string

type RoomInfo_RoomStatus

type RoomInfo_RoomStatus int32
const (
	RoomInfo_Preparing RoomInfo_RoomStatus = 0
	RoomInfo_OnPlaying RoomInfo_RoomStatus = 1
	RoomInfo_Ending    RoomInfo_RoomStatus = 2
)

func (RoomInfo_RoomStatus) EnumDescriptor

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

func (RoomInfo_RoomStatus) String

func (x RoomInfo_RoomStatus) String() string

type RoomList

type RoomList struct {
	Item []*RoomReview `protobuf:"bytes,1,rep,name=item" json:"item,omitempty"`
}

func (*RoomList) Descriptor

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

func (*RoomList) GetItem

func (m *RoomList) GetItem() []*RoomReview

func (*RoomList) ProtoMessage

func (*RoomList) ProtoMessage()

func (*RoomList) Reset

func (m *RoomList) Reset()

func (*RoomList) String

func (m *RoomList) String() string

type RoomPrepareView

type RoomPrepareView struct {
}

func (*RoomPrepareView) Descriptor

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

func (*RoomPrepareView) ProtoMessage

func (*RoomPrepareView) ProtoMessage()

func (*RoomPrepareView) Reset

func (m *RoomPrepareView) Reset()

func (*RoomPrepareView) String

func (m *RoomPrepareView) String() string

type RoomReview

type RoomReview struct {
	Uuid         int64  `protobuf:"varint,1,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=Name,json=name" json:"Name,omitempty"`
	GameType     string `protobuf:"bytes,3,opt,name=GameType,json=gameType" json:"GameType,omitempty"`
	MaxPlayer    int32  `protobuf:"varint,4,opt,name=MaxPlayer,json=maxPlayer" json:"MaxPlayer,omitempty"`
	InRoomPlayer int32  `protobuf:"varint,5,opt,name=InRoomPlayer,json=inRoomPlayer" json:"InRoomPlayer,omitempty"`
}

func (*RoomReview) Descriptor

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

func (*RoomReview) GetGameType

func (m *RoomReview) GetGameType() string

func (*RoomReview) GetInRoomPlayer

func (m *RoomReview) GetInRoomPlayer() int32

func (*RoomReview) GetMaxPlayer

func (m *RoomReview) GetMaxPlayer() int32

func (*RoomReview) GetName

func (m *RoomReview) GetName() string

func (*RoomReview) GetUuid

func (m *RoomReview) GetUuid() int64

func (*RoomReview) ProtoMessage

func (*RoomReview) ProtoMessage()

func (*RoomReview) Reset

func (m *RoomReview) Reset()

func (*RoomReview) String

func (m *RoomReview) String() string

type RoomSetting

type RoomSetting struct {
	MaxPlayer int32  `protobuf:"varint,1,opt,name=MaxPlayer,json=maxPlayer" json:"MaxPlayer,omitempty"`
	GameType  string `protobuf:"bytes,2,opt,name=GameType,json=gameType" json:"GameType,omitempty"`
	Name      string `protobuf:"bytes,3,opt,name=Name,json=name" json:"Name,omitempty"`
}

func (*RoomSetting) Descriptor

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

func (*RoomSetting) GetGameType

func (m *RoomSetting) GetGameType() string

func (*RoomSetting) GetMaxPlayer

func (m *RoomSetting) GetMaxPlayer() int32

func (*RoomSetting) GetName

func (m *RoomSetting) GetName() string

func (*RoomSetting) ProtoMessage

func (*RoomSetting) ProtoMessage()

func (*RoomSetting) Reset

func (m *RoomSetting) Reset()

func (*RoomSetting) String

func (m *RoomSetting) String() string

type SearchKeyWord

type SearchKeyWord struct {
	Value string `protobuf:"bytes,1,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*SearchKeyWord) Descriptor

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

func (*SearchKeyWord) GetValue

func (m *SearchKeyWord) GetValue() string

func (*SearchKeyWord) ProtoMessage

func (*SearchKeyWord) ProtoMessage()

func (*SearchKeyWord) Reset

func (m *SearchKeyWord) Reset()

func (*SearchKeyWord) String

func (m *SearchKeyWord) String() string

type SearchResult

type SearchResult struct {
	List []*UserInfo `protobuf:"bytes,1,rep,name=List,json=list" json:"List,omitempty"`
}

func (*SearchResult) Descriptor

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

func (*SearchResult) GetList

func (m *SearchResult) GetList() []*UserInfo

func (*SearchResult) ProtoMessage

func (*SearchResult) ProtoMessage()

func (*SearchResult) Reset

func (m *SearchResult) Reset()

func (*SearchResult) String

func (m *SearchResult) String() string

type ServerInfo

type ServerInfo struct {
	ServerType      ServerInfo_Type `protobuf:"varint,1,opt,name=ServerType,json=serverType,enum=msg.ServerInfo_Type" json:"ServerType,omitempty"`
	PublicKey       string          `protobuf:"bytes,2,opt,name=PublicKey,json=publicKey" json:"PublicKey,omitempty"`
	Port            string          `protobuf:"bytes,3,opt,name=Port,json=port" json:"Port,omitempty"`
	Addr            string          `protobuf:"bytes,4,opt,name=Addr,json=addr" json:"Addr,omitempty"`
	SessionKey      *SessionKey     `protobuf:"bytes,5,opt,name=SessionKey,json=sessionKey" json:"SessionKey,omitempty"`
	MaxConn         int64           `protobuf:"varint,6,opt,name=MaxConn,json=maxConn" json:"MaxConn,omitempty"`
	NowConn         int64           `protobuf:"varint,7,opt,name=NowConn,json=nowConn" json:"NowConn,omitempty"`
	GameTerrianName string          `protobuf:"bytes,8,opt,name=GameTerrianName,json=gameTerrianName" json:"GameTerrianName,omitempty"`
}

func (*ServerInfo) Descriptor

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

func (*ServerInfo) GetAddr

func (m *ServerInfo) GetAddr() string

func (*ServerInfo) GetGameTerrianName

func (m *ServerInfo) GetGameTerrianName() string

func (*ServerInfo) GetMaxConn

func (m *ServerInfo) GetMaxConn() int64

func (*ServerInfo) GetNowConn

func (m *ServerInfo) GetNowConn() int64

func (*ServerInfo) GetPort

func (m *ServerInfo) GetPort() string

func (*ServerInfo) GetPublicKey

func (m *ServerInfo) GetPublicKey() string

func (*ServerInfo) GetServerType

func (m *ServerInfo) GetServerType() ServerInfo_Type

func (*ServerInfo) GetSessionKey

func (m *ServerInfo) GetSessionKey() *SessionKey

func (*ServerInfo) ProtoMessage

func (*ServerInfo) ProtoMessage()

func (*ServerInfo) Reset

func (m *ServerInfo) Reset()

func (*ServerInfo) String

func (m *ServerInfo) String() string

type ServerInfo_Type

type ServerInfo_Type int32
const (
	ServerInfo_GameServer  ServerInfo_Type = 0
	ServerInfo_AgentServer ServerInfo_Type = 1
)

func (ServerInfo_Type) EnumDescriptor

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

func (ServerInfo_Type) String

func (x ServerInfo_Type) String() string

type SessionCache

type SessionCache struct {
	GameServerInfo *ServerInfo  `protobuf:"bytes,1,opt,name=GameServerInfo,json=gameServerInfo" json:"GameServerInfo,omitempty"`
	SessionInfo    *SessionInfo `protobuf:"bytes,2,opt,name=SessionInfo,json=sessionInfo" json:"SessionInfo,omitempty"`
}

func (*SessionCache) Descriptor

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

func (*SessionCache) GetGameServerInfo

func (m *SessionCache) GetGameServerInfo() *ServerInfo

func (*SessionCache) GetSessionInfo

func (m *SessionCache) GetSessionInfo() *SessionInfo

func (*SessionCache) ProtoMessage

func (*SessionCache) ProtoMessage()

func (*SessionCache) Reset

func (m *SessionCache) Reset()

func (*SessionCache) String

func (m *SessionCache) String() string

type SessionInfo

type SessionInfo struct {
	State    SessionInfo_SessionState    `protobuf:"varint,1,opt,name=State,json=state,enum=msg.SessionInfo_SessionState" json:"State,omitempty"`
	Capacity SessionInfo_SessionCapacity `protobuf:"varint,2,opt,name=Capacity,json=capacity,enum=msg.SessionInfo_SessionCapacity" json:"Capacity,omitempty"`
	Uuid     int64                       `protobuf:"varint,5,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	Key      *SessionKey                 `protobuf:"bytes,3,opt,name=Key,json=key" json:"Key,omitempty"`
	UserInfo *UserInfo                   `protobuf:"bytes,4,opt,name=UserInfo,json=userInfo" json:"UserInfo,omitempty"`
}

func (*SessionInfo) Descriptor

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

func (*SessionInfo) GetCapacity

func (m *SessionInfo) GetCapacity() SessionInfo_SessionCapacity

func (*SessionInfo) GetKey

func (m *SessionInfo) GetKey() *SessionKey

func (*SessionInfo) GetState

func (m *SessionInfo) GetState() SessionInfo_SessionState

func (*SessionInfo) GetUserInfo

func (m *SessionInfo) GetUserInfo() *UserInfo

func (*SessionInfo) GetUuid

func (m *SessionInfo) GetUuid() int64

func (*SessionInfo) ProtoMessage

func (*SessionInfo) ProtoMessage()

func (*SessionInfo) Reset

func (m *SessionInfo) Reset()

func (*SessionInfo) String

func (m *SessionInfo) String() string

type SessionInfo_SessionCapacity

type SessionInfo_SessionCapacity int32
const (
	SessionInfo_GM         SessionInfo_SessionCapacity = 0
	SessionInfo_RoomMaster SessionInfo_SessionCapacity = 1
	SessionInfo_RoomClient SessionInfo_SessionCapacity = 2
	SessionInfo_None       SessionInfo_SessionCapacity = 3
)

func (SessionInfo_SessionCapacity) EnumDescriptor

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

func (SessionInfo_SessionCapacity) String

type SessionInfo_SessionState

type SessionInfo_SessionState int32
const (
	SessionInfo_NoSession                SessionInfo_SessionState = 0
	SessionInfo_Guest                    SessionInfo_SessionState = 1
	SessionInfo_UserIdle                 SessionInfo_SessionState = 2
	SessionInfo_UserInRoom               SessionInfo_SessionState = 3
	SessionInfo_ConnectingGame           SessionInfo_SessionState = 4
	SessionInfo_AgentServerWaitReconnect SessionInfo_SessionState = 5
	// in game server
	SessionInfo_OnStart                 SessionInfo_SessionState = 6
	SessionInfo_Playing                 SessionInfo_SessionState = 7
	SessionInfo_GameOver                SessionInfo_SessionState = 8
	SessionInfo_GameServerWaitReconnect SessionInfo_SessionState = 9
)

func (SessionInfo_SessionState) EnumDescriptor

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

func (SessionInfo_SessionState) String

func (x SessionInfo_SessionState) String() string

type SessionKey

type SessionKey struct {
	Value string `protobuf:"bytes,1,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*SessionKey) Descriptor

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

func (*SessionKey) GetValue

func (m *SessionKey) GetValue() string

func (*SessionKey) ProtoMessage

func (*SessionKey) ProtoMessage()

func (*SessionKey) Reset

func (m *SessionKey) Reset()

func (*SessionKey) String

func (m *SessionKey) String() string

type Skill

type Skill struct {
	Active bool    `protobuf:"varint,1,opt,name=Active,json=active" json:"Active,omitempty"`
	Name   string  `protobuf:"bytes,2,opt,name=Name,json=name" json:"Name,omitempty"`
	Value  float32 `protobuf:"fixed32,3,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*Skill) Descriptor

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

func (*Skill) GetActive

func (m *Skill) GetActive() bool

func (*Skill) GetName

func (m *Skill) GetName() string

func (*Skill) GetValue

func (m *Skill) GetValue() float32

func (*Skill) ProtoMessage

func (*Skill) ProtoMessage()

func (*Skill) Reset

func (m *Skill) Reset()

func (*Skill) String

func (m *Skill) String() string

type Success

type Success struct {
	Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}

func (*Success) Descriptor

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

func (*Success) GetOk

func (m *Success) GetOk() bool

func (*Success) ProtoMessage

func (*Success) ProtoMessage()

func (*Success) Reset

func (m *Success) Reset()

func (*Success) String

func (m *Success) String() string

type TimeStamp

type TimeStamp struct {
	Value int64 `protobuf:"varint,1,opt,name=Value,json=value" json:"Value,omitempty"`
}

func (*TimeStamp) Descriptor

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

func (*TimeStamp) GetValue

func (m *TimeStamp) GetValue() int64

func (*TimeStamp) ProtoMessage

func (*TimeStamp) ProtoMessage()

func (*TimeStamp) Reset

func (m *TimeStamp) Reset()

func (*TimeStamp) String

func (m *TimeStamp) String() string

type Transform

type Transform struct {
	Position *Vector3    `protobuf:"bytes,1,opt,name=Position,json=position" json:"Position,omitempty"`
	Rotation *Quaternion `protobuf:"bytes,2,opt,name=Rotation,json=rotation" json:"Rotation,omitempty"`
}

func (*Transform) Descriptor

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

func (*Transform) GetPosition

func (m *Transform) GetPosition() *Vector3

func (*Transform) GetRotation

func (m *Transform) GetRotation() *Quaternion

func (*Transform) ProtoMessage

func (*Transform) ProtoMessage()

func (*Transform) Reset

func (m *Transform) Reset()

func (*Transform) String

func (m *Transform) String() string

type UserInfo

type UserInfo struct {
	UserName      string               `protobuf:"bytes,1,opt,name=UserName,json=userName" json:"UserName,omitempty"`
	Uuid          int64                `protobuf:"varint,2,opt,name=Uuid,json=uuid" json:"Uuid,omitempty"`
	OwnCharacter  map[int64]*Character `` /* 163-byte string literal not displayed */
	UsedCharacter int64                `protobuf:"varint,4,opt,name=UsedCharacter,json=usedCharacter" json:"UsedCharacter,omitempty"`
}

func (*UserInfo) Descriptor

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

func (*UserInfo) GetOwnCharacter

func (m *UserInfo) GetOwnCharacter() map[int64]*Character

func (*UserInfo) GetUsedCharacter

func (m *UserInfo) GetUsedCharacter() int64

func (*UserInfo) GetUserName

func (m *UserInfo) GetUserName() string

func (*UserInfo) GetUuid

func (m *UserInfo) GetUuid() int64

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) Reset

func (m *UserInfo) Reset()

func (*UserInfo) String

func (m *UserInfo) String() string

type UserList

type UserList struct {
	UserInfos []*UserInfo `protobuf:"bytes,1,rep,name=userInfos" json:"userInfos,omitempty"`
}

func (*UserList) Descriptor

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

func (*UserList) GetUserInfos

func (m *UserList) GetUserInfos() []*UserInfo

func (*UserList) ProtoMessage

func (*UserList) ProtoMessage()

func (*UserList) Reset

func (m *UserList) Reset()

func (*UserList) String

func (m *UserList) String() string

type UserState

type UserState struct {
	State UserState_UserStatus `protobuf:"varint,1,opt,name=State,json=state,enum=msg.UserState_UserStatus" json:"State,omitempty"`
}

func (*UserState) Descriptor

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

func (*UserState) GetState

func (m *UserState) GetState() UserState_UserStatus

func (*UserState) ProtoMessage

func (*UserState) ProtoMessage()

func (*UserState) Reset

func (m *UserState) Reset()

func (*UserState) String

func (m *UserState) String() string

type UserState_UserStatus

type UserState_UserStatus int32
const (
	UserState_OnCreating UserState_UserStatus = 0
	UserState_Login      UserState_UserStatus = 1
	UserState_Offline    UserState_UserStatus = 2
	UserState_OnPlaying  UserState_UserStatus = 3
)

func (UserState_UserStatus) EnumDescriptor

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

func (UserState_UserStatus) String

func (x UserState_UserStatus) String() string

type Vector3

type Vector3 struct {
	X float32 `protobuf:"fixed32,1,opt,name=X,json=x" json:"X,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=Y,json=y" json:"Y,omitempty"`
	Z float32 `protobuf:"fixed32,3,opt,name=Z,json=z" json:"Z,omitempty"`
}

func (*Vector3) Descriptor

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

func (*Vector3) GetX

func (m *Vector3) GetX() float32

func (*Vector3) GetY

func (m *Vector3) GetY() float32

func (*Vector3) GetZ

func (m *Vector3) GetZ() float32

func (*Vector3) ProtoMessage

func (*Vector3) ProtoMessage()

func (*Vector3) Reset

func (m *Vector3) Reset()

func (*Vector3) String

func (m *Vector3) String() string

Source Files

Directories

Path Synopsis
github.com
golang/protobuf/ptypes/any
Package any is a generated protocol buffer package.
Package any is a generated protocol buffer package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL