__

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

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

Go to latest
Published: May 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MsgType_name = map[int32]string{
		0: "Regist",
		1: "Update",
	}
	MsgType_value = map[string]int32{
		"Regist": 0,
		"Update": 1,
	}
)

Enum value maps for MsgType.

View Source
var File_clientMsg_proto protoreflect.FileDescriptor
View Source
var File_server_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ConnectRoomInfo

type ConnectRoomInfo struct {
	Ip   uint32 `protobuf:"fixed32,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectRoomInfo) Descriptor deprecated

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

Deprecated: Use ConnectRoomInfo.ProtoReflect.Descriptor instead.

func (*ConnectRoomInfo) GetIp

func (x *ConnectRoomInfo) GetIp() uint32

func (*ConnectRoomInfo) GetPort

func (x *ConnectRoomInfo) GetPort() uint32

func (*ConnectRoomInfo) ProtoMessage

func (*ConnectRoomInfo) ProtoMessage()

func (*ConnectRoomInfo) ProtoReflect

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

func (*ConnectRoomInfo) Reset

func (x *ConnectRoomInfo) Reset()

func (*ConnectRoomInfo) String

func (x *ConnectRoomInfo) String() string

type LogicRequest

type LogicRequest struct {
	Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicRequest) Descriptor deprecated

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

Deprecated: Use LogicRequest.ProtoReflect.Descriptor instead.

func (*LogicRequest) GetToken

func (x *LogicRequest) GetToken() string

func (*LogicRequest) ProtoMessage

func (*LogicRequest) ProtoMessage()

func (*LogicRequest) ProtoReflect

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

func (*LogicRequest) Reset

func (x *LogicRequest) Reset()

func (*LogicRequest) String

func (x *LogicRequest) String() string

type LogicResponse

type LogicResponse struct {
	MInfo *ConnectRoomInfo `protobuf:"bytes,1,opt,name=mInfo,proto3" json:"mInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*LogicResponse) Descriptor deprecated

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

Deprecated: Use LogicResponse.ProtoReflect.Descriptor instead.

func (*LogicResponse) GetMInfo

func (x *LogicResponse) GetMInfo() *ConnectRoomInfo

func (*LogicResponse) ProtoMessage

func (*LogicResponse) ProtoMessage()

func (*LogicResponse) ProtoReflect

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

func (*LogicResponse) Reset

func (x *LogicResponse) Reset()

func (*LogicResponse) String

func (x *LogicResponse) String() string

type MsgType

type MsgType int32
const (
	MsgType_Regist MsgType = 0 // 注册roomserver
	MsgType_Update MsgType = 1 // 更新roomserver信息
)

func (MsgType) Descriptor

func (MsgType) Descriptor() protoreflect.EnumDescriptor

func (MsgType) Enum

func (x MsgType) Enum() *MsgType

func (MsgType) EnumDescriptor deprecated

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

Deprecated: Use MsgType.Descriptor instead.

func (MsgType) Number

func (x MsgType) Number() protoreflect.EnumNumber

func (MsgType) String

func (x MsgType) String() string

func (MsgType) Type

func (MsgType) Type() protoreflect.EnumType

type POINT

type POINT 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"`
	// contains filtered or unexported fields
}

func (*POINT) Descriptor deprecated

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

Deprecated: Use POINT.ProtoReflect.Descriptor instead.

func (*POINT) GetX

func (x *POINT) GetX() float32

func (*POINT) GetY

func (x *POINT) GetY() float32

func (*POINT) ProtoMessage

func (*POINT) ProtoMessage()

func (*POINT) ProtoReflect

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

func (*POINT) Reset

func (x *POINT) Reset()

func (*POINT) String

func (x *POINT) String() string

type RoomRequest

type RoomRequest struct {
	Type MsgType `protobuf:"varint,1,opt,name=type,proto3,enum=proto.MsgType" json:"type,omitempty"`
	Data []byte  `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*RoomRequest) Descriptor deprecated

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

Deprecated: Use RoomRequest.ProtoReflect.Descriptor instead.

func (*RoomRequest) GetData

func (x *RoomRequest) GetData() []byte

func (*RoomRequest) GetType

func (x *RoomRequest) GetType() MsgType

func (*RoomRequest) ProtoMessage

func (*RoomRequest) ProtoMessage()

func (*RoomRequest) ProtoReflect

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

func (*RoomRequest) Reset

func (x *RoomRequest) Reset()

func (*RoomRequest) String

func (x *RoomRequest) String() string

type RoomResponse

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

func (*RoomResponse) Descriptor deprecated

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

Deprecated: Use RoomResponse.ProtoReflect.Descriptor instead.

func (*RoomResponse) ProtoMessage

func (*RoomResponse) ProtoMessage()

func (*RoomResponse) ProtoReflect

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

func (*RoomResponse) Reset

func (x *RoomResponse) Reset()

func (*RoomResponse) String

func (x *RoomResponse) String() string

type Scene

type Scene struct {
	Body []*POINT `protobuf:"bytes,1,rep,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Scene) Descriptor deprecated

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

Deprecated: Use Scene.ProtoReflect.Descriptor instead.

func (*Scene) GetBody

func (x *Scene) GetBody() []*POINT

func (*Scene) ProtoMessage

func (*Scene) ProtoMessage()

func (*Scene) ProtoReflect

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

func (*Scene) Reset

func (x *Scene) Reset()

func (*Scene) String

func (x *Scene) String() string

Jump to

Keyboard shortcuts

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