msg

package
v0.0.0-...-2bc04f2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

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) Descriptor() ([]byte, []int)

func (*Login) GetAccount

func (m *Login) GetAccount() string

func (*Login) GetPassward

func (m *Login) GetPassward() string

func (*Login) ProtoMessage

func (*Login) ProtoMessage()

func (*Login) Reset

func (m *Login) Reset()

func (*Login) String

func (m *Login) String() string

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) Descriptor() ([]byte, []int)

func (*TocChat) GetContent

func (m *TocChat) GetContent() string

func (*TocChat) GetName

func (m *TocChat) GetName() string

func (*TocChat) ProtoMessage

func (*TocChat) ProtoMessage()

func (*TocChat) Reset

func (m *TocChat) Reset()

func (*TocChat) String

func (m *TocChat) String() string

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) Descriptor() ([]byte, []int)

func (*TosChat) GetContent

func (m *TosChat) GetContent() string

func (*TosChat) GetName

func (m *TosChat) GetName() string

func (*TosChat) ProtoMessage

func (*TosChat) ProtoMessage()

func (*TosChat) Reset

func (m *TosChat) Reset()

func (*TosChat) String

func (m *TosChat) String() string

Jump to

Keyboard shortcuts

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