message

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Ipacket_Stx int32 = 0x27
	Default_Ipacket_Ckx int32 = 0x72
)

Variables

View Source
var (
	Packet_CreateFactorStringMap map[string]*PacketRoute
	Packet_CreateFactorMap       map[uint32]*PacketRoute
	Packet_CrcNamesMap           map[uint32]string
)
View Source
var (
	SERVICE_name = map[int32]string{
		0: "NONE",
		1: "CLIENT",
		2: "GATE",
		3: "GM",
		4: "GAME",
		5: "ZONE",
		6: "DB",
	}
	SERVICE_value = map[string]int32{
		"NONE":   0,
		"CLIENT": 1,
		"GATE":   2,
		"GM":     3,
		"GAME":   4,
		"ZONE":   5,
		"DB":     6,
	}
)

Enum value maps for SERVICE.

View Source
var (
	CHAT_name = map[int32]string{
		0: "MSG_TYPE_WORLD",
		1: "MSG_TYPE_PRIVATE",
		2: "MSG_TYPE_ORG",
		3: "MSG_TYPE_COUNT",
	}
	CHAT_value = map[string]int32{
		"MSG_TYPE_WORLD":   0,
		"MSG_TYPE_PRIVATE": 1,
		"MSG_TYPE_ORG":     2,
		"MSG_TYPE_COUNT":   3,
	}
)

Enum value maps for CHAT.

View Source
var File_client_proto protoreflect.FileDescriptor
View Source
var File_message_proto protoreflect.FileDescriptor

Functions

func Decode

func Decode(buff []byte) (uint32, []byte)

func Encode

func Encode(packet proto.Message) []byte

func GetMessageName

func GetMessageName(packet proto.Message) string

func GetPakcetName

func GetPakcetName(packetId uint32) string

func Init

func Init()

网关防火墙

func InitClient

func InitClient()

client消息回调

func RegisterPacket

func RegisterPacket(packet proto.Message, funcName string)

func UnmarshalText

func UnmarshalText(packet proto.Message, packetBuf []byte) error

Types

type CHAT

type CHAT int32
const (
	CHAT_MSG_TYPE_WORLD   CHAT = 0
	CHAT_MSG_TYPE_PRIVATE CHAT = 1
	CHAT_MSG_TYPE_ORG     CHAT = 2
	CHAT_MSG_TYPE_COUNT   CHAT = 3
)

func (CHAT) Descriptor

func (CHAT) Descriptor() protoreflect.EnumDescriptor

func (CHAT) Enum

func (x CHAT) Enum() *CHAT

func (CHAT) EnumDescriptor deprecated

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

Deprecated: Use CHAT.Descriptor instead.

func (CHAT) Number

func (x CHAT) Number() protoreflect.EnumNumber

func (CHAT) String

func (x CHAT) String() string

func (CHAT) Type

func (CHAT) Type() protoreflect.EnumType

type C_Z_LoginCopyMap

type C_Z_LoginCopyMap struct {
	PacketHead *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	DataId     int32    `protobuf:"varint,2,opt,name=DataId,proto3" json:"DataId,omitempty"`
	// contains filtered or unexported fields
}

func (*C_Z_LoginCopyMap) Descriptor deprecated

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

Deprecated: Use C_Z_LoginCopyMap.ProtoReflect.Descriptor instead.

func (*C_Z_LoginCopyMap) GetDataId

func (x *C_Z_LoginCopyMap) GetDataId() int32

func (*C_Z_LoginCopyMap) GetPacketHead

func (x *C_Z_LoginCopyMap) GetPacketHead() *Ipacket

func (*C_Z_LoginCopyMap) ProtoMessage

func (*C_Z_LoginCopyMap) ProtoMessage()

func (*C_Z_LoginCopyMap) ProtoReflect

func (x *C_Z_LoginCopyMap) ProtoReflect() protoreflect.Message

func (*C_Z_LoginCopyMap) Reset

func (x *C_Z_LoginCopyMap) Reset()

func (*C_Z_LoginCopyMap) String

func (x *C_Z_LoginCopyMap) String() string

type C_Z_Move

type C_Z_Move struct {
	PacketHead *Ipacket       `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	Move       *C_Z_Move_Move `protobuf:"bytes,2,opt,name=move,proto3" json:"move,omitempty"`
	// contains filtered or unexported fields
}

移动包

func (*C_Z_Move) Descriptor deprecated

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

Deprecated: Use C_Z_Move.ProtoReflect.Descriptor instead.

func (*C_Z_Move) GetMove

func (x *C_Z_Move) GetMove() *C_Z_Move_Move

func (*C_Z_Move) GetPacketHead

func (x *C_Z_Move) GetPacketHead() *Ipacket

func (*C_Z_Move) ProtoMessage

func (*C_Z_Move) ProtoMessage()

func (*C_Z_Move) ProtoReflect

func (x *C_Z_Move) ProtoReflect() protoreflect.Message

func (*C_Z_Move) Reset

func (x *C_Z_Move) Reset()

func (*C_Z_Move) String

func (x *C_Z_Move) String() string

type C_Z_Move_Move

type C_Z_Move_Move struct {
	Mode   int32                 `protobuf:"varint,1,opt,name=Mode,proto3" json:"Mode,omitempty"`
	Normal *C_Z_Move_Move_Normal `protobuf:"bytes,2,opt,name=normal,proto3" json:"normal,omitempty"`
	// contains filtered or unexported fields
}

func (*C_Z_Move_Move) Descriptor deprecated

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

Deprecated: Use C_Z_Move_Move.ProtoReflect.Descriptor instead.

func (*C_Z_Move_Move) GetMode

func (x *C_Z_Move_Move) GetMode() int32

func (*C_Z_Move_Move) GetNormal

func (x *C_Z_Move_Move) GetNormal() *C_Z_Move_Move_Normal

func (*C_Z_Move_Move) ProtoMessage

func (*C_Z_Move_Move) ProtoMessage()

func (*C_Z_Move_Move) ProtoReflect

func (x *C_Z_Move_Move) ProtoReflect() protoreflect.Message

func (*C_Z_Move_Move) Reset

func (x *C_Z_Move_Move) Reset()

func (*C_Z_Move_Move) String

func (x *C_Z_Move_Move) String() string

type C_Z_Move_Move_Normal

type C_Z_Move_Move_Normal struct {
	Pos      *Point3F `protobuf:"bytes,1,opt,name=Pos,proto3" json:"Pos,omitempty"`
	Yaw      float32  `protobuf:"fixed32,2,opt,name=Yaw,proto3" json:"Yaw,omitempty"`
	Duration float32  `protobuf:"fixed32,3,opt,name=Duration,proto3" json:"Duration,omitempty"`
	// contains filtered or unexported fields
}

func (*C_Z_Move_Move_Normal) Descriptor deprecated

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

Deprecated: Use C_Z_Move_Move_Normal.ProtoReflect.Descriptor instead.

func (*C_Z_Move_Move_Normal) GetDuration

func (x *C_Z_Move_Move_Normal) GetDuration() float32

func (*C_Z_Move_Move_Normal) GetPos

func (x *C_Z_Move_Move_Normal) GetPos() *Point3F

func (*C_Z_Move_Move_Normal) GetYaw

func (x *C_Z_Move_Move_Normal) GetYaw() float32

func (*C_Z_Move_Move_Normal) ProtoMessage

func (*C_Z_Move_Move_Normal) ProtoMessage()

func (*C_Z_Move_Move_Normal) ProtoReflect

func (x *C_Z_Move_Move_Normal) ProtoReflect() protoreflect.Message

func (*C_Z_Move_Move_Normal) Reset

func (x *C_Z_Move_Move_Normal) Reset()

func (*C_Z_Move_Move_Normal) String

func (x *C_Z_Move_Move_Normal) String() string

type C_Z_Skill

type C_Z_Skill struct {
	PacketHead *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	SkillId    int32    `protobuf:"varint,2,opt,name=SkillId,proto3" json:"SkillId,omitempty"`
	TargetId   int64    `protobuf:"varint,3,opt,name=TargetId,proto3" json:"TargetId,omitempty"`
	// contains filtered or unexported fields
}

skill

func (*C_Z_Skill) Descriptor deprecated

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

Deprecated: Use C_Z_Skill.ProtoReflect.Descriptor instead.

func (*C_Z_Skill) GetPacketHead

func (x *C_Z_Skill) GetPacketHead() *Ipacket

func (*C_Z_Skill) GetSkillId

func (x *C_Z_Skill) GetSkillId() int32

func (*C_Z_Skill) GetTargetId

func (x *C_Z_Skill) GetTargetId() int64

func (*C_Z_Skill) ProtoMessage

func (*C_Z_Skill) ProtoMessage()

func (*C_Z_Skill) ProtoReflect

func (x *C_Z_Skill) ProtoReflect() protoreflect.Message

func (*C_Z_Skill) Reset

func (x *C_Z_Skill) Reset()

func (*C_Z_Skill) String

func (x *C_Z_Skill) String() string

type ChatMessageRequest

type ChatMessageRequest struct {
	PacketHead  *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	Sender      int64    `protobuf:"varint,2,opt,name=Sender,proto3" json:"Sender,omitempty"`
	Recver      int64    `protobuf:"varint,3,opt,name=Recver,proto3" json:"Recver,omitempty"`
	MessageType int32    `protobuf:"varint,4,opt,name=MessageType,proto3" json:"MessageType,omitempty"`
	Message     string   `protobuf:"bytes,5,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

聊天

func (*ChatMessageRequest) Descriptor deprecated

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

Deprecated: Use ChatMessageRequest.ProtoReflect.Descriptor instead.

func (*ChatMessageRequest) GetMessage

func (x *ChatMessageRequest) GetMessage() string

func (*ChatMessageRequest) GetMessageType

func (x *ChatMessageRequest) GetMessageType() int32

func (*ChatMessageRequest) GetPacketHead

func (x *ChatMessageRequest) GetPacketHead() *Ipacket

func (*ChatMessageRequest) GetRecver

func (x *ChatMessageRequest) GetRecver() int64

func (*ChatMessageRequest) GetSender

func (x *ChatMessageRequest) GetSender() int64

func (*ChatMessageRequest) ProtoMessage

func (*ChatMessageRequest) ProtoMessage()

func (*ChatMessageRequest) ProtoReflect

func (x *ChatMessageRequest) ProtoReflect() protoreflect.Message

func (*ChatMessageRequest) Reset

func (x *ChatMessageRequest) Reset()

func (*ChatMessageRequest) String

func (x *ChatMessageRequest) String() string

type ChatMessageResponse

type ChatMessageResponse struct {
	PacketHead  *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	Sender      int64    `protobuf:"varint,2,opt,name=Sender,proto3" json:"Sender,omitempty"`
	SenderName  string   `protobuf:"bytes,3,opt,name=SenderName,proto3" json:"SenderName,omitempty"`
	Recver      int64    `protobuf:"varint,4,opt,name=Recver,proto3" json:"Recver,omitempty"`
	RecverName  string   `protobuf:"bytes,5,opt,name=RecverName,proto3" json:"RecverName,omitempty"`
	MessageType int32    `protobuf:"varint,6,opt,name=MessageType,proto3" json:"MessageType,omitempty"`
	Message     string   `protobuf:"bytes,7,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*ChatMessageResponse) Descriptor deprecated

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

Deprecated: Use ChatMessageResponse.ProtoReflect.Descriptor instead.

func (*ChatMessageResponse) GetMessage

func (x *ChatMessageResponse) GetMessage() string

func (*ChatMessageResponse) GetMessageType

func (x *ChatMessageResponse) GetMessageType() int32

func (*ChatMessageResponse) GetPacketHead

func (x *ChatMessageResponse) GetPacketHead() *Ipacket

func (*ChatMessageResponse) GetRecver

func (x *ChatMessageResponse) GetRecver() int64

func (*ChatMessageResponse) GetRecverName

func (x *ChatMessageResponse) GetRecverName() string

func (*ChatMessageResponse) GetSender

func (x *ChatMessageResponse) GetSender() int64

func (*ChatMessageResponse) GetSenderName

func (x *ChatMessageResponse) GetSenderName() string

func (*ChatMessageResponse) ProtoMessage

func (*ChatMessageResponse) ProtoMessage()

func (*ChatMessageResponse) ProtoReflect

func (x *ChatMessageResponse) ProtoReflect() protoreflect.Message

func (*ChatMessageResponse) Reset

func (x *ChatMessageResponse) Reset()

func (*ChatMessageResponse) String

func (x *ChatMessageResponse) String() string

type CreatePlayerRequest

type CreatePlayerRequest struct {
	PacketHead *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	PlayerName string   `protobuf:"bytes,2,opt,name=PlayerName,proto3" json:"PlayerName,omitempty"`
	Sex        int32    `protobuf:"varint,3,opt,name=Sex,proto3" json:"Sex,omitempty"`
	// contains filtered or unexported fields
}

创角

func (*CreatePlayerRequest) Descriptor deprecated

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

Deprecated: Use CreatePlayerRequest.ProtoReflect.Descriptor instead.

func (*CreatePlayerRequest) GetPacketHead

func (x *CreatePlayerRequest) GetPacketHead() *Ipacket

func (*CreatePlayerRequest) GetPlayerName

func (x *CreatePlayerRequest) GetPlayerName() string

func (*CreatePlayerRequest) GetSex

func (x *CreatePlayerRequest) GetSex() int32

func (*CreatePlayerRequest) ProtoMessage

func (*CreatePlayerRequest) ProtoMessage()

func (*CreatePlayerRequest) ProtoReflect

func (x *CreatePlayerRequest) ProtoReflect() protoreflect.Message

func (*CreatePlayerRequest) Reset

func (x *CreatePlayerRequest) Reset()

func (*CreatePlayerRequest) String

func (x *CreatePlayerRequest) String() string

type HeardPacket

type HeardPacket struct {
	// contains filtered or unexported fields
}

心跳包

func (*HeardPacket) Descriptor deprecated

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

Deprecated: Use HeardPacket.ProtoReflect.Descriptor instead.

func (*HeardPacket) ProtoMessage

func (*HeardPacket) ProtoMessage()

func (*HeardPacket) ProtoReflect

func (x *HeardPacket) ProtoReflect() protoreflect.Message

func (*HeardPacket) Reset

func (x *HeardPacket) Reset()

func (*HeardPacket) String

func (x *HeardPacket) String() string

type Ipacket

type Ipacket struct {
	Stx            int32   `protobuf:"varint,1,opt,name=Stx,proto3" json:"Stx,omitempty"`
	DestServerType SERVICE `protobuf:"varint,2,opt,name=DestServerType,proto3,enum=message.SERVICE" json:"DestServerType,omitempty"`
	Ckx            int32   `protobuf:"varint,3,opt,name=Ckx,proto3" json:"Ckx,omitempty"`
	Id             int64   `protobuf:"varint,4,opt,name=Id,proto3" json:"Id,omitempty"`
	// contains filtered or unexported fields
}

客户端包头

func BuildPacketHead

func BuildPacketHead(id int64, destservertype rpc.SERVICE) *Ipacket

func (*Ipacket) Descriptor deprecated

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

Deprecated: Use Ipacket.ProtoReflect.Descriptor instead.

func (*Ipacket) GetCkx

func (x *Ipacket) GetCkx() int32

func (*Ipacket) GetDestServerType

func (x *Ipacket) GetDestServerType() SERVICE

func (*Ipacket) GetId

func (x *Ipacket) GetId() int64

func (*Ipacket) GetStx

func (x *Ipacket) GetStx() int32

func (*Ipacket) ProtoMessage

func (*Ipacket) ProtoMessage()

func (*Ipacket) ProtoReflect

func (x *Ipacket) ProtoReflect() protoreflect.Message

func (*Ipacket) Reset

func (x *Ipacket) Reset()

func (*Ipacket) String

func (x *Ipacket) String() string

type LoginAccountRequest

type LoginAccountRequest struct {
	PacketHead  *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	AccountName string   `protobuf:"bytes,2,opt,name=AccountName,proto3" json:"AccountName,omitempty"`
	Password    string   `protobuf:"bytes,3,opt,name=Password,proto3" json:"Password,omitempty"`
	BuildNo     string   `protobuf:"bytes,5,opt,name=BuildNo,proto3" json:"BuildNo,omitempty"`
	Key         int64    `protobuf:"varint,6,opt,name=Key,proto3" json:"Key,omitempty"` //uint32 Crc = 7;
	// contains filtered or unexported fields
}

登录账号

func (*LoginAccountRequest) Descriptor deprecated

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

Deprecated: Use LoginAccountRequest.ProtoReflect.Descriptor instead.

func (*LoginAccountRequest) GetAccountName

func (x *LoginAccountRequest) GetAccountName() string

func (*LoginAccountRequest) GetBuildNo

func (x *LoginAccountRequest) GetBuildNo() string

func (*LoginAccountRequest) GetKey

func (x *LoginAccountRequest) GetKey() int64

func (*LoginAccountRequest) GetPacketHead

func (x *LoginAccountRequest) GetPacketHead() *Ipacket

func (*LoginAccountRequest) GetPassword

func (x *LoginAccountRequest) GetPassword() string

func (*LoginAccountRequest) ProtoMessage

func (*LoginAccountRequest) ProtoMessage()

func (*LoginAccountRequest) ProtoReflect

func (x *LoginAccountRequest) ProtoReflect() protoreflect.Message

func (*LoginAccountRequest) Reset

func (x *LoginAccountRequest) Reset()

func (*LoginAccountRequest) String

func (x *LoginAccountRequest) String() string

type LoginAccountResponse

type LoginAccountResponse struct {
	PacketHead  *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	Error       int32    `protobuf:"varint,2,opt,name=Error,proto3" json:"Error,omitempty"`
	AccountName string   `protobuf:"bytes,4,opt,name=AccountName,proto3" json:"AccountName,omitempty"`
	// contains filtered or unexported fields
}

登录账号反馈

func (*LoginAccountResponse) Descriptor deprecated

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

Deprecated: Use LoginAccountResponse.ProtoReflect.Descriptor instead.

func (*LoginAccountResponse) GetAccountName

func (x *LoginAccountResponse) GetAccountName() string

func (*LoginAccountResponse) GetError

func (x *LoginAccountResponse) GetError() int32

func (*LoginAccountResponse) GetPacketHead

func (x *LoginAccountResponse) GetPacketHead() *Ipacket

func (*LoginAccountResponse) ProtoMessage

func (*LoginAccountResponse) ProtoMessage()

func (*LoginAccountResponse) ProtoReflect

func (x *LoginAccountResponse) ProtoReflect() protoreflect.Message

func (*LoginAccountResponse) Reset

func (x *LoginAccountResponse) Reset()

func (*LoginAccountResponse) String

func (x *LoginAccountResponse) String() string

type LoginPlayerRequset

type LoginPlayerRequset struct {
	PacketHead *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	PlayerId   int64    `protobuf:"varint,2,opt,name=PlayerId,proto3" json:"PlayerId,omitempty"`
	Key        int64    `protobuf:"varint,3,opt,name=Key,proto3" json:"Key,omitempty"`
	// contains filtered or unexported fields
}

登录游戏

func (*LoginPlayerRequset) Descriptor deprecated

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

Deprecated: Use LoginPlayerRequset.ProtoReflect.Descriptor instead.

func (*LoginPlayerRequset) GetKey

func (x *LoginPlayerRequset) GetKey() int64

func (*LoginPlayerRequset) GetPacketHead

func (x *LoginPlayerRequset) GetPacketHead() *Ipacket

func (*LoginPlayerRequset) GetPlayerId

func (x *LoginPlayerRequset) GetPlayerId() int64

func (*LoginPlayerRequset) ProtoMessage

func (*LoginPlayerRequset) ProtoMessage()

func (*LoginPlayerRequset) ProtoReflect

func (x *LoginPlayerRequset) ProtoReflect() protoreflect.Message

func (*LoginPlayerRequset) Reset

func (x *LoginPlayerRequset) Reset()

func (*LoginPlayerRequset) String

func (x *LoginPlayerRequset) String() string

type Packet

type Packet interface {
	GetPacketHead() *Ipacket
}

获取包头

type PacketRoute

type PacketRoute struct {
	Func     func() proto.Message
	FuncName string
}

func GetPakcetRoute

func GetPakcetRoute(packetId uint32) *PacketRoute

type PlayerData

type PlayerData struct {
	PlayerID   int64  `protobuf:"varint,1,opt,name=PlayerID,proto3" json:"PlayerID,omitempty"`
	PlayerName string `protobuf:"bytes,2,opt,name=PlayerName,proto3" json:"PlayerName,omitempty"`
	PlayerGold int32  `protobuf:"varint,3,opt,name=PlayerGold,proto3" json:"PlayerGold,omitempty"`
	// contains filtered or unexported fields
}

func (*PlayerData) Descriptor deprecated

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

Deprecated: Use PlayerData.ProtoReflect.Descriptor instead.

func (*PlayerData) GetPlayerGold

func (x *PlayerData) GetPlayerGold() int32

func (*PlayerData) GetPlayerID

func (x *PlayerData) GetPlayerID() int64

func (*PlayerData) GetPlayerName

func (x *PlayerData) GetPlayerName() string

func (*PlayerData) ProtoMessage

func (*PlayerData) ProtoMessage()

func (*PlayerData) ProtoReflect

func (x *PlayerData) ProtoReflect() protoreflect.Message

func (*PlayerData) Reset

func (x *PlayerData) Reset()

func (*PlayerData) String

func (x *PlayerData) String() string

type Point3F

type Point3F struct {
	X float32 `protobuf:"fixed32,1,opt,name=X,proto3" json:"X,omitempty"`
	Y float32 `protobuf:"fixed32,2,opt,name=Y,proto3" json:"Y,omitempty"`
	Z float32 `protobuf:"fixed32,3,opt,name=Z,proto3" json:"Z,omitempty"`
	// contains filtered or unexported fields
}

point3F

func (*Point3F) Descriptor deprecated

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

Deprecated: Use Point3F.ProtoReflect.Descriptor instead.

func (*Point3F) GetX

func (x *Point3F) GetX() float32

func (*Point3F) GetY

func (x *Point3F) GetY() float32

func (*Point3F) GetZ

func (x *Point3F) GetZ() float32

func (*Point3F) ProtoMessage

func (*Point3F) ProtoMessage()

func (*Point3F) ProtoReflect

func (x *Point3F) ProtoReflect() protoreflect.Message

func (*Point3F) Reset

func (x *Point3F) Reset()

func (*Point3F) String

func (x *Point3F) String() string

type SERVICE

type SERVICE int32

服务器类型

const (
	SERVICE_NONE   SERVICE = 0
	SERVICE_CLIENT SERVICE = 1
	SERVICE_GATE   SERVICE = 2 //网关,转发服务
	SERVICE_GM     SERVICE = 3 //gamemgr
	SERVICE_GAME   SERVICE = 4 //game
	SERVICE_ZONE   SERVICE = 5 //地图
	SERVICE_DB     SERVICE = 6 //db
)

func (SERVICE) Descriptor

func (SERVICE) Descriptor() protoreflect.EnumDescriptor

func (SERVICE) Enum

func (x SERVICE) Enum() *SERVICE

func (SERVICE) EnumDescriptor deprecated

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

Deprecated: Use SERVICE.Descriptor instead.

func (SERVICE) Number

func (x SERVICE) Number() protoreflect.EnumNumber

func (SERVICE) String

func (x SERVICE) String() string

func (SERVICE) Type

func (SERVICE) Type() protoreflect.EnumType

type SelectPlayerResponse

type SelectPlayerResponse struct {
	PacketHead *Ipacket      `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	AccountId  int64         `protobuf:"varint,2,opt,name=AccountId,proto3" json:"AccountId,omitempty"`
	Key        int64         `protobuf:"varint,3,opt,name=Key,proto3" json:"Key,omitempty"`
	PlayerData []*PlayerData `protobuf:"bytes,5,rep,name=PlayerData,proto3" json:"PlayerData,omitempty"`
	// contains filtered or unexported fields
}

选角反馈

func (*SelectPlayerResponse) Descriptor deprecated

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

Deprecated: Use SelectPlayerResponse.ProtoReflect.Descriptor instead.

func (*SelectPlayerResponse) GetAccountId

func (x *SelectPlayerResponse) GetAccountId() int64

func (*SelectPlayerResponse) GetKey

func (x *SelectPlayerResponse) GetKey() int64

func (*SelectPlayerResponse) GetPacketHead

func (x *SelectPlayerResponse) GetPacketHead() *Ipacket

func (*SelectPlayerResponse) GetPlayerData

func (x *SelectPlayerResponse) GetPlayerData() []*PlayerData

func (*SelectPlayerResponse) ProtoMessage

func (*SelectPlayerResponse) ProtoMessage()

func (*SelectPlayerResponse) ProtoReflect

func (x *SelectPlayerResponse) ProtoReflect() protoreflect.Message

func (*SelectPlayerResponse) Reset

func (x *SelectPlayerResponse) Reset()

func (*SelectPlayerResponse) String

func (x *SelectPlayerResponse) String() string

type W_C_Test

type W_C_Test struct {
	Recv []int32 `protobuf:"varint,1,rep,packed,name=Recv,proto3" json:"Recv,omitempty"`
	// contains filtered or unexported fields
}

func (*W_C_Test) Descriptor deprecated

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

Deprecated: Use W_C_Test.ProtoReflect.Descriptor instead.

func (*W_C_Test) GetRecv

func (x *W_C_Test) GetRecv() []int32

func (*W_C_Test) ProtoMessage

func (*W_C_Test) ProtoMessage()

func (*W_C_Test) ProtoReflect

func (x *W_C_Test) ProtoReflect() protoreflect.Message

func (*W_C_Test) Reset

func (x *W_C_Test) Reset()

func (*W_C_Test) String

func (x *W_C_Test) String() string

type Z_C_ENTITY

type Z_C_ENTITY struct {
	PacketHead *Ipacket             `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	EntityInfo []*Z_C_ENTITY_Entity `protobuf:"bytes,2,rep,name=EntityInfo,proto3" json:"EntityInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY) GetEntityInfo

func (x *Z_C_ENTITY) GetEntityInfo() []*Z_C_ENTITY_Entity

func (*Z_C_ENTITY) GetPacketHead

func (x *Z_C_ENTITY) GetPacketHead() *Ipacket

func (*Z_C_ENTITY) ProtoMessage

func (*Z_C_ENTITY) ProtoMessage()

func (*Z_C_ENTITY) ProtoReflect

func (x *Z_C_ENTITY) ProtoReflect() protoreflect.Message

func (*Z_C_ENTITY) Reset

func (x *Z_C_ENTITY) Reset()

func (*Z_C_ENTITY) String

func (x *Z_C_ENTITY) String() string

type Z_C_ENTITY_Entity

type Z_C_ENTITY_Entity struct {
	Id    int64                        `protobuf:"varint,1,opt,name=Id,proto3" json:"Id,omitempty"`      //唯一id
	Data  *Z_C_ENTITY_Entity_DataMask  `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"`   //初始化信息
	Move  *Z_C_ENTITY_Entity_MoveMask  `protobuf:"bytes,3,opt,name=Move,proto3" json:"Move,omitempty"`   //移动
	Stats *Z_C_ENTITY_Entity_StatsMask `protobuf:"bytes,4,opt,name=Stats,proto3" json:"Stats,omitempty"` //基础属性
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity) GetData

func (*Z_C_ENTITY_Entity) GetId

func (x *Z_C_ENTITY_Entity) GetId() int64

func (*Z_C_ENTITY_Entity) GetMove

func (*Z_C_ENTITY_Entity) GetStats

func (*Z_C_ENTITY_Entity) ProtoMessage

func (*Z_C_ENTITY_Entity) ProtoMessage()

func (*Z_C_ENTITY_Entity) ProtoReflect

func (x *Z_C_ENTITY_Entity) ProtoReflect() protoreflect.Message

func (*Z_C_ENTITY_Entity) Reset

func (x *Z_C_ENTITY_Entity) Reset()

func (*Z_C_ENTITY_Entity) String

func (x *Z_C_ENTITY_Entity) String() string

type Z_C_ENTITY_Entity_DataMask

type Z_C_ENTITY_Entity_DataMask struct {
	Type       int32                                     `protobuf:"varint,1,opt,name=Type,proto3" json:"Type,omitempty"`             //类型,player(9),npc(5)
	RemoveFlag bool                                      `protobuf:"varint,2,opt,name=RemoveFlag,proto3" json:"RemoveFlag,omitempty"` //销毁状态
	NpcData    *Z_C_ENTITY_Entity_DataMask_NpcDataMask   `protobuf:"bytes,3,opt,name=NpcData,proto3" json:"NpcData,omitempty"`        //npc初始信息
	SpellData  *Z_C_ENTITY_Entity_DataMask_SpellDataMask `protobuf:"bytes,4,opt,name=SpellData,proto3" json:"SpellData,omitempty"`    //effect初始信息
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity_DataMask) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity_DataMask.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity_DataMask) GetNpcData

func (*Z_C_ENTITY_Entity_DataMask) GetRemoveFlag

func (x *Z_C_ENTITY_Entity_DataMask) GetRemoveFlag() bool

func (*Z_C_ENTITY_Entity_DataMask) GetSpellData

func (*Z_C_ENTITY_Entity_DataMask) GetType

func (x *Z_C_ENTITY_Entity_DataMask) GetType() int32

func (*Z_C_ENTITY_Entity_DataMask) ProtoMessage

func (*Z_C_ENTITY_Entity_DataMask) ProtoMessage()

func (*Z_C_ENTITY_Entity_DataMask) ProtoReflect

func (*Z_C_ENTITY_Entity_DataMask) Reset

func (x *Z_C_ENTITY_Entity_DataMask) Reset()

func (*Z_C_ENTITY_Entity_DataMask) String

func (x *Z_C_ENTITY_Entity_DataMask) String() string

type Z_C_ENTITY_Entity_DataMask_NpcDataMask

type Z_C_ENTITY_Entity_DataMask_NpcDataMask struct {
	DataId int32 `protobuf:"varint,1,opt,name=DataId,proto3" json:"DataId,omitempty"` //模板id
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity_DataMask_NpcDataMask.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) GetDataId

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) ProtoMessage

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) ProtoReflect

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) Reset

func (*Z_C_ENTITY_Entity_DataMask_NpcDataMask) String

type Z_C_ENTITY_Entity_DataMask_SpellDataMask

type Z_C_ENTITY_Entity_DataMask_SpellDataMask struct {
	DataId   int32 `protobuf:"varint,1,opt,name=DataId,proto3" json:"DataId,omitempty"`     //特效id
	LifeTime int32 `protobuf:"varint,2,opt,name=LifeTime,proto3" json:"LifeTime,omitempty"` //存在事件
	FlySpeed int32 `protobuf:"varint,3,opt,name=FlySpeed,proto3" json:"FlySpeed,omitempty"` //飞行速度
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity_DataMask_SpellDataMask.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) GetDataId

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) GetFlySpeed

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) GetLifeTime

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) ProtoMessage

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) ProtoReflect

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) Reset

func (*Z_C_ENTITY_Entity_DataMask_SpellDataMask) String

type Z_C_ENTITY_Entity_MoveMask

type Z_C_ENTITY_Entity_MoveMask struct {
	Pos             *Point3F `protobuf:"bytes,1,opt,name=Pos,proto3" json:"Pos,omitempty"`
	Rotation        float32  `protobuf:"fixed32,2,opt,name=Rotation,proto3" json:"Rotation,omitempty"`
	ForceUpdateFlag bool     `protobuf:"varint,3,opt,name=ForceUpdateFlag,proto3" json:"ForceUpdateFlag,omitempty"` //强制拉回
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity_MoveMask) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity_MoveMask.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity_MoveMask) GetForceUpdateFlag

func (x *Z_C_ENTITY_Entity_MoveMask) GetForceUpdateFlag() bool

func (*Z_C_ENTITY_Entity_MoveMask) GetPos

func (x *Z_C_ENTITY_Entity_MoveMask) GetPos() *Point3F

func (*Z_C_ENTITY_Entity_MoveMask) GetRotation

func (x *Z_C_ENTITY_Entity_MoveMask) GetRotation() float32

func (*Z_C_ENTITY_Entity_MoveMask) ProtoMessage

func (*Z_C_ENTITY_Entity_MoveMask) ProtoMessage()

func (*Z_C_ENTITY_Entity_MoveMask) ProtoReflect

func (*Z_C_ENTITY_Entity_MoveMask) Reset

func (x *Z_C_ENTITY_Entity_MoveMask) Reset()

func (*Z_C_ENTITY_Entity_MoveMask) String

func (x *Z_C_ENTITY_Entity_MoveMask) String() string

type Z_C_ENTITY_Entity_StatsMask

type Z_C_ENTITY_Entity_StatsMask struct {
	HP                int32 `protobuf:"varint,1,opt,name=HP,proto3" json:"HP,omitempty"`                                // 生命
	MP                int32 `protobuf:"varint,2,opt,name=MP,proto3" json:"MP,omitempty"`                                // 真气
	MaxHP             int32 `protobuf:"varint,3,opt,name=MaxHP,proto3" json:"MaxHP,omitempty"`                          // 最大生命
	MaxMP             int32 `protobuf:"varint,4,opt,name=MaxMP,proto3" json:"MaxMP,omitempty"`                          // 最大真气
	PhyDamage         int32 `protobuf:"varint,5,opt,name=PhyDamage,proto3" json:"PhyDamage,omitempty"`                  // 物理伤害
	PhyDefence        int32 `protobuf:"varint,6,opt,name=PhyDefence,proto3" json:"PhyDefence,omitempty"`                // 物理防御
	SplDamage         int32 `protobuf:"varint,7,opt,name=SplDamage,proto3" json:"SplDamage,omitempty"`                  // 法术伤害
	SplDefence        int32 `protobuf:"varint,8,opt,name=SplDefence,proto3" json:"SplDefence,omitempty"`                // 法术防御
	Heal              int32 `protobuf:"varint,9,opt,name=Heal,proto3" json:"Heal,omitempty"`                            // 治疗
	CriticalTimes     int32 `protobuf:"varint,10,opt,name=CriticalTimes,proto3" json:"CriticalTimes,omitempty"`         // 暴击全局百分比伤害倍数
	Critical          int32 `protobuf:"varint,11,opt,name=Critical,proto3" json:"Critical,omitempty"`                   // 暴击全局百分比几率
	AntiCriticalTimes int32 `protobuf:"varint,12,opt,name=AntiCriticalTimes,proto3" json:"AntiCriticalTimes,omitempty"` // 抗暴击全局百分比伤害倍数
	AntiCritical      int32 `protobuf:"varint,13,opt,name=AntiCritical,proto3" json:"AntiCritical,omitempty"`           // 防暴击全局百分比几率
	Dodge             int32 `protobuf:"varint,14,opt,name=Dodge,proto3" json:"Dodge,omitempty"`                         // 闪避全局百分比几率
	Hit               int32 `protobuf:"varint,15,opt,name=Hit,proto3" json:"Hit,omitempty"`                             // 命中全局百分比几率
	// contains filtered or unexported fields
}

func (*Z_C_ENTITY_Entity_StatsMask) Descriptor deprecated

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

Deprecated: Use Z_C_ENTITY_Entity_StatsMask.ProtoReflect.Descriptor instead.

func (*Z_C_ENTITY_Entity_StatsMask) GetAntiCritical

func (x *Z_C_ENTITY_Entity_StatsMask) GetAntiCritical() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetAntiCriticalTimes

func (x *Z_C_ENTITY_Entity_StatsMask) GetAntiCriticalTimes() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetCritical

func (x *Z_C_ENTITY_Entity_StatsMask) GetCritical() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetCriticalTimes

func (x *Z_C_ENTITY_Entity_StatsMask) GetCriticalTimes() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetDodge

func (x *Z_C_ENTITY_Entity_StatsMask) GetDodge() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetHP

func (*Z_C_ENTITY_Entity_StatsMask) GetHeal

func (x *Z_C_ENTITY_Entity_StatsMask) GetHeal() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetHit

func (x *Z_C_ENTITY_Entity_StatsMask) GetHit() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetMP

func (*Z_C_ENTITY_Entity_StatsMask) GetMaxHP

func (x *Z_C_ENTITY_Entity_StatsMask) GetMaxHP() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetMaxMP

func (x *Z_C_ENTITY_Entity_StatsMask) GetMaxMP() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetPhyDamage

func (x *Z_C_ENTITY_Entity_StatsMask) GetPhyDamage() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetPhyDefence

func (x *Z_C_ENTITY_Entity_StatsMask) GetPhyDefence() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetSplDamage

func (x *Z_C_ENTITY_Entity_StatsMask) GetSplDamage() int32

func (*Z_C_ENTITY_Entity_StatsMask) GetSplDefence

func (x *Z_C_ENTITY_Entity_StatsMask) GetSplDefence() int32

func (*Z_C_ENTITY_Entity_StatsMask) ProtoMessage

func (*Z_C_ENTITY_Entity_StatsMask) ProtoMessage()

func (*Z_C_ENTITY_Entity_StatsMask) ProtoReflect

func (*Z_C_ENTITY_Entity_StatsMask) Reset

func (x *Z_C_ENTITY_Entity_StatsMask) Reset()

func (*Z_C_ENTITY_Entity_StatsMask) String

func (x *Z_C_ENTITY_Entity_StatsMask) String() string

type Z_C_LoginMap

type Z_C_LoginMap struct {
	PacketHead *Ipacket `protobuf:"bytes,1,opt,name=PacketHead,proto3" json:"PacketHead,omitempty"`
	Id         int64    `protobuf:"varint,2,opt,name=Id,proto3" json:"Id,omitempty"`
	Pos        *Point3F `protobuf:"bytes,3,opt,name=Pos,proto3" json:"Pos,omitempty"`
	Rotation   float32  `protobuf:"fixed32,4,opt,name=Rotation,proto3" json:"Rotation,omitempty"`
	// contains filtered or unexported fields
}

func (*Z_C_LoginMap) Descriptor deprecated

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

Deprecated: Use Z_C_LoginMap.ProtoReflect.Descriptor instead.

func (*Z_C_LoginMap) GetId

func (x *Z_C_LoginMap) GetId() int64

func (*Z_C_LoginMap) GetPacketHead

func (x *Z_C_LoginMap) GetPacketHead() *Ipacket

func (*Z_C_LoginMap) GetPos

func (x *Z_C_LoginMap) GetPos() *Point3F

func (*Z_C_LoginMap) GetRotation

func (x *Z_C_LoginMap) GetRotation() float32

func (*Z_C_LoginMap) ProtoMessage

func (*Z_C_LoginMap) ProtoMessage()

func (*Z_C_LoginMap) ProtoReflect

func (x *Z_C_LoginMap) ProtoReflect() protoreflect.Message

func (*Z_C_LoginMap) Reset

func (x *Z_C_LoginMap) Reset()

func (*Z_C_LoginMap) String

func (x *Z_C_LoginMap) String() string

Jump to

Keyboard shortcuts

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