Documentation ¶
Overview ¶
Package msg is a generated protocol buffer package.
It is generated from these files:
fight.proto login.proto
It has these top-level messages:
StartFight FightResult EnterFight SignUpResponse TosChat TocChat Login PlayerBaseInfo LoginSuccessfull LoginFaild
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LoginFaild_ErrorCode_name = map[int32]string{
0: "AccountOrPasswardNotMatch",
1: "AccIDInvalid",
2: "LoginRepeat",
3: "InnerError",
}
View Source
var LoginFaild_ErrorCode_value = map[string]int32{
"AccountOrPasswardNotMatch": 0,
"AccIDInvalid": 1,
"LoginRepeat": 2,
"InnerError": 3,
}
View Source
var (
Processor = protobuf.NewProcessor()
)
Functions ¶
This section is empty.
Types ¶
type EnterFight ¶
type EnterFight struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` }
func (*EnterFight) Descriptor ¶
func (*EnterFight) Descriptor() ([]byte, []int)
func (*EnterFight) GetContent ¶
func (m *EnterFight) GetContent() string
func (*EnterFight) GetName ¶
func (m *EnterFight) GetName() string
func (*EnterFight) ProtoMessage ¶
func (*EnterFight) ProtoMessage()
func (*EnterFight) Reset ¶
func (m *EnterFight) Reset()
func (*EnterFight) String ¶
func (m *EnterFight) String() string
type FightResult ¶
type FightResult struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` }
func (*FightResult) Descriptor ¶
func (*FightResult) Descriptor() ([]byte, []int)
func (*FightResult) GetContent ¶
func (m *FightResult) GetContent() string
func (*FightResult) GetName ¶
func (m *FightResult) GetName() string
func (*FightResult) ProtoMessage ¶
func (*FightResult) ProtoMessage()
func (*FightResult) Reset ¶
func (m *FightResult) Reset()
func (*FightResult) String ¶
func (m *FightResult) String() string
type Login ¶
type Login struct { Account string `protobuf:"bytes,1,opt,name=account" json:"account,omitempty"` Passward string `protobuf:"bytes,2,opt,name=passward" json:"passward,omitempty"` }
func (*Login) Descriptor ¶
func (*Login) GetAccount ¶
func (*Login) GetPassward ¶
func (*Login) ProtoMessage ¶
func (*Login) ProtoMessage()
type LoginFaild ¶
type LoginFaild struct {
Code LoginFaild_ErrorCode `protobuf:"varint,1,opt,name=code,enum=msg.LoginFaild_ErrorCode" json:"code,omitempty"`
}
func (*LoginFaild) Descriptor ¶
func (*LoginFaild) Descriptor() ([]byte, []int)
func (*LoginFaild) GetCode ¶
func (m *LoginFaild) GetCode() LoginFaild_ErrorCode
func (*LoginFaild) ProtoMessage ¶
func (*LoginFaild) ProtoMessage()
func (*LoginFaild) Reset ¶
func (m *LoginFaild) Reset()
func (*LoginFaild) String ¶
func (m *LoginFaild) String() string
type LoginFaild_ErrorCode ¶
type LoginFaild_ErrorCode int32
const ( LoginFaild_AccountOrPasswardNotMatch LoginFaild_ErrorCode = 0 LoginFaild_AccIDInvalid LoginFaild_ErrorCode = 1 LoginFaild_LoginRepeat LoginFaild_ErrorCode = 2 LoginFaild_InnerError LoginFaild_ErrorCode = 3 )
func (LoginFaild_ErrorCode) EnumDescriptor ¶
func (LoginFaild_ErrorCode) EnumDescriptor() ([]byte, []int)
func (LoginFaild_ErrorCode) String ¶
func (x LoginFaild_ErrorCode) String() string
type LoginSuccessfull ¶
type LoginSuccessfull struct {
PlayerBaseInfo *PlayerBaseInfo `protobuf:"bytes,1,opt,name=playerBaseInfo" json:"playerBaseInfo,omitempty"`
}
func (*LoginSuccessfull) Descriptor ¶
func (*LoginSuccessfull) Descriptor() ([]byte, []int)
func (*LoginSuccessfull) GetPlayerBaseInfo ¶
func (m *LoginSuccessfull) GetPlayerBaseInfo() *PlayerBaseInfo
func (*LoginSuccessfull) ProtoMessage ¶
func (*LoginSuccessfull) ProtoMessage()
func (*LoginSuccessfull) Reset ¶
func (m *LoginSuccessfull) Reset()
func (*LoginSuccessfull) String ¶
func (m *LoginSuccessfull) String() string
type PlayerBaseInfo ¶
type PlayerBaseInfo struct { PlayerID uint32 `protobuf:"varint,1,opt,name=PlayerID" json:"PlayerID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` }
func (*PlayerBaseInfo) Descriptor ¶
func (*PlayerBaseInfo) Descriptor() ([]byte, []int)
func (*PlayerBaseInfo) GetName ¶
func (m *PlayerBaseInfo) GetName() string
func (*PlayerBaseInfo) GetPlayerID ¶
func (m *PlayerBaseInfo) GetPlayerID() uint32
func (*PlayerBaseInfo) ProtoMessage ¶
func (*PlayerBaseInfo) ProtoMessage()
func (*PlayerBaseInfo) Reset ¶
func (m *PlayerBaseInfo) Reset()
func (*PlayerBaseInfo) String ¶
func (m *PlayerBaseInfo) String() string
type SignUpResponse ¶
type SignUpResponse struct { ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode" json:"errorCode,omitempty"` Version float32 `protobuf:"fixed32,2,opt,name=version" json:"version,omitempty"` }
func (*SignUpResponse) Descriptor ¶
func (*SignUpResponse) Descriptor() ([]byte, []int)
func (*SignUpResponse) GetErrorCode ¶
func (m *SignUpResponse) GetErrorCode() int32
func (*SignUpResponse) GetVersion ¶
func (m *SignUpResponse) GetVersion() float32
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) Reset ¶
func (m *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (m *SignUpResponse) String() string
type StartFight ¶
type StartFight struct { ErrorCode int32 `protobuf:"varint,1,opt,name=errorCode" json:"errorCode,omitempty"` Version float32 `protobuf:"fixed32,2,opt,name=version" json:"version,omitempty"` }
func (*StartFight) Descriptor ¶
func (*StartFight) Descriptor() ([]byte, []int)
func (*StartFight) GetErrorCode ¶
func (m *StartFight) GetErrorCode() int32
func (*StartFight) GetVersion ¶
func (m *StartFight) GetVersion() float32
func (*StartFight) ProtoMessage ¶
func (*StartFight) ProtoMessage()
func (*StartFight) Reset ¶
func (m *StartFight) Reset()
func (*StartFight) String ¶
func (m *StartFight) String() string
type TocChat ¶
type TocChat struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` }
func (*TocChat) Descriptor ¶
func (*TocChat) GetContent ¶
func (*TocChat) ProtoMessage ¶
func (*TocChat) ProtoMessage()
type TosChat ¶
type TosChat struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"` }
func (*TosChat) Descriptor ¶
func (*TosChat) GetContent ¶
func (*TosChat) ProtoMessage ¶
func (*TosChat) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.