MSG_Player

package
Version: v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package MSG_Player is a generated protocol buffer package.

It is generated from these files:

MSG_Player.proto

It has these top-level messages:

BasePlayerInfo_Repeat
BaseMoney_Repeat
CS_EnterServer_Req
SC_EnterServer_Rsp
CS_LeaveServer_Req
SC_LeaveServer_Rsp
CS_PlayerInfo_Req
SC_PlayerInfo_Rsp

Index

Constants

This section is empty.

Variables

View Source
var EmBaseInfo_name = map[int32]string{
	0: "baseInvalid",
	1: "Name",
	2: "Level",
	3: "HeadIcon",
	4: "DBID",
}
View Source
var EmBaseInfo_value = map[string]int32{
	"baseInvalid": 0,
	"Name":        1,
	"Level":       2,
	"HeadIcon":    3,
	"DBID":        4,
}
View Source
var EmBaseMoney_name = map[int32]string{
	0: "moneyInvalid",
	1: "Coin",
}
View Source
var EmBaseMoney_value = map[string]int32{
	"moneyInvalid": 0,
	"Coin":         1,
}
View Source
var ErrorCode_name = map[int32]string{
	0: "Invalid",
	1: "Success",
	2: "Fail",
}
View Source
var ErrorCode_value = map[string]int32{
	"Invalid": 0,
	"Success": 1,
	"Fail":    2,
}
View Source
var SUBMSG_name = map[int32]string{
	0: "Begin",
	1: "CS_EnterServer",
	2: "SC_EnterServer",
	3: "CS_LeaveServer",
	4: "SC_LeaveServer",
	5: "CS_PlayerInfo",
	6: "SC_PlayerInfo",
}
View Source
var SUBMSG_value = map[string]int32{
	"Begin":          0,
	"CS_EnterServer": 1,
	"SC_EnterServer": 2,
	"CS_LeaveServer": 3,
	"SC_LeaveServer": 4,
	"CS_PlayerInfo":  5,
	"SC_PlayerInfo":  6,
}

Functions

This section is empty.

Types

type BaseMoney_Repeat

type BaseMoney_Repeat struct {
	Coin int64 `protobuf:"varint,1,opt,name=Coin" json:"Coin,omitempty"`
}

玩家基础金币类结构

func (*BaseMoney_Repeat) Descriptor

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

func (*BaseMoney_Repeat) ProtoMessage

func (*BaseMoney_Repeat) ProtoMessage()

func (*BaseMoney_Repeat) Reset

func (m *BaseMoney_Repeat) Reset()

func (*BaseMoney_Repeat) String

func (m *BaseMoney_Repeat) String() string

type BasePlayerInfo_Repeat

type BasePlayerInfo_Repeat struct {
	Name     string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
	Level    int32  `protobuf:"varint,2,opt,name=Level" json:"Level,omitempty"`
	HeadIcon string `protobuf:"bytes,3,opt,name=HeadIcon" json:"HeadIcon,omitempty"`
	DBID     int64  `protobuf:"varint,4,opt,name=DBID" json:"DBID,omitempty"`
}

玩家基础信息结构

func (*BasePlayerInfo_Repeat) Descriptor

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

func (*BasePlayerInfo_Repeat) ProtoMessage

func (*BasePlayerInfo_Repeat) ProtoMessage()

func (*BasePlayerInfo_Repeat) Reset

func (m *BasePlayerInfo_Repeat) Reset()

func (*BasePlayerInfo_Repeat) String

func (m *BasePlayerInfo_Repeat) String() string

type CS_EnterServer_Req

type CS_EnterServer_Req struct {
}

CS_EnterServer

func (*CS_EnterServer_Req) Descriptor

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

func (*CS_EnterServer_Req) ProtoMessage

func (*CS_EnterServer_Req) ProtoMessage()

func (*CS_EnterServer_Req) Reset

func (m *CS_EnterServer_Req) Reset()

func (*CS_EnterServer_Req) String

func (m *CS_EnterServer_Req) String() string

type CS_LeaveServer_Req

type CS_LeaveServer_Req struct {
}

CS_LeaveServer

func (*CS_LeaveServer_Req) Descriptor

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

func (*CS_LeaveServer_Req) ProtoMessage

func (*CS_LeaveServer_Req) ProtoMessage()

func (*CS_LeaveServer_Req) Reset

func (m *CS_LeaveServer_Req) Reset()

func (*CS_LeaveServer_Req) String

func (m *CS_LeaveServer_Req) String() string

type CS_PlayerInfo_Req

type CS_PlayerInfo_Req struct {
}

CS_PlayerInfo

func (*CS_PlayerInfo_Req) Descriptor

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

func (*CS_PlayerInfo_Req) ProtoMessage

func (*CS_PlayerInfo_Req) ProtoMessage()

func (*CS_PlayerInfo_Req) Reset

func (m *CS_PlayerInfo_Req) Reset()

func (*CS_PlayerInfo_Req) String

func (m *CS_PlayerInfo_Req) String() string

type EmBaseInfo

type EmBaseInfo int32

玩家基础信息枚举

const (
	EmBaseInfo_baseInvalid EmBaseInfo = 0
	EmBaseInfo_Name        EmBaseInfo = 1
	EmBaseInfo_Level       EmBaseInfo = 2
	EmBaseInfo_HeadIcon    EmBaseInfo = 3
	EmBaseInfo_DBID        EmBaseInfo = 4
)

func (EmBaseInfo) EnumDescriptor

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

func (EmBaseInfo) String

func (x EmBaseInfo) String() string

type EmBaseMoney

type EmBaseMoney int32

玩家基础金币类枚举

const (
	EmBaseMoney_moneyInvalid EmBaseMoney = 0
	EmBaseMoney_Coin         EmBaseMoney = 1
)

func (EmBaseMoney) EnumDescriptor

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

func (EmBaseMoney) String

func (x EmBaseMoney) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_Invalid ErrorCode = 0
	ErrorCode_Success ErrorCode = 1
	ErrorCode_Fail    ErrorCode = 2
)

func (ErrorCode) EnumDescriptor

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

func (ErrorCode) String

func (x ErrorCode) String() string

type SC_EnterServer_Rsp

type SC_EnterServer_Rsp struct {
	Ret ErrorCode `protobuf:"varint,1,opt,name=Ret,enum=MSG_Player.ErrorCode" json:"Ret,omitempty"`
}

SC_EnterServer

func (*SC_EnterServer_Rsp) Descriptor

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

func (*SC_EnterServer_Rsp) ProtoMessage

func (*SC_EnterServer_Rsp) ProtoMessage()

func (*SC_EnterServer_Rsp) Reset

func (m *SC_EnterServer_Rsp) Reset()

func (*SC_EnterServer_Rsp) String

func (m *SC_EnterServer_Rsp) String() string

type SC_LeaveServer_Rsp

type SC_LeaveServer_Rsp struct {
}

SC_LeaveServer

func (*SC_LeaveServer_Rsp) Descriptor

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

func (*SC_LeaveServer_Rsp) ProtoMessage

func (*SC_LeaveServer_Rsp) ProtoMessage()

func (*SC_LeaveServer_Rsp) Reset

func (m *SC_LeaveServer_Rsp) Reset()

func (*SC_LeaveServer_Rsp) String

func (m *SC_LeaveServer_Rsp) String() string

type SC_PlayerInfo_Rsp

type SC_PlayerInfo_Rsp struct {
	BaseInfo  *BasePlayerInfo_Repeat `protobuf:"bytes,1,opt,name=baseInfo" json:"baseInfo,omitempty"`
	BaseMoney *BaseMoney_Repeat      `protobuf:"bytes,2,opt,name=baseMoney" json:"baseMoney,omitempty"`
	Ret       ErrorCode              `protobuf:"varint,3,opt,name=Ret,enum=MSG_Player.ErrorCode" json:"Ret,omitempty"`
}

SC_PlayerInfo

func (*SC_PlayerInfo_Rsp) Descriptor

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

func (*SC_PlayerInfo_Rsp) GetBaseInfo

func (m *SC_PlayerInfo_Rsp) GetBaseInfo() *BasePlayerInfo_Repeat

func (*SC_PlayerInfo_Rsp) GetBaseMoney

func (m *SC_PlayerInfo_Rsp) GetBaseMoney() *BaseMoney_Repeat

func (*SC_PlayerInfo_Rsp) ProtoMessage

func (*SC_PlayerInfo_Rsp) ProtoMessage()

func (*SC_PlayerInfo_Rsp) Reset

func (m *SC_PlayerInfo_Rsp) Reset()

func (*SC_PlayerInfo_Rsp) String

func (m *SC_PlayerInfo_Rsp) String() string

type SUBMSG

type SUBMSG int32

add by stefanchen server

const (
	SUBMSG_Begin          SUBMSG = 0
	SUBMSG_CS_EnterServer SUBMSG = 1
	SUBMSG_SC_EnterServer SUBMSG = 2
	SUBMSG_CS_LeaveServer SUBMSG = 3
	SUBMSG_SC_LeaveServer SUBMSG = 4
	SUBMSG_CS_PlayerInfo  SUBMSG = 5
	SUBMSG_SC_PlayerInfo  SUBMSG = 6
)

func (SUBMSG) EnumDescriptor

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

func (SUBMSG) String

func (x SUBMSG) String() string

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