protomsg

package
v0.0.0-...-e6ef893 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const TestTableMDTableName = "testtb"

Variables

View Source
var (
	ErrInvalidLengthBase        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBase          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBase = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDb        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDb          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDb = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthEntity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEntity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEntity = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGobige        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGobige          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGobige = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DataType_name = map[int32]string{
	0:  "Type_None",
	1:  "Type_int8",
	2:  "Type_int16",
	3:  "Type_int32",
	4:  "Type_int64",
	5:  "Type_uint8",
	6:  "Type_uint16",
	7:  "Type_uint32",
	8:  "Type_uint64",
	9:  "Type_float32",
	10: "Type_float64",
	11: "Type_bool",
	12: "Type_string",
	13: "Type_protoMsg",
}
View Source
var DataType_value = map[string]int32{
	"Type_None":     0,
	"Type_int8":     1,
	"Type_int16":    2,
	"Type_int32":    3,
	"Type_int64":    4,
	"Type_uint8":    5,
	"Type_uint16":   6,
	"Type_uint32":   7,
	"Type_uint64":   8,
	"Type_float32":  9,
	"Type_float64":  10,
	"Type_bool":     11,
	"Type_string":   12,
	"Type_protoMsg": 13,
}

Functions

func SetDataModel

func SetDataModel(md interface{}, msgdata *TableData)

设置数据到差量中去

func StringToArray

func StringToArray(str string, sub string) []int64

--------------------------------------------

func UnPackMsgDataToField

func UnPackMsgDataToField(f reflect.Value, msgdata *FieldData)

单个字段解包数据

Types

type AOIMsgRet

type AOIMsgRet struct {
	// 进入AOI的对象属性
	EnterAOIs []*SyncEntityProps `protobuf:"bytes,1,rep,name=EnterAOIs,proto3" json:"EnterAOIs,omitempty"`
	// 离开AOI的对象UID
	LeaveAOIs []uint64 `protobuf:"varint,2,rep,packed,name=LeaveAOIs,proto3" json:"LeaveAOIs,omitempty"`
	// 更新AOI内对象的属性
	UpdateAOIs []*SyncEntityProps `protobuf:"bytes,3,rep,name=UpdateAOIs,proto3" json:"UpdateAOIs,omitempty"`
}

AOI消息

func (*AOIMsgRet) Descriptor

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

func (*AOIMsgRet) GetEnterAOIs

func (m *AOIMsgRet) GetEnterAOIs() []*SyncEntityProps

func (*AOIMsgRet) GetLeaveAOIs

func (m *AOIMsgRet) GetLeaveAOIs() []uint64

func (*AOIMsgRet) GetUpdateAOIs

func (m *AOIMsgRet) GetUpdateAOIs() []*SyncEntityProps

func (*AOIMsgRet) Marshal

func (m *AOIMsgRet) Marshal() (dAtA []byte, err error)

func (*AOIMsgRet) MarshalTo

func (m *AOIMsgRet) MarshalTo(dAtA []byte) (int, error)

func (*AOIMsgRet) MarshalToSizedBuffer

func (m *AOIMsgRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AOIMsgRet) Name

func (*AOIMsgRet) Name() string

func (*AOIMsgRet) ProtoMessage

func (*AOIMsgRet) ProtoMessage()

func (*AOIMsgRet) Reset

func (m *AOIMsgRet) Reset()

func (*AOIMsgRet) Size

func (m *AOIMsgRet) Size() (n int)

func (*AOIMsgRet) String

func (m *AOIMsgRet) String() string

func (*AOIMsgRet) Unmarshal

func (m *AOIMsgRet) Unmarshal(dAtA []byte) error

func (*AOIMsgRet) XXX_DiscardUnknown

func (m *AOIMsgRet) XXX_DiscardUnknown()

func (*AOIMsgRet) XXX_Marshal

func (m *AOIMsgRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AOIMsgRet) XXX_Merge

func (m *AOIMsgRet) XXX_Merge(src proto.Message)

func (*AOIMsgRet) XXX_MessageName

func (*AOIMsgRet) XXX_MessageName() string

func (*AOIMsgRet) XXX_Size

func (m *AOIMsgRet) XXX_Size() int

func (*AOIMsgRet) XXX_Unmarshal

func (m *AOIMsgRet) XXX_Unmarshal(b []byte) error

type BaseBinary

type BaseBinary struct {
	// 一个数据占多少个位,只能是1,2,4,8
	OneDataBitNum int32 `protobuf:"varint,1,opt,name=OneDataBitNum,proto3" json:"OneDataBitNum,omitempty"`
	// 数组的长度
	ArrayLen int32 `protobuf:"varint,2,opt,name=ArrayLen,proto3" json:"ArrayLen,omitempty"`
	// 放数据的数组
	Data []byte `protobuf:"bytes,3,opt,name=Data,proto3" json:"Data,omitempty"`
}

二进制数据

func NewBinary

func NewBinary(alen int32) *BaseBinary

func NewBinaryByLen

func NewBinaryByLen(alen, dlen int32) *BaseBinary

func (*BaseBinary) Clear

func (this *BaseBinary) Clear()

func (*BaseBinary) ContainKey

func (this *BaseBinary) ContainKey(index int32) int

func (*BaseBinary) Descriptor

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

func (*BaseBinary) GetArrayLen

func (m *BaseBinary) GetArrayLen() int32

func (*BaseBinary) GetData

func (m *BaseBinary) GetData() []byte

func (*BaseBinary) GetOneDataBitNum

func (m *BaseBinary) GetOneDataBitNum() int32

func (*BaseBinary) Marshal

func (m *BaseBinary) Marshal() (dAtA []byte, err error)

func (*BaseBinary) MarshalTo

func (m *BaseBinary) MarshalTo(dAtA []byte) (int, error)

func (*BaseBinary) MarshalToSizedBuffer

func (m *BaseBinary) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BaseBinary) Name

func (*BaseBinary) Name() string

func (*BaseBinary) ProtoMessage

func (*BaseBinary) ProtoMessage()

func (*BaseBinary) Reset

func (m *BaseBinary) Reset()

func (*BaseBinary) Scan

func (m *BaseBinary) Scan(value interface{}) error

func (*BaseBinary) SetArrayLen

func (this *BaseBinary) SetArrayLen(alen int32)

func (*BaseBinary) Size

func (m *BaseBinary) Size() (n int)

func (*BaseBinary) String

func (m *BaseBinary) String() string

func (*BaseBinary) ToValuesJson

func (this *BaseBinary) ToValuesJson() []interface{}

func (*BaseBinary) Unmarshal

func (m *BaseBinary) Unmarshal(dAtA []byte) error

func (*BaseBinary) UpData

func (this *BaseBinary) UpData(index, val int32) bool

func (BaseBinary) Value

func (m BaseBinary) Value() (driver.Value, error)

func (*BaseBinary) XXX_DiscardUnknown

func (m *BaseBinary) XXX_DiscardUnknown()

func (*BaseBinary) XXX_Marshal

func (m *BaseBinary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseBinary) XXX_Merge

func (m *BaseBinary) XXX_Merge(src proto.Message)

func (*BaseBinary) XXX_MessageName

func (*BaseBinary) XXX_MessageName() string

func (*BaseBinary) XXX_Size

func (m *BaseBinary) XXX_Size() int

func (*BaseBinary) XXX_Unmarshal

func (m *BaseBinary) XXX_Unmarshal(b []byte) error

type BaseData

type BaseData struct {
	// 数据
	Data map[int64]int64 `` /* 151-byte string literal not displayed */
}

基础仓库数据

func NewBaseDataString

func NewBaseDataString(str string) *BaseData

NewBaseDataString 用字符串初始化一个数据

func (*BaseData) Clear

func (this *BaseData) Clear()

Clear清数据

func (BaseData) Clone

func (this BaseData) Clone() *BaseData

Clone 复制一个BaseData

func (*BaseData) Count

func (this *BaseData) Count() (result int64)

Count 总数量

func (*BaseData) Descriptor

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

func (*BaseData) GetData

func (m *BaseData) GetData() map[int64]int64

func (*BaseData) GetNumByKey

func (this *BaseData) GetNumByKey(key int64) int64

GetNumByKey指定数据的值

func (*BaseData) Marshal

func (m *BaseData) Marshal() (dAtA []byte, err error)

func (*BaseData) MarshalTo

func (m *BaseData) MarshalTo(dAtA []byte) (int, error)

func (*BaseData) MarshalToSizedBuffer

func (m *BaseData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BaseData) MaxItem

func (this *BaseData) MaxItem() (key, num int64)

MaxItem 最大数值的KEY,value

func (*BaseData) Name

func (*BaseData) Name() string

func (*BaseData) ProtoMessage

func (*BaseData) ProtoMessage()

func (*BaseData) Reset

func (m *BaseData) Reset()

func (*BaseData) Scan

func (m *BaseData) Scan(value interface{}) error

func (*BaseData) Size

func (m *BaseData) Size() (n int)

func (*BaseData) String

func (m *BaseData) String() string

func (*BaseData) ToString

func (this *BaseData) ToString() string

ToString 字符串化

func (*BaseData) Unmarshal

func (m *BaseData) Unmarshal(dAtA []byte) error

func (*BaseData) UpData

func (this *BaseData) UpData(key, num int64)

UpData 更新指定数据

func (*BaseData) UpDataBc

func (this *BaseData) UpDataBc(addbc, delbc *BaseData)

UpDataBc批量用别的数据,更新本数据

func (BaseData) Value

func (m BaseData) Value() (driver.Value, error)

func (*BaseData) XXX_DiscardUnknown

func (m *BaseData) XXX_DiscardUnknown()

func (*BaseData) XXX_Marshal

func (m *BaseData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BaseData) XXX_Merge

func (m *BaseData) XXX_Merge(src proto.Message)

func (*BaseData) XXX_MessageName

func (*BaseData) XXX_MessageName() string

func (*BaseData) XXX_Size

func (m *BaseData) XXX_Size() int

func (*BaseData) XXX_Unmarshal

func (m *BaseData) XXX_Unmarshal(b []byte) error

type ClientVerifyFailedRet

type ClientVerifyFailedRet struct {
}

ClientVerifyFailedRet 验证失败返回消息

func (*ClientVerifyFailedRet) Descriptor

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

func (*ClientVerifyFailedRet) Marshal

func (m *ClientVerifyFailedRet) Marshal() (dAtA []byte, err error)

func (*ClientVerifyFailedRet) MarshalTo

func (m *ClientVerifyFailedRet) MarshalTo(dAtA []byte) (int, error)

func (*ClientVerifyFailedRet) MarshalToSizedBuffer

func (m *ClientVerifyFailedRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientVerifyFailedRet) Name

func (*ClientVerifyFailedRet) Name() string

func (*ClientVerifyFailedRet) ProtoMessage

func (*ClientVerifyFailedRet) ProtoMessage()

func (*ClientVerifyFailedRet) Reset

func (m *ClientVerifyFailedRet) Reset()

func (*ClientVerifyFailedRet) Size

func (m *ClientVerifyFailedRet) Size() (n int)

func (*ClientVerifyFailedRet) String

func (m *ClientVerifyFailedRet) String() string

func (*ClientVerifyFailedRet) Unmarshal

func (m *ClientVerifyFailedRet) Unmarshal(dAtA []byte) error

func (*ClientVerifyFailedRet) XXX_DiscardUnknown

func (m *ClientVerifyFailedRet) XXX_DiscardUnknown()

func (*ClientVerifyFailedRet) XXX_Marshal

func (m *ClientVerifyFailedRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientVerifyFailedRet) XXX_Merge

func (m *ClientVerifyFailedRet) XXX_Merge(src proto.Message)

func (*ClientVerifyFailedRet) XXX_MessageName

func (*ClientVerifyFailedRet) XXX_MessageName() string

func (*ClientVerifyFailedRet) XXX_Size

func (m *ClientVerifyFailedRet) XXX_Size() int

func (*ClientVerifyFailedRet) XXX_Unmarshal

func (m *ClientVerifyFailedRet) XXX_Unmarshal(b []byte) error

type ClientVerifyReq

type ClientVerifyReq struct {
	// 这个连接所表示的对象唯一ID,如果是服务器就给服务ID,如果是用户就给用户ID
	SessUID uint64 `protobuf:"varint,1,opt,name=SessUID,proto3" json:"SessUID,omitempty"`
	// 连接的类型使用global.ServerTypeEnum
	SessType uint32 `protobuf:"varint,2,opt,name=SessType,proto3" json:"SessType,omitempty"`
	// 连接状态 1表示对象第一次连接;2表示对象是断线重连
	SessState uint32 `protobuf:"varint,3,opt,name=SessState,proto3" json:"SessState,omitempty"`
	// 用于验证的Token,确认身份用的
	Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"`
}

连接验证消息

func (*ClientVerifyReq) Descriptor

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

func (*ClientVerifyReq) GetSessState

func (m *ClientVerifyReq) GetSessState() uint32

func (*ClientVerifyReq) GetSessType

func (m *ClientVerifyReq) GetSessType() uint32

func (*ClientVerifyReq) GetSessUID

func (m *ClientVerifyReq) GetSessUID() uint64

func (*ClientVerifyReq) GetToken

func (m *ClientVerifyReq) GetToken() string

func (*ClientVerifyReq) Marshal

func (m *ClientVerifyReq) Marshal() (dAtA []byte, err error)

func (*ClientVerifyReq) MarshalTo

func (m *ClientVerifyReq) MarshalTo(dAtA []byte) (int, error)

func (*ClientVerifyReq) MarshalToSizedBuffer

func (m *ClientVerifyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientVerifyReq) Name

func (*ClientVerifyReq) Name() string

func (*ClientVerifyReq) ProtoMessage

func (*ClientVerifyReq) ProtoMessage()

func (*ClientVerifyReq) Reset

func (m *ClientVerifyReq) Reset()

func (*ClientVerifyReq) Size

func (m *ClientVerifyReq) Size() (n int)

func (*ClientVerifyReq) String

func (m *ClientVerifyReq) String() string

func (*ClientVerifyReq) Unmarshal

func (m *ClientVerifyReq) Unmarshal(dAtA []byte) error

func (*ClientVerifyReq) XXX_DiscardUnknown

func (m *ClientVerifyReq) XXX_DiscardUnknown()

func (*ClientVerifyReq) XXX_Marshal

func (m *ClientVerifyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientVerifyReq) XXX_Merge

func (m *ClientVerifyReq) XXX_Merge(src proto.Message)

func (*ClientVerifyReq) XXX_MessageName

func (*ClientVerifyReq) XXX_MessageName() string

func (*ClientVerifyReq) XXX_Size

func (m *ClientVerifyReq) XXX_Size() int

func (*ClientVerifyReq) XXX_Unmarshal

func (m *ClientVerifyReq) XXX_Unmarshal(b []byte) error

type ClientVerifySucceedRet

type ClientVerifySucceedRet struct {
}

ClientVerifySucceedRet 验证成功返回消息

func (*ClientVerifySucceedRet) Descriptor

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

func (*ClientVerifySucceedRet) Marshal

func (m *ClientVerifySucceedRet) Marshal() (dAtA []byte, err error)

func (*ClientVerifySucceedRet) MarshalTo

func (m *ClientVerifySucceedRet) MarshalTo(dAtA []byte) (int, error)

func (*ClientVerifySucceedRet) MarshalToSizedBuffer

func (m *ClientVerifySucceedRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ClientVerifySucceedRet) Name

func (*ClientVerifySucceedRet) ProtoMessage

func (*ClientVerifySucceedRet) ProtoMessage()

func (*ClientVerifySucceedRet) Reset

func (m *ClientVerifySucceedRet) Reset()

func (*ClientVerifySucceedRet) Size

func (m *ClientVerifySucceedRet) Size() (n int)

func (*ClientVerifySucceedRet) String

func (m *ClientVerifySucceedRet) String() string

func (*ClientVerifySucceedRet) Unmarshal

func (m *ClientVerifySucceedRet) Unmarshal(dAtA []byte) error

func (*ClientVerifySucceedRet) XXX_DiscardUnknown

func (m *ClientVerifySucceedRet) XXX_DiscardUnknown()

func (*ClientVerifySucceedRet) XXX_Marshal

func (m *ClientVerifySucceedRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClientVerifySucceedRet) XXX_Merge

func (m *ClientVerifySucceedRet) XXX_Merge(src proto.Message)

func (*ClientVerifySucceedRet) XXX_MessageName

func (*ClientVerifySucceedRet) XXX_MessageName() string

func (*ClientVerifySucceedRet) XXX_Size

func (m *ClientVerifySucceedRet) XXX_Size() int

func (*ClientVerifySucceedRet) XXX_Unmarshal

func (m *ClientVerifySucceedRet) XXX_Unmarshal(b []byte) error

type CodeRet

type CodeRet struct {
	// 错误码 0表示没有错
	Code int64 `protobuf:"varint,1,opt,name=Code,proto3" json:"Code,omitempty"`
	// 错误对应的提示文本
	CodeMessage string `protobuf:"bytes,2,opt,name=CodeMessage,proto3" json:"CodeMessage,omitempty"`
}

CodeRet 回复信息

func (*CodeRet) Descriptor

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

func (*CodeRet) GetCode

func (m *CodeRet) GetCode() int64

func (*CodeRet) GetCodeMessage

func (m *CodeRet) GetCodeMessage() string

func (*CodeRet) Marshal

func (m *CodeRet) Marshal() (dAtA []byte, err error)

func (*CodeRet) MarshalTo

func (m *CodeRet) MarshalTo(dAtA []byte) (int, error)

func (*CodeRet) MarshalToSizedBuffer

func (m *CodeRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CodeRet) Name

func (*CodeRet) Name() string

func (*CodeRet) ProtoMessage

func (*CodeRet) ProtoMessage()

func (*CodeRet) Reset

func (m *CodeRet) Reset()

func (*CodeRet) Size

func (m *CodeRet) Size() (n int)

func (*CodeRet) String

func (m *CodeRet) String() string

func (*CodeRet) Unmarshal

func (m *CodeRet) Unmarshal(dAtA []byte) error

func (*CodeRet) XXX_DiscardUnknown

func (m *CodeRet) XXX_DiscardUnknown()

func (*CodeRet) XXX_Marshal

func (m *CodeRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CodeRet) XXX_Merge

func (m *CodeRet) XXX_Merge(src proto.Message)

func (*CodeRet) XXX_MessageName

func (*CodeRet) XXX_MessageName() string

func (*CodeRet) XXX_Size

func (m *CodeRet) XXX_Size() int

func (*CodeRet) XXX_Unmarshal

func (m *CodeRet) XXX_Unmarshal(b []byte) error

type CreateEntityReqSrv

type CreateEntityReqSrv struct {
	//对象的唯一ID
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	//对象类型
	EntityType string `protobuf:"bytes,2,opt,name=EntityType,proto3" json:"EntityType,omitempty"`
	//对象用户保存的ID
	DBID uint64 `protobuf:"varint,3,opt,name=DBID,proto3" json:"DBID,omitempty"`
	// 这消息源的服务器ID
	SrcSrvID uint64 `protobuf:"varint,11,opt,name=SrcSrvID,proto3" json:"SrcSrvID,omitempty"`
	// 空间ID,没有就为0
	SrcSpaceID uint64 `protobuf:"varint,12,opt,name=SrcSpaceID,proto3" json:"SrcSpaceID,omitempty"`
	// 对象ID,没有就为0
	SrcEntityID uint64 `protobuf:"varint,13,opt,name=SrcEntityID,proto3" json:"SrcEntityID,omitempty"`
	//回复的时候,需要带回的回调ID
	CallbackID uint64 `protobuf:"varint,14,opt,name=CallbackID,proto3" json:"CallbackID,omitempty"`
}

CreateEntityReqSrv 请求创建实体消息

func (*CreateEntityReqSrv) Descriptor

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

func (*CreateEntityReqSrv) GetCallbackID

func (m *CreateEntityReqSrv) GetCallbackID() uint64

func (*CreateEntityReqSrv) GetDBID

func (m *CreateEntityReqSrv) GetDBID() uint64

func (*CreateEntityReqSrv) GetEntityID

func (m *CreateEntityReqSrv) GetEntityID() uint64

func (*CreateEntityReqSrv) GetEntityType

func (m *CreateEntityReqSrv) GetEntityType() string

func (*CreateEntityReqSrv) GetSrcEntityID

func (m *CreateEntityReqSrv) GetSrcEntityID() uint64

func (*CreateEntityReqSrv) GetSrcSpaceID

func (m *CreateEntityReqSrv) GetSrcSpaceID() uint64

func (*CreateEntityReqSrv) GetSrcSrvID

func (m *CreateEntityReqSrv) GetSrcSrvID() uint64

func (*CreateEntityReqSrv) Marshal

func (m *CreateEntityReqSrv) Marshal() (dAtA []byte, err error)

func (*CreateEntityReqSrv) MarshalTo

func (m *CreateEntityReqSrv) MarshalTo(dAtA []byte) (int, error)

func (*CreateEntityReqSrv) MarshalToSizedBuffer

func (m *CreateEntityReqSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateEntityReqSrv) Name

func (*CreateEntityReqSrv) Name() string

func (*CreateEntityReqSrv) ProtoMessage

func (*CreateEntityReqSrv) ProtoMessage()

func (*CreateEntityReqSrv) Reset

func (m *CreateEntityReqSrv) Reset()

func (*CreateEntityReqSrv) Size

func (m *CreateEntityReqSrv) Size() (n int)

func (*CreateEntityReqSrv) String

func (m *CreateEntityReqSrv) String() string

func (*CreateEntityReqSrv) Unmarshal

func (m *CreateEntityReqSrv) Unmarshal(dAtA []byte) error

func (*CreateEntityReqSrv) XXX_DiscardUnknown

func (m *CreateEntityReqSrv) XXX_DiscardUnknown()

func (*CreateEntityReqSrv) XXX_Marshal

func (m *CreateEntityReqSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateEntityReqSrv) XXX_Merge

func (m *CreateEntityReqSrv) XXX_Merge(src proto.Message)

func (*CreateEntityReqSrv) XXX_MessageName

func (*CreateEntityReqSrv) XXX_MessageName() string

func (*CreateEntityReqSrv) XXX_Size

func (m *CreateEntityReqSrv) XXX_Size() int

func (*CreateEntityReqSrv) XXX_Unmarshal

func (m *CreateEntityReqSrv) XXX_Unmarshal(b []byte) error

type CreateEntityRetSrv

type CreateEntityRetSrv struct {
	//被创建的那个nttID
	CreateEntityID uint64 `protobuf:"varint,1,opt,name=CreateEntityID,proto3" json:"CreateEntityID,omitempty"`
	// CreateEntityReq.CallbackID
	CallbackID uint64 `protobuf:"varint,14,opt,name=CallbackID,proto3" json:"CallbackID,omitempty"`
	// 回复信息
	ResultMsg *CodeRet `protobuf:"bytes,15,opt,name=ResultMsg,proto3" json:"ResultMsg,omitempty"`
}

CreateEntityRetSrv 创建实体返回

func (*CreateEntityRetSrv) Descriptor

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

func (*CreateEntityRetSrv) GetCallbackID

func (m *CreateEntityRetSrv) GetCallbackID() uint64

func (*CreateEntityRetSrv) GetCreateEntityID

func (m *CreateEntityRetSrv) GetCreateEntityID() uint64

func (*CreateEntityRetSrv) GetResultMsg

func (m *CreateEntityRetSrv) GetResultMsg() *CodeRet

func (*CreateEntityRetSrv) Marshal

func (m *CreateEntityRetSrv) Marshal() (dAtA []byte, err error)

func (*CreateEntityRetSrv) MarshalTo

func (m *CreateEntityRetSrv) MarshalTo(dAtA []byte) (int, error)

func (*CreateEntityRetSrv) MarshalToSizedBuffer

func (m *CreateEntityRetSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*CreateEntityRetSrv) Name

func (*CreateEntityRetSrv) Name() string

func (*CreateEntityRetSrv) ProtoMessage

func (*CreateEntityRetSrv) ProtoMessage()

func (*CreateEntityRetSrv) Reset

func (m *CreateEntityRetSrv) Reset()

func (*CreateEntityRetSrv) Size

func (m *CreateEntityRetSrv) Size() (n int)

func (*CreateEntityRetSrv) String

func (m *CreateEntityRetSrv) String() string

func (*CreateEntityRetSrv) Unmarshal

func (m *CreateEntityRetSrv) Unmarshal(dAtA []byte) error

func (*CreateEntityRetSrv) XXX_DiscardUnknown

func (m *CreateEntityRetSrv) XXX_DiscardUnknown()

func (*CreateEntityRetSrv) XXX_Marshal

func (m *CreateEntityRetSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateEntityRetSrv) XXX_Merge

func (m *CreateEntityRetSrv) XXX_Merge(src proto.Message)

func (*CreateEntityRetSrv) XXX_MessageName

func (*CreateEntityRetSrv) XXX_MessageName() string

func (*CreateEntityRetSrv) XXX_Size

func (m *CreateEntityRetSrv) XXX_Size() int

func (*CreateEntityRetSrv) XXX_Unmarshal

func (m *CreateEntityRetSrv) XXX_Unmarshal(b []byte) error

type DBDataModel

type DBDataModel struct {
	// 记录唯一KEY
	KeyName string `protobuf:"bytes,1,opt,name=KeyName,proto3" json:"KeyName,omitempty"`
	// 本次是否差量 true表示为差量
	IsPartial bool `protobuf:"varint,2,opt,name=IsPartial,proto3" json:"IsPartial,omitempty"`
	// 对应的二进制数据 如果是差量,使用MapModel解包
	MsgContent []byte `protobuf:"bytes,10,opt,name=MsgContent,proto3" json:"MsgContent,omitempty"`
}

func (*DBDataModel) Descriptor

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

func (*DBDataModel) GetIsPartial

func (m *DBDataModel) GetIsPartial() bool

func (*DBDataModel) GetKeyName

func (m *DBDataModel) GetKeyName() string

func (*DBDataModel) GetMsgContent

func (m *DBDataModel) GetMsgContent() []byte

func (*DBDataModel) Marshal

func (m *DBDataModel) Marshal() (dAtA []byte, err error)

func (*DBDataModel) MarshalTo

func (m *DBDataModel) MarshalTo(dAtA []byte) (int, error)

func (*DBDataModel) MarshalToSizedBuffer

func (m *DBDataModel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBDataModel) Name

func (*DBDataModel) Name() string

func (*DBDataModel) ProtoMessage

func (*DBDataModel) ProtoMessage()

func (*DBDataModel) Reset

func (m *DBDataModel) Reset()

func (*DBDataModel) Size

func (m *DBDataModel) Size() (n int)

func (*DBDataModel) String

func (m *DBDataModel) String() string

func (*DBDataModel) Unmarshal

func (m *DBDataModel) Unmarshal(dAtA []byte) error

func (*DBDataModel) XXX_DiscardUnknown

func (m *DBDataModel) XXX_DiscardUnknown()

func (*DBDataModel) XXX_Marshal

func (m *DBDataModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBDataModel) XXX_Merge

func (m *DBDataModel) XXX_Merge(src proto.Message)

func (*DBDataModel) XXX_MessageName

func (*DBDataModel) XXX_MessageName() string

func (*DBDataModel) XXX_Size

func (m *DBDataModel) XXX_Size() int

func (*DBDataModel) XXX_Unmarshal

func (m *DBDataModel) XXX_Unmarshal(b []byte) error

type DBGetPlayerInfoAck

type DBGetPlayerInfoAck struct {
	DBList  []*DBDataModel `protobuf:"bytes,1,rep,name=DBList,proto3" json:"DBList,omitempty"`
	BackKey uint64         `protobuf:"varint,4,opt,name=BackKey,proto3" json:"BackKey,omitempty"`
}

func (*DBGetPlayerInfoAck) Descriptor

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

func (*DBGetPlayerInfoAck) GetBackKey

func (m *DBGetPlayerInfoAck) GetBackKey() uint64

func (*DBGetPlayerInfoAck) GetDBList

func (m *DBGetPlayerInfoAck) GetDBList() []*DBDataModel

func (*DBGetPlayerInfoAck) Marshal

func (m *DBGetPlayerInfoAck) Marshal() (dAtA []byte, err error)

func (*DBGetPlayerInfoAck) MarshalTo

func (m *DBGetPlayerInfoAck) MarshalTo(dAtA []byte) (int, error)

func (*DBGetPlayerInfoAck) MarshalToSizedBuffer

func (m *DBGetPlayerInfoAck) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBGetPlayerInfoAck) Name

func (*DBGetPlayerInfoAck) Name() string

func (*DBGetPlayerInfoAck) ProtoMessage

func (*DBGetPlayerInfoAck) ProtoMessage()

func (*DBGetPlayerInfoAck) Reset

func (m *DBGetPlayerInfoAck) Reset()

func (*DBGetPlayerInfoAck) Size

func (m *DBGetPlayerInfoAck) Size() (n int)

func (*DBGetPlayerInfoAck) String

func (m *DBGetPlayerInfoAck) String() string

func (*DBGetPlayerInfoAck) Unmarshal

func (m *DBGetPlayerInfoAck) Unmarshal(dAtA []byte) error

func (*DBGetPlayerInfoAck) XXX_DiscardUnknown

func (m *DBGetPlayerInfoAck) XXX_DiscardUnknown()

func (*DBGetPlayerInfoAck) XXX_Marshal

func (m *DBGetPlayerInfoAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBGetPlayerInfoAck) XXX_Merge

func (m *DBGetPlayerInfoAck) XXX_Merge(src proto.Message)

func (*DBGetPlayerInfoAck) XXX_MessageName

func (*DBGetPlayerInfoAck) XXX_MessageName() string

func (*DBGetPlayerInfoAck) XXX_Size

func (m *DBGetPlayerInfoAck) XXX_Size() int

func (*DBGetPlayerInfoAck) XXX_Unmarshal

func (m *DBGetPlayerInfoAck) XXX_Unmarshal(b []byte) error

type DBGetPlayerInfoEndAck

type DBGetPlayerInfoEndAck struct {
	BackKey uint64 `protobuf:"varint,4,opt,name=BackKey,proto3" json:"BackKey,omitempty"`
}

func (*DBGetPlayerInfoEndAck) Descriptor

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

func (*DBGetPlayerInfoEndAck) GetBackKey

func (m *DBGetPlayerInfoEndAck) GetBackKey() uint64

func (*DBGetPlayerInfoEndAck) Marshal

func (m *DBGetPlayerInfoEndAck) Marshal() (dAtA []byte, err error)

func (*DBGetPlayerInfoEndAck) MarshalTo

func (m *DBGetPlayerInfoEndAck) MarshalTo(dAtA []byte) (int, error)

func (*DBGetPlayerInfoEndAck) MarshalToSizedBuffer

func (m *DBGetPlayerInfoEndAck) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBGetPlayerInfoEndAck) Name

func (*DBGetPlayerInfoEndAck) Name() string

func (*DBGetPlayerInfoEndAck) ProtoMessage

func (*DBGetPlayerInfoEndAck) ProtoMessage()

func (*DBGetPlayerInfoEndAck) Reset

func (m *DBGetPlayerInfoEndAck) Reset()

func (*DBGetPlayerInfoEndAck) Size

func (m *DBGetPlayerInfoEndAck) Size() (n int)

func (*DBGetPlayerInfoEndAck) String

func (m *DBGetPlayerInfoEndAck) String() string

func (*DBGetPlayerInfoEndAck) Unmarshal

func (m *DBGetPlayerInfoEndAck) Unmarshal(dAtA []byte) error

func (*DBGetPlayerInfoEndAck) XXX_DiscardUnknown

func (m *DBGetPlayerInfoEndAck) XXX_DiscardUnknown()

func (*DBGetPlayerInfoEndAck) XXX_Marshal

func (m *DBGetPlayerInfoEndAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBGetPlayerInfoEndAck) XXX_Merge

func (m *DBGetPlayerInfoEndAck) XXX_Merge(src proto.Message)

func (*DBGetPlayerInfoEndAck) XXX_MessageName

func (*DBGetPlayerInfoEndAck) XXX_MessageName() string

func (*DBGetPlayerInfoEndAck) XXX_Size

func (m *DBGetPlayerInfoEndAck) XXX_Size() int

func (*DBGetPlayerInfoEndAck) XXX_Unmarshal

func (m *DBGetPlayerInfoEndAck) XXX_Unmarshal(b []byte) error

type DBGetPlayerInfoReq

type DBGetPlayerInfoReq struct {
	//角色ID
	PID uint64 `protobuf:"varint,1,opt,name=PID,proto3" json:"PID,omitempty"`
	//角色所在SpaceID
	SpaceID uint64 `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	//服务器ID
	SrvID uint64 `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	//鉴别用的唯一Key
	BackKey uint64 `protobuf:"varint,4,opt,name=BackKey,proto3" json:"BackKey,omitempty"`
	//表名
	Tables []string `protobuf:"bytes,5,rep,name=Tables,proto3" json:"Tables,omitempty"`
}

DBGetPlayerInfoReq 获取角色信息

func (*DBGetPlayerInfoReq) Descriptor

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

func (*DBGetPlayerInfoReq) GetBackKey

func (m *DBGetPlayerInfoReq) GetBackKey() uint64

func (*DBGetPlayerInfoReq) GetPID

func (m *DBGetPlayerInfoReq) GetPID() uint64

func (*DBGetPlayerInfoReq) GetSpaceID

func (m *DBGetPlayerInfoReq) GetSpaceID() uint64

func (*DBGetPlayerInfoReq) GetSrvID

func (m *DBGetPlayerInfoReq) GetSrvID() uint64

func (*DBGetPlayerInfoReq) GetTables

func (m *DBGetPlayerInfoReq) GetTables() []string

func (*DBGetPlayerInfoReq) Marshal

func (m *DBGetPlayerInfoReq) Marshal() (dAtA []byte, err error)

func (*DBGetPlayerInfoReq) MarshalTo

func (m *DBGetPlayerInfoReq) MarshalTo(dAtA []byte) (int, error)

func (*DBGetPlayerInfoReq) MarshalToSizedBuffer

func (m *DBGetPlayerInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBGetPlayerInfoReq) Name

func (*DBGetPlayerInfoReq) Name() string

func (*DBGetPlayerInfoReq) ProtoMessage

func (*DBGetPlayerInfoReq) ProtoMessage()

func (*DBGetPlayerInfoReq) Reset

func (m *DBGetPlayerInfoReq) Reset()

func (*DBGetPlayerInfoReq) Size

func (m *DBGetPlayerInfoReq) Size() (n int)

func (*DBGetPlayerInfoReq) String

func (m *DBGetPlayerInfoReq) String() string

func (*DBGetPlayerInfoReq) Unmarshal

func (m *DBGetPlayerInfoReq) Unmarshal(dAtA []byte) error

func (*DBGetPlayerInfoReq) XXX_DiscardUnknown

func (m *DBGetPlayerInfoReq) XXX_DiscardUnknown()

func (*DBGetPlayerInfoReq) XXX_Marshal

func (m *DBGetPlayerInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBGetPlayerInfoReq) XXX_Merge

func (m *DBGetPlayerInfoReq) XXX_Merge(src proto.Message)

func (*DBGetPlayerInfoReq) XXX_MessageName

func (*DBGetPlayerInfoReq) XXX_MessageName() string

func (*DBGetPlayerInfoReq) XXX_Size

func (m *DBGetPlayerInfoReq) XXX_Size() int

func (*DBGetPlayerInfoReq) XXX_Unmarshal

func (m *DBGetPlayerInfoReq) XXX_Unmarshal(b []byte) error

type DBGetPlayerTableReq

type DBGetPlayerTableReq struct {
	// 角色ID
	PID uint64 `protobuf:"varint,1,opt,name=PID,proto3" json:"PID,omitempty"`
	// 角色所在SpaceID
	SpaceID uint64 `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	// 服务器ID
	SrvID uint64 `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	// 鉴别用的唯一Key
	BackKey uint64 `protobuf:"varint,4,opt,name=BackKey,proto3" json:"BackKey,omitempty"`
	// 表名
	Table string `protobuf:"bytes,5,opt,name=Table,proto3" json:"Table,omitempty"`
	// 结果集返回的最大记录数
	Limit int32 `protobuf:"varint,6,opt,name=Limit,proto3" json:"Limit,omitempty"`
}

DBGetPlayerTableReq 获取角色信息,单表指定行数

func (*DBGetPlayerTableReq) Descriptor

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

func (*DBGetPlayerTableReq) GetBackKey

func (m *DBGetPlayerTableReq) GetBackKey() uint64

func (*DBGetPlayerTableReq) GetLimit

func (m *DBGetPlayerTableReq) GetLimit() int32

func (*DBGetPlayerTableReq) GetPID

func (m *DBGetPlayerTableReq) GetPID() uint64

func (*DBGetPlayerTableReq) GetSpaceID

func (m *DBGetPlayerTableReq) GetSpaceID() uint64

func (*DBGetPlayerTableReq) GetSrvID

func (m *DBGetPlayerTableReq) GetSrvID() uint64

func (*DBGetPlayerTableReq) GetTable

func (m *DBGetPlayerTableReq) GetTable() string

func (*DBGetPlayerTableReq) Marshal

func (m *DBGetPlayerTableReq) Marshal() (dAtA []byte, err error)

func (*DBGetPlayerTableReq) MarshalTo

func (m *DBGetPlayerTableReq) MarshalTo(dAtA []byte) (int, error)

func (*DBGetPlayerTableReq) MarshalToSizedBuffer

func (m *DBGetPlayerTableReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBGetPlayerTableReq) Name

func (*DBGetPlayerTableReq) Name() string

func (*DBGetPlayerTableReq) ProtoMessage

func (*DBGetPlayerTableReq) ProtoMessage()

func (*DBGetPlayerTableReq) Reset

func (m *DBGetPlayerTableReq) Reset()

func (*DBGetPlayerTableReq) Size

func (m *DBGetPlayerTableReq) Size() (n int)

func (*DBGetPlayerTableReq) String

func (m *DBGetPlayerTableReq) String() string

func (*DBGetPlayerTableReq) Unmarshal

func (m *DBGetPlayerTableReq) Unmarshal(dAtA []byte) error

func (*DBGetPlayerTableReq) XXX_DiscardUnknown

func (m *DBGetPlayerTableReq) XXX_DiscardUnknown()

func (*DBGetPlayerTableReq) XXX_Marshal

func (m *DBGetPlayerTableReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBGetPlayerTableReq) XXX_Merge

func (m *DBGetPlayerTableReq) XXX_Merge(src proto.Message)

func (*DBGetPlayerTableReq) XXX_MessageName

func (*DBGetPlayerTableReq) XXX_MessageName() string

func (*DBGetPlayerTableReq) XXX_Size

func (m *DBGetPlayerTableReq) XXX_Size() int

func (*DBGetPlayerTableReq) XXX_Unmarshal

func (m *DBGetPlayerTableReq) XXX_Unmarshal(b []byte) error

type DBUpUserDatasReq

type DBUpUserDatasReq struct {
	PID     uint64         `protobuf:"varint,1,opt,name=PID,proto3" json:"PID,omitempty"`
	SpaceID uint64         `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	SrvID   uint64         `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	DelList []*DBDataModel `protobuf:"bytes,5,rep,name=DelList,proto3" json:"DelList,omitempty"`
	DBList  []*DBDataModel `protobuf:"bytes,6,rep,name=DBList,proto3" json:"DBList,omitempty"`
}

DBUpUserDatasReq 更新数据

func (*DBUpUserDatasReq) Descriptor

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

func (*DBUpUserDatasReq) GetDBList

func (m *DBUpUserDatasReq) GetDBList() []*DBDataModel

func (*DBUpUserDatasReq) GetDelList

func (m *DBUpUserDatasReq) GetDelList() []*DBDataModel

func (*DBUpUserDatasReq) GetPID

func (m *DBUpUserDatasReq) GetPID() uint64

func (*DBUpUserDatasReq) GetSpaceID

func (m *DBUpUserDatasReq) GetSpaceID() uint64

func (*DBUpUserDatasReq) GetSrvID

func (m *DBUpUserDatasReq) GetSrvID() uint64

func (*DBUpUserDatasReq) Marshal

func (m *DBUpUserDatasReq) Marshal() (dAtA []byte, err error)

func (*DBUpUserDatasReq) MarshalTo

func (m *DBUpUserDatasReq) MarshalTo(dAtA []byte) (int, error)

func (*DBUpUserDatasReq) MarshalToSizedBuffer

func (m *DBUpUserDatasReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DBUpUserDatasReq) Name

func (*DBUpUserDatasReq) Name() string

func (*DBUpUserDatasReq) ProtoMessage

func (*DBUpUserDatasReq) ProtoMessage()

func (*DBUpUserDatasReq) Reset

func (m *DBUpUserDatasReq) Reset()

func (*DBUpUserDatasReq) Size

func (m *DBUpUserDatasReq) Size() (n int)

func (*DBUpUserDatasReq) String

func (m *DBUpUserDatasReq) String() string

func (*DBUpUserDatasReq) Unmarshal

func (m *DBUpUserDatasReq) Unmarshal(dAtA []byte) error

func (*DBUpUserDatasReq) XXX_DiscardUnknown

func (m *DBUpUserDatasReq) XXX_DiscardUnknown()

func (*DBUpUserDatasReq) XXX_Marshal

func (m *DBUpUserDatasReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DBUpUserDatasReq) XXX_Merge

func (m *DBUpUserDatasReq) XXX_Merge(src proto.Message)

func (*DBUpUserDatasReq) XXX_MessageName

func (*DBUpUserDatasReq) XXX_MessageName() string

func (*DBUpUserDatasReq) XXX_Size

func (m *DBUpUserDatasReq) XXX_Size() int

func (*DBUpUserDatasReq) XXX_Unmarshal

func (m *DBUpUserDatasReq) XXX_Unmarshal(b []byte) error

type DataType

type DataType int32

数据类型枚举

const (
	DataType_Type_None     DataType = 0
	DataType_Type_int8     DataType = 1
	DataType_Type_int16    DataType = 2
	DataType_Type_int32    DataType = 3
	DataType_Type_int64    DataType = 4
	DataType_Type_uint8    DataType = 5
	DataType_Type_uint16   DataType = 6
	DataType_Type_uint32   DataType = 7
	DataType_Type_uint64   DataType = 8
	DataType_Type_float32  DataType = 9
	DataType_Type_float64  DataType = 10
	DataType_Type_bool     DataType = 11
	DataType_Type_string   DataType = 12
	DataType_Type_protoMsg DataType = 13
)

func (DataType) EnumDescriptor

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

func (DataType) String

func (x DataType) String() string

type DestroyEntityReqSrv

type DestroyEntityReqSrv struct {
	//对象的唯一ID
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	// 这消息源的服务器ID
	SrcSrvID uint64 `protobuf:"varint,11,opt,name=SrcSrvID,proto3" json:"SrcSrvID,omitempty"`
	// 空间ID,没有就为0
	SrcSpaceID uint64 `protobuf:"varint,12,opt,name=SrcSpaceID,proto3" json:"SrcSpaceID,omitempty"`
	// 对象ID,没有就为0
	SrcEntityID uint64 `protobuf:"varint,13,opt,name=SrcEntityID,proto3" json:"SrcEntityID,omitempty"`
	//回复的时候,需要带回的回调ID
	CallbackID uint64 `protobuf:"varint,14,opt,name=CallbackID,proto3" json:"CallbackID,omitempty"`
}

DestroyEntityReqSrv 请求删除实体消息

func (*DestroyEntityReqSrv) Descriptor

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

func (*DestroyEntityReqSrv) GetCallbackID

func (m *DestroyEntityReqSrv) GetCallbackID() uint64

func (*DestroyEntityReqSrv) GetEntityID

func (m *DestroyEntityReqSrv) GetEntityID() uint64

func (*DestroyEntityReqSrv) GetSrcEntityID

func (m *DestroyEntityReqSrv) GetSrcEntityID() uint64

func (*DestroyEntityReqSrv) GetSrcSpaceID

func (m *DestroyEntityReqSrv) GetSrcSpaceID() uint64

func (*DestroyEntityReqSrv) GetSrcSrvID

func (m *DestroyEntityReqSrv) GetSrcSrvID() uint64

func (*DestroyEntityReqSrv) Marshal

func (m *DestroyEntityReqSrv) Marshal() (dAtA []byte, err error)

func (*DestroyEntityReqSrv) MarshalTo

func (m *DestroyEntityReqSrv) MarshalTo(dAtA []byte) (int, error)

func (*DestroyEntityReqSrv) MarshalToSizedBuffer

func (m *DestroyEntityReqSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DestroyEntityReqSrv) Name

func (*DestroyEntityReqSrv) Name() string

func (*DestroyEntityReqSrv) ProtoMessage

func (*DestroyEntityReqSrv) ProtoMessage()

func (*DestroyEntityReqSrv) Reset

func (m *DestroyEntityReqSrv) Reset()

func (*DestroyEntityReqSrv) Size

func (m *DestroyEntityReqSrv) Size() (n int)

func (*DestroyEntityReqSrv) String

func (m *DestroyEntityReqSrv) String() string

func (*DestroyEntityReqSrv) Unmarshal

func (m *DestroyEntityReqSrv) Unmarshal(dAtA []byte) error

func (*DestroyEntityReqSrv) XXX_DiscardUnknown

func (m *DestroyEntityReqSrv) XXX_DiscardUnknown()

func (*DestroyEntityReqSrv) XXX_Marshal

func (m *DestroyEntityReqSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestroyEntityReqSrv) XXX_Merge

func (m *DestroyEntityReqSrv) XXX_Merge(src proto.Message)

func (*DestroyEntityReqSrv) XXX_MessageName

func (*DestroyEntityReqSrv) XXX_MessageName() string

func (*DestroyEntityReqSrv) XXX_Size

func (m *DestroyEntityReqSrv) XXX_Size() int

func (*DestroyEntityReqSrv) XXX_Unmarshal

func (m *DestroyEntityReqSrv) XXX_Unmarshal(b []byte) error

type DestroyEntityRetSrv

type DestroyEntityRetSrv struct {
	// 被Destroy的对象ID
	DestroyEntityID uint64 `protobuf:"varint,1,opt,name=DestroyEntityID,proto3" json:"DestroyEntityID,omitempty"`
	// 回复的时候,需要带回的回调ID
	CallbackID uint64 `protobuf:"varint,14,opt,name=CallbackID,proto3" json:"CallbackID,omitempty"`
	// 回复信息
	ResultMsg *CodeRet `protobuf:"bytes,15,opt,name=ResultMsg,proto3" json:"ResultMsg,omitempty"`
}

DestroyEntityRetSrv 销毁实体返回

func (*DestroyEntityRetSrv) Descriptor

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

func (*DestroyEntityRetSrv) GetCallbackID

func (m *DestroyEntityRetSrv) GetCallbackID() uint64

func (*DestroyEntityRetSrv) GetDestroyEntityID

func (m *DestroyEntityRetSrv) GetDestroyEntityID() uint64

func (*DestroyEntityRetSrv) GetResultMsg

func (m *DestroyEntityRetSrv) GetResultMsg() *CodeRet

func (*DestroyEntityRetSrv) Marshal

func (m *DestroyEntityRetSrv) Marshal() (dAtA []byte, err error)

func (*DestroyEntityRetSrv) MarshalTo

func (m *DestroyEntityRetSrv) MarshalTo(dAtA []byte) (int, error)

func (*DestroyEntityRetSrv) MarshalToSizedBuffer

func (m *DestroyEntityRetSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DestroyEntityRetSrv) Name

func (*DestroyEntityRetSrv) Name() string

func (*DestroyEntityRetSrv) ProtoMessage

func (*DestroyEntityRetSrv) ProtoMessage()

func (*DestroyEntityRetSrv) Reset

func (m *DestroyEntityRetSrv) Reset()

func (*DestroyEntityRetSrv) Size

func (m *DestroyEntityRetSrv) Size() (n int)

func (*DestroyEntityRetSrv) String

func (m *DestroyEntityRetSrv) String() string

func (*DestroyEntityRetSrv) Unmarshal

func (m *DestroyEntityRetSrv) Unmarshal(dAtA []byte) error

func (*DestroyEntityRetSrv) XXX_DiscardUnknown

func (m *DestroyEntityRetSrv) XXX_DiscardUnknown()

func (*DestroyEntityRetSrv) XXX_Marshal

func (m *DestroyEntityRetSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DestroyEntityRetSrv) XXX_Merge

func (m *DestroyEntityRetSrv) XXX_Merge(src proto.Message)

func (*DestroyEntityRetSrv) XXX_MessageName

func (*DestroyEntityRetSrv) XXX_MessageName() string

func (*DestroyEntityRetSrv) XXX_Size

func (m *DestroyEntityRetSrv) XXX_Size() int

func (*DestroyEntityRetSrv) XXX_Unmarshal

func (m *DestroyEntityRetSrv) XXX_Unmarshal(b []byte) error

type EntityMsgRet

type EntityMsgRet struct {
	// 对象实例ID
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	// 消息ID
	MsgID uint32 `protobuf:"varint,10,opt,name=MsgID,proto3" json:"MsgID,omitempty"`
	// 消息体,只有数据
	MsgContent []byte `protobuf:"bytes,11,opt,name=MsgContent,proto3" json:"MsgContent,omitempty"`
}

EntityMsgRet 回复给客户端指定对象的消息

func (*EntityMsgRet) Descriptor

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

func (*EntityMsgRet) GetEntityID

func (m *EntityMsgRet) GetEntityID() uint64

func (*EntityMsgRet) GetMsgContent

func (m *EntityMsgRet) GetMsgContent() []byte

func (*EntityMsgRet) GetMsgID

func (m *EntityMsgRet) GetMsgID() uint32

func (*EntityMsgRet) Marshal

func (m *EntityMsgRet) Marshal() (dAtA []byte, err error)

func (*EntityMsgRet) MarshalTo

func (m *EntityMsgRet) MarshalTo(dAtA []byte) (int, error)

func (*EntityMsgRet) MarshalToSizedBuffer

func (m *EntityMsgRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EntityMsgRet) Name

func (*EntityMsgRet) Name() string

func (*EntityMsgRet) ProtoMessage

func (*EntityMsgRet) ProtoMessage()

func (*EntityMsgRet) Reset

func (m *EntityMsgRet) Reset()

func (*EntityMsgRet) Size

func (m *EntityMsgRet) Size() (n int)

func (*EntityMsgRet) String

func (m *EntityMsgRet) String() string

func (*EntityMsgRet) Unmarshal

func (m *EntityMsgRet) Unmarshal(dAtA []byte) error

func (*EntityMsgRet) XXX_DiscardUnknown

func (m *EntityMsgRet) XXX_DiscardUnknown()

func (*EntityMsgRet) XXX_Marshal

func (m *EntityMsgRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityMsgRet) XXX_Merge

func (m *EntityMsgRet) XXX_Merge(src proto.Message)

func (*EntityMsgRet) XXX_MessageName

func (*EntityMsgRet) XXX_MessageName() string

func (*EntityMsgRet) XXX_Size

func (m *EntityMsgRet) XXX_Size() int

func (*EntityMsgRet) XXX_Unmarshal

func (m *EntityMsgRet) XXX_Unmarshal(b []byte) error

type EntityRPCReq

type EntityRPCReq struct {
	// 对象实例ID 这个ID一般是在Getway等管理客户商会话的服务器上设置的
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	// 服务器类型
	SrvType uint32 `protobuf:"varint,2,opt,name=SrvType,proto3" json:"SrvType,omitempty"`
	// RPC消息名
	PRCName string `protobuf:"bytes,10,opt,name=PRCName,proto3" json:"PRCName,omitempty"`
	// 消息体,默认为:第一个byte表示消息号,后面的表示数据;
	MsgContent []byte `protobuf:"bytes,11,opt,name=MsgContent,proto3" json:"MsgContent,omitempty"`
}

EntityRPCReq 客户端发来给自己在其他服务器上的RPC消息

func (*EntityRPCReq) Descriptor

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

func (*EntityRPCReq) GetEntityID

func (m *EntityRPCReq) GetEntityID() uint64

func (*EntityRPCReq) GetMsgContent

func (m *EntityRPCReq) GetMsgContent() []byte

func (*EntityRPCReq) GetPRCName

func (m *EntityRPCReq) GetPRCName() string

func (*EntityRPCReq) GetSrvType

func (m *EntityRPCReq) GetSrvType() uint32

func (*EntityRPCReq) Marshal

func (m *EntityRPCReq) Marshal() (dAtA []byte, err error)

func (*EntityRPCReq) MarshalTo

func (m *EntityRPCReq) MarshalTo(dAtA []byte) (int, error)

func (*EntityRPCReq) MarshalToSizedBuffer

func (m *EntityRPCReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EntityRPCReq) Name

func (*EntityRPCReq) Name() string

func (*EntityRPCReq) ProtoMessage

func (*EntityRPCReq) ProtoMessage()

func (*EntityRPCReq) Reset

func (m *EntityRPCReq) Reset()

func (*EntityRPCReq) Size

func (m *EntityRPCReq) Size() (n int)

func (*EntityRPCReq) String

func (m *EntityRPCReq) String() string

func (*EntityRPCReq) Unmarshal

func (m *EntityRPCReq) Unmarshal(dAtA []byte) error

func (*EntityRPCReq) XXX_DiscardUnknown

func (m *EntityRPCReq) XXX_DiscardUnknown()

func (*EntityRPCReq) XXX_Marshal

func (m *EntityRPCReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EntityRPCReq) XXX_Merge

func (m *EntityRPCReq) XXX_Merge(src proto.Message)

func (*EntityRPCReq) XXX_MessageName

func (*EntityRPCReq) XXX_MessageName() string

func (*EntityRPCReq) XXX_Size

func (m *EntityRPCReq) XXX_Size() int

func (*EntityRPCReq) XXX_Unmarshal

func (m *EntityRPCReq) XXX_Unmarshal(b []byte) error

type FieldData

type FieldData struct {
	// 对应的消息号
	MsgID uint64 `protobuf:"varint,1,opt,name=MsgID,proto3" json:"MsgID,omitempty"`
	// 二进制数据
	Buffer []byte `protobuf:"bytes,2,opt,name=Buffer,proto3" json:"Buffer,omitempty"`
}

差量数据更新包单字段

func (*FieldData) Descriptor

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

func (*FieldData) GetBuffer

func (m *FieldData) GetBuffer() []byte

func (*FieldData) GetMsgID

func (m *FieldData) GetMsgID() uint64

func (*FieldData) Marshal

func (m *FieldData) Marshal() (dAtA []byte, err error)

func (*FieldData) MarshalTo

func (m *FieldData) MarshalTo(dAtA []byte) (int, error)

func (*FieldData) MarshalToSizedBuffer

func (m *FieldData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FieldData) Name

func (*FieldData) Name() string

func (*FieldData) ProtoMessage

func (*FieldData) ProtoMessage()

func (*FieldData) Reset

func (m *FieldData) Reset()

func (*FieldData) Size

func (m *FieldData) Size() (n int)

func (*FieldData) String

func (m *FieldData) String() string

func (*FieldData) Unmarshal

func (m *FieldData) Unmarshal(dAtA []byte) error

func (*FieldData) XXX_DiscardUnknown

func (m *FieldData) XXX_DiscardUnknown()

func (*FieldData) XXX_Marshal

func (m *FieldData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FieldData) XXX_Merge

func (m *FieldData) XXX_Merge(src proto.Message)

func (*FieldData) XXX_MessageName

func (*FieldData) XXX_MessageName() string

func (*FieldData) XXX_Size

func (m *FieldData) XXX_Size() int

func (*FieldData) XXX_Unmarshal

func (m *FieldData) XXX_Unmarshal(b []byte) error

type ForwardMsgSrv

type ForwardMsgSrv struct {
	// 接入对象的唯一ID
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	// 接收对象所在的SpaceID
	SpaceID uint64 `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	// 接收对象所在的服务器ID
	SrvID uint64 `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	// 服务器类型 如果是客户端类型,先确定本服会不会有会话,再会去找getway服务器
	SrvType uint32 `protobuf:"varint,4,opt,name=SrvType,proto3" json:"SrvType,omitempty"`
	// 消息体,默认为:前二个byte表示消息号,后面的表示数据;
	MsgContent []byte `protobuf:"bytes,11,opt,name=MsgContent,proto3" json:"MsgContent,omitempty"`
}

ForwardMsgSrv 转发MSG消息到目标服务器,这个消息只会在service上处理

func (*ForwardMsgSrv) Descriptor

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

func (*ForwardMsgSrv) GetEntityID

func (m *ForwardMsgSrv) GetEntityID() uint64

func (*ForwardMsgSrv) GetMsgContent

func (m *ForwardMsgSrv) GetMsgContent() []byte

func (*ForwardMsgSrv) GetSpaceID

func (m *ForwardMsgSrv) GetSpaceID() uint64

func (*ForwardMsgSrv) GetSrvID

func (m *ForwardMsgSrv) GetSrvID() uint64

func (*ForwardMsgSrv) GetSrvType

func (m *ForwardMsgSrv) GetSrvType() uint32

func (*ForwardMsgSrv) Marshal

func (m *ForwardMsgSrv) Marshal() (dAtA []byte, err error)

func (*ForwardMsgSrv) MarshalTo

func (m *ForwardMsgSrv) MarshalTo(dAtA []byte) (int, error)

func (*ForwardMsgSrv) MarshalToSizedBuffer

func (m *ForwardMsgSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ForwardMsgSrv) Name

func (*ForwardMsgSrv) Name() string

func (*ForwardMsgSrv) ProtoMessage

func (*ForwardMsgSrv) ProtoMessage()

func (*ForwardMsgSrv) Reset

func (m *ForwardMsgSrv) Reset()

func (*ForwardMsgSrv) Size

func (m *ForwardMsgSrv) Size() (n int)

func (*ForwardMsgSrv) String

func (m *ForwardMsgSrv) String() string

func (*ForwardMsgSrv) Unmarshal

func (m *ForwardMsgSrv) Unmarshal(dAtA []byte) error

func (*ForwardMsgSrv) XXX_DiscardUnknown

func (m *ForwardMsgSrv) XXX_DiscardUnknown()

func (*ForwardMsgSrv) XXX_Marshal

func (m *ForwardMsgSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ForwardMsgSrv) XXX_Merge

func (m *ForwardMsgSrv) XXX_Merge(src proto.Message)

func (*ForwardMsgSrv) XXX_MessageName

func (*ForwardMsgSrv) XXX_MessageName() string

func (*ForwardMsgSrv) XXX_Size

func (m *ForwardMsgSrv) XXX_Size() int

func (*ForwardMsgSrv) XXX_Unmarshal

func (m *ForwardMsgSrv) XXX_Unmarshal(b []byte) error

type ForwardRPCSrv

type ForwardRPCSrv struct {
	// 接入对象的唯一ID
	EntityID uint64 `protobuf:"varint,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"`
	// 接收对象所在的SpaceID
	SpaceID uint64 `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	// 接收对象所在的服务器ID
	SrvID uint64 `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	// 服务器类型 如果是客户端类型,先确定本服会不会有会话,再会去找getway服务器
	SrvType uint32 `protobuf:"varint,4,opt,name=SrvType,proto3" json:"SrvType,omitempty"`
	// 消息对应的函数名
	RPCName string `protobuf:"bytes,10,opt,name=RPCName,proto3" json:"RPCName,omitempty"`
	// 消息体,默认为:第一个byte表示消息号,后面的表示数据;
	MsgContent []byte `protobuf:"bytes,11,opt,name=MsgContent,proto3" json:"MsgContent,omitempty"`
}

ForwardRPCSrv 转发RPC消息到目标服务器,这个消息只会在service上处理

func (*ForwardRPCSrv) Descriptor

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

func (*ForwardRPCSrv) GetEntityID

func (m *ForwardRPCSrv) GetEntityID() uint64

func (*ForwardRPCSrv) GetMsgContent

func (m *ForwardRPCSrv) GetMsgContent() []byte

func (*ForwardRPCSrv) GetRPCName

func (m *ForwardRPCSrv) GetRPCName() string

func (*ForwardRPCSrv) GetSpaceID

func (m *ForwardRPCSrv) GetSpaceID() uint64

func (*ForwardRPCSrv) GetSrvID

func (m *ForwardRPCSrv) GetSrvID() uint64

func (*ForwardRPCSrv) GetSrvType

func (m *ForwardRPCSrv) GetSrvType() uint32

func (*ForwardRPCSrv) Marshal

func (m *ForwardRPCSrv) Marshal() (dAtA []byte, err error)

func (*ForwardRPCSrv) MarshalTo

func (m *ForwardRPCSrv) MarshalTo(dAtA []byte) (int, error)

func (*ForwardRPCSrv) MarshalToSizedBuffer

func (m *ForwardRPCSrv) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ForwardRPCSrv) Name

func (*ForwardRPCSrv) Name() string

func (*ForwardRPCSrv) ProtoMessage

func (*ForwardRPCSrv) ProtoMessage()

func (*ForwardRPCSrv) Reset

func (m *ForwardRPCSrv) Reset()

func (*ForwardRPCSrv) Size

func (m *ForwardRPCSrv) Size() (n int)

func (*ForwardRPCSrv) String

func (m *ForwardRPCSrv) String() string

func (*ForwardRPCSrv) Unmarshal

func (m *ForwardRPCSrv) Unmarshal(dAtA []byte) error

func (*ForwardRPCSrv) XXX_DiscardUnknown

func (m *ForwardRPCSrv) XXX_DiscardUnknown()

func (*ForwardRPCSrv) XXX_Marshal

func (m *ForwardRPCSrv) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ForwardRPCSrv) XXX_Merge

func (m *ForwardRPCSrv) XXX_Merge(src proto.Message)

func (*ForwardRPCSrv) XXX_MessageName

func (*ForwardRPCSrv) XXX_MessageName() string

func (*ForwardRPCSrv) XXX_Size

func (m *ForwardRPCSrv) XXX_Size() int

func (*ForwardRPCSrv) XXX_Unmarshal

func (m *ForwardRPCSrv) XXX_Unmarshal(b []byte) error

type Hangup

type Hangup struct {
}

结束链接消息

func (*Hangup) Descriptor

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

func (*Hangup) Marshal

func (m *Hangup) Marshal() (dAtA []byte, err error)

func (*Hangup) MarshalTo

func (m *Hangup) MarshalTo(dAtA []byte) (int, error)

func (*Hangup) MarshalToSizedBuffer

func (m *Hangup) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Hangup) Name

func (*Hangup) Name() string

func (*Hangup) ProtoMessage

func (*Hangup) ProtoMessage()

func (*Hangup) Reset

func (m *Hangup) Reset()

func (*Hangup) Size

func (m *Hangup) Size() (n int)

func (*Hangup) String

func (m *Hangup) String() string

func (*Hangup) Unmarshal

func (m *Hangup) Unmarshal(dAtA []byte) error

func (*Hangup) XXX_DiscardUnknown

func (m *Hangup) XXX_DiscardUnknown()

func (*Hangup) XXX_Marshal

func (m *Hangup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hangup) XXX_Merge

func (m *Hangup) XXX_Merge(src proto.Message)

func (*Hangup) XXX_MessageName

func (*Hangup) XXX_MessageName() string

func (*Hangup) XXX_Size

func (m *Hangup) XXX_Size() int

func (*Hangup) XXX_Unmarshal

func (m *Hangup) XXX_Unmarshal(b []byte) error

type HeartBeat

type HeartBeat struct {
}

心跳消息

func (*HeartBeat) Descriptor

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

func (*HeartBeat) Marshal

func (m *HeartBeat) Marshal() (dAtA []byte, err error)

func (*HeartBeat) MarshalTo

func (m *HeartBeat) MarshalTo(dAtA []byte) (int, error)

func (*HeartBeat) MarshalToSizedBuffer

func (m *HeartBeat) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HeartBeat) Name

func (*HeartBeat) Name() string

func (*HeartBeat) ProtoMessage

func (*HeartBeat) ProtoMessage()

func (*HeartBeat) Reset

func (m *HeartBeat) Reset()

func (*HeartBeat) Size

func (m *HeartBeat) Size() (n int)

func (*HeartBeat) String

func (m *HeartBeat) String() string

func (*HeartBeat) Unmarshal

func (m *HeartBeat) Unmarshal(dAtA []byte) error

func (*HeartBeat) XXX_DiscardUnknown

func (m *HeartBeat) XXX_DiscardUnknown()

func (*HeartBeat) XXX_Marshal

func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeartBeat) XXX_Merge

func (m *HeartBeat) XXX_Merge(src proto.Message)

func (*HeartBeat) XXX_MessageName

func (*HeartBeat) XXX_MessageName() string

func (*HeartBeat) XXX_Size

func (m *HeartBeat) XXX_Size() int

func (*HeartBeat) XXX_Unmarshal

func (m *HeartBeat) XXX_Unmarshal(b []byte) error

type IArgs

type IArgs interface {
	// 新的使用字段名就可以更新数据的逻辑
	UpdateField(keyname, field string) error
}

type MsgRet

type MsgRet struct {
	// 0表示成功,其他都是错误码
	RetCode int32 `protobuf:"varint,1,opt,name=RetCode,proto3" json:"RetCode,omitempty"`
	//回复给哪个消息号
	RetMsgID uint32 `protobuf:"varint,2,opt,name=RetMsgID,proto3" json:"RetMsgID,omitempty"`
	// 如果是错误回复,可能需要参数;
	Params []*RespParam `protobuf:"bytes,3,rep,name=Params,proto3" json:"Params,omitempty"`
}

消息回复,用户通过的成功回复和错误信息回复

func (*MsgRet) Descriptor

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

func (*MsgRet) GetParams

func (m *MsgRet) GetParams() []*RespParam

func (*MsgRet) GetRetCode

func (m *MsgRet) GetRetCode() int32

func (*MsgRet) GetRetMsgID

func (m *MsgRet) GetRetMsgID() uint32

func (*MsgRet) Marshal

func (m *MsgRet) Marshal() (dAtA []byte, err error)

func (*MsgRet) MarshalTo

func (m *MsgRet) MarshalTo(dAtA []byte) (int, error)

func (*MsgRet) MarshalToSizedBuffer

func (m *MsgRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRet) Name

func (*MsgRet) Name() string

func (*MsgRet) ProtoMessage

func (*MsgRet) ProtoMessage()

func (*MsgRet) Reset

func (m *MsgRet) Reset()

func (*MsgRet) Size

func (m *MsgRet) Size() (n int)

func (*MsgRet) String

func (m *MsgRet) String() string

func (*MsgRet) Unmarshal

func (m *MsgRet) Unmarshal(dAtA []byte) error

func (*MsgRet) XXX_DiscardUnknown

func (m *MsgRet) XXX_DiscardUnknown()

func (*MsgRet) XXX_Marshal

func (m *MsgRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRet) XXX_Merge

func (m *MsgRet) XXX_Merge(src proto.Message)

func (*MsgRet) XXX_MessageName

func (*MsgRet) XXX_MessageName() string

func (*MsgRet) XXX_Size

func (m *MsgRet) XXX_Size() int

func (*MsgRet) XXX_Unmarshal

func (m *MsgRet) XXX_Unmarshal(b []byte) error

type OtherGetPlayerInfoReq

type OtherGetPlayerInfoReq struct {
	PID      uint64   `protobuf:"varint,1,opt,name=PID,proto3" json:"PID,omitempty"`
	SpaceID  uint64   `protobuf:"varint,2,opt,name=SpaceID,proto3" json:"SpaceID,omitempty"`
	SrvID    uint64   `protobuf:"varint,3,opt,name=SrvID,proto3" json:"SrvID,omitempty"`
	BackKey  uint64   `protobuf:"varint,4,opt,name=BackKey,proto3" json:"BackKey,omitempty"`
	SrvNames []string `protobuf:"bytes,5,rep,name=SrvNames,proto3" json:"SrvNames,omitempty"`
}

其他服请求系统数据

func (*OtherGetPlayerInfoReq) Descriptor

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

func (*OtherGetPlayerInfoReq) GetBackKey

func (m *OtherGetPlayerInfoReq) GetBackKey() uint64

func (*OtherGetPlayerInfoReq) GetPID

func (m *OtherGetPlayerInfoReq) GetPID() uint64

func (*OtherGetPlayerInfoReq) GetSpaceID

func (m *OtherGetPlayerInfoReq) GetSpaceID() uint64

func (*OtherGetPlayerInfoReq) GetSrvID

func (m *OtherGetPlayerInfoReq) GetSrvID() uint64

func (*OtherGetPlayerInfoReq) GetSrvNames

func (m *OtherGetPlayerInfoReq) GetSrvNames() []string

func (*OtherGetPlayerInfoReq) Marshal

func (m *OtherGetPlayerInfoReq) Marshal() (dAtA []byte, err error)

func (*OtherGetPlayerInfoReq) MarshalTo

func (m *OtherGetPlayerInfoReq) MarshalTo(dAtA []byte) (int, error)

func (*OtherGetPlayerInfoReq) MarshalToSizedBuffer

func (m *OtherGetPlayerInfoReq) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OtherGetPlayerInfoReq) Name

func (*OtherGetPlayerInfoReq) Name() string

func (*OtherGetPlayerInfoReq) ProtoMessage

func (*OtherGetPlayerInfoReq) ProtoMessage()

func (*OtherGetPlayerInfoReq) Reset

func (m *OtherGetPlayerInfoReq) Reset()

func (*OtherGetPlayerInfoReq) Size

func (m *OtherGetPlayerInfoReq) Size() (n int)

func (*OtherGetPlayerInfoReq) String

func (m *OtherGetPlayerInfoReq) String() string

func (*OtherGetPlayerInfoReq) Unmarshal

func (m *OtherGetPlayerInfoReq) Unmarshal(dAtA []byte) error

func (*OtherGetPlayerInfoReq) XXX_DiscardUnknown

func (m *OtherGetPlayerInfoReq) XXX_DiscardUnknown()

func (*OtherGetPlayerInfoReq) XXX_Marshal

func (m *OtherGetPlayerInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OtherGetPlayerInfoReq) XXX_Merge

func (m *OtherGetPlayerInfoReq) XXX_Merge(src proto.Message)

func (*OtherGetPlayerInfoReq) XXX_MessageName

func (*OtherGetPlayerInfoReq) XXX_MessageName() string

func (*OtherGetPlayerInfoReq) XXX_Size

func (m *OtherGetPlayerInfoReq) XXX_Size() int

func (*OtherGetPlayerInfoReq) XXX_Unmarshal

func (m *OtherGetPlayerInfoReq) XXX_Unmarshal(b []byte) error

type OtherUpUserDatasRet

type OtherUpUserDatasRet struct {
	Data        *DBUpUserDatasReq `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
	ServiceName string            `protobuf:"bytes,2,opt,name=ServiceName,proto3" json:"ServiceName,omitempty"`
}

OtherUpUserDatasRet 更新他服数据

func (*OtherUpUserDatasRet) Descriptor

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

func (*OtherUpUserDatasRet) GetData

func (m *OtherUpUserDatasRet) GetData() *DBUpUserDatasReq

func (*OtherUpUserDatasRet) GetServiceName

func (m *OtherUpUserDatasRet) GetServiceName() string

func (*OtherUpUserDatasRet) Marshal

func (m *OtherUpUserDatasRet) Marshal() (dAtA []byte, err error)

func (*OtherUpUserDatasRet) MarshalTo

func (m *OtherUpUserDatasRet) MarshalTo(dAtA []byte) (int, error)

func (*OtherUpUserDatasRet) MarshalToSizedBuffer

func (m *OtherUpUserDatasRet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*OtherUpUserDatasRet) Name

func (*OtherUpUserDatasRet) Name() string

func (*OtherUpUserDatasRet) ProtoMessage

func (*OtherUpUserDatasRet) ProtoMessage()

func (*OtherUpUserDatasRet) Reset

func (m *OtherUpUserDatasRet) Reset()

func (*OtherUpUserDatasRet) Size

func (m *OtherUpUserDatasRet) Size() (n int)

func (*OtherUpUserDatasRet) String

func (m *OtherUpUserDatasRet) String() string

func (*OtherUpUserDatasRet) Unmarshal

func (m *OtherUpUserDatasRet) Unmarshal(dAtA []byte) error

func (*OtherUpUserDatasRet) XXX_DiscardUnknown

func (m *OtherUpUserDatasRet) XXX_DiscardUnknown()

func (*OtherUpUserDatasRet) XXX_Marshal

func (m *OtherUpUserDatasRet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OtherUpUserDatasRet) XXX_Merge

func (m *OtherUpUserDatasRet) XXX_Merge(src proto.Message)

func (*OtherUpUserDatasRet) XXX_MessageName

func (*OtherUpUserDatasRet) XXX_MessageName() string

func (*OtherUpUserDatasRet) XXX_Size

func (m *OtherUpUserDatasRet) XXX_Size() int

func (*OtherUpUserDatasRet) XXX_Unmarshal

func (m *OtherUpUserDatasRet) XXX_Unmarshal(b []byte) error

type RespParam

type RespParam struct {
	// Types that are valid to be assigned to ParamValue:
	//	*RespParam_Int32Value
	//	*RespParam_Uint32Value
	//	*RespParam_Int64Value
	//	*RespParam_Uint64Value
	//	*RespParam_FloatValue
	//	*RespParam_DoubleValue
	//	*RespParam_StringValue
	//	*RespParam_BoolValue
	ParamValue isRespParam_ParamValue `protobuf_oneof:"ParamValue"`
}

回包参数

func (*RespParam) Descriptor

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

func (*RespParam) GetBoolValue

func (m *RespParam) GetBoolValue() bool

func (*RespParam) GetDoubleValue

func (m *RespParam) GetDoubleValue() float64

func (*RespParam) GetFloatValue

func (m *RespParam) GetFloatValue() float32

func (*RespParam) GetInt32Value

func (m *RespParam) GetInt32Value() int32

func (*RespParam) GetInt64Value

func (m *RespParam) GetInt64Value() int64

func (*RespParam) GetParamValue

func (m *RespParam) GetParamValue() isRespParam_ParamValue

func (*RespParam) GetStringValue

func (m *RespParam) GetStringValue() string

func (*RespParam) GetUint32Value

func (m *RespParam) GetUint32Value() uint32

func (*RespParam) GetUint64Value

func (m *RespParam) GetUint64Value() uint64

func (*RespParam) Marshal

func (m *RespParam) Marshal() (dAtA []byte, err error)

func (*RespParam) MarshalTo

func (m *RespParam) MarshalTo(dAtA []byte) (int, error)

func (*RespParam) MarshalToSizedBuffer

func (m *RespParam) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam) Name

func (*RespParam) Name() string

func (*RespParam) ProtoMessage

func (*RespParam) ProtoMessage()

func (*RespParam) Reset

func (m *RespParam) Reset()

func (*RespParam) Size

func (m *RespParam) Size() (n int)

func (*RespParam) String

func (m *RespParam) String() string

func (*RespParam) Unmarshal

func (m *RespParam) Unmarshal(dAtA []byte) error

func (*RespParam) XXX_DiscardUnknown

func (m *RespParam) XXX_DiscardUnknown()

func (*RespParam) XXX_Marshal

func (m *RespParam) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RespParam) XXX_Merge

func (m *RespParam) XXX_Merge(src proto.Message)

func (*RespParam) XXX_MessageName

func (*RespParam) XXX_MessageName() string

func (*RespParam) XXX_OneofWrappers

func (*RespParam) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RespParam) XXX_Size

func (m *RespParam) XXX_Size() int

func (*RespParam) XXX_Unmarshal

func (m *RespParam) XXX_Unmarshal(b []byte) error

type RespParam_BoolValue

type RespParam_BoolValue struct {
	BoolValue bool `protobuf:"varint,8,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}

func (*RespParam_BoolValue) MarshalTo

func (m *RespParam_BoolValue) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_BoolValue) MarshalToSizedBuffer

func (m *RespParam_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_BoolValue) Size

func (m *RespParam_BoolValue) Size() (n int)

type RespParam_DoubleValue

type RespParam_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
}

func (*RespParam_DoubleValue) MarshalTo

func (m *RespParam_DoubleValue) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_DoubleValue) MarshalToSizedBuffer

func (m *RespParam_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_DoubleValue) Size

func (m *RespParam_DoubleValue) Size() (n int)

type RespParam_FloatValue

type RespParam_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,5,opt,name=float_value,json=floatValue,proto3,oneof" json:"float_value,omitempty"`
}

func (*RespParam_FloatValue) MarshalTo

func (m *RespParam_FloatValue) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_FloatValue) MarshalToSizedBuffer

func (m *RespParam_FloatValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_FloatValue) Size

func (m *RespParam_FloatValue) Size() (n int)

type RespParam_Int32Value

type RespParam_Int32Value struct {
	Int32Value int32 `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3,oneof" json:"int32_value,omitempty"`
}

func (*RespParam_Int32Value) MarshalTo

func (m *RespParam_Int32Value) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_Int32Value) MarshalToSizedBuffer

func (m *RespParam_Int32Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_Int32Value) Size

func (m *RespParam_Int32Value) Size() (n int)

type RespParam_Int64Value

type RespParam_Int64Value struct {
	Int64Value int64 `protobuf:"varint,3,opt,name=int64_value,json=int64Value,proto3,oneof" json:"int64_value,omitempty"`
}

func (*RespParam_Int64Value) MarshalTo

func (m *RespParam_Int64Value) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_Int64Value) MarshalToSizedBuffer

func (m *RespParam_Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_Int64Value) Size

func (m *RespParam_Int64Value) Size() (n int)

type RespParam_StringValue

type RespParam_StringValue struct {
	StringValue string `protobuf:"bytes,7,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*RespParam_StringValue) MarshalTo

func (m *RespParam_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_StringValue) MarshalToSizedBuffer

func (m *RespParam_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_StringValue) Size

func (m *RespParam_StringValue) Size() (n int)

type RespParam_Uint32Value

type RespParam_Uint32Value struct {
	Uint32Value uint32 `protobuf:"varint,2,opt,name=uint32_value,json=uint32Value,proto3,oneof" json:"uint32_value,omitempty"`
}

func (*RespParam_Uint32Value) MarshalTo

func (m *RespParam_Uint32Value) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_Uint32Value) MarshalToSizedBuffer

func (m *RespParam_Uint32Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_Uint32Value) Size

func (m *RespParam_Uint32Value) Size() (n int)

type RespParam_Uint64Value

type RespParam_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,4,opt,name=uint64_value,json=uint64Value,proto3,oneof" json:"uint64_value,omitempty"`
}

func (*RespParam_Uint64Value) MarshalTo

func (m *RespParam_Uint64Value) MarshalTo(dAtA []byte) (int, error)

func (*RespParam_Uint64Value) MarshalToSizedBuffer

func (m *RespParam_Uint64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*RespParam_Uint64Value) Size

func (m *RespParam_Uint64Value) Size() (n int)

type ReturnLoginNtf

type ReturnLoginNtf struct {
	// 0表示成功,其他都是错误码
	RetCode int32 `protobuf:"varint,1,opt,name=RetCode,proto3" json:"RetCode,omitempty"`
	// 如果是错误回复,可能需要参数;
	Params []*RespParam `protobuf:"bytes,3,rep,name=Params,proto3" json:"Params,omitempty"`
}

通知客户端,回到登录,并告知原因

func (*ReturnLoginNtf) Descriptor

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

func (*ReturnLoginNtf) GetParams

func (m *ReturnLoginNtf) GetParams() []*RespParam

func (*ReturnLoginNtf) GetRetCode

func (m *ReturnLoginNtf) GetRetCode() int32

func (*ReturnLoginNtf) Marshal

func (m *ReturnLoginNtf) Marshal() (dAtA []byte, err error)

func (*ReturnLoginNtf) MarshalTo

func (m *ReturnLoginNtf) MarshalTo(dAtA []byte) (int, error)

func (*ReturnLoginNtf) MarshalToSizedBuffer

func (m *ReturnLoginNtf) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ReturnLoginNtf) Name

func (*ReturnLoginNtf) Name() string

func (*ReturnLoginNtf) ProtoMessage

func (*ReturnLoginNtf) ProtoMessage()

func (*ReturnLoginNtf) Reset

func (m *ReturnLoginNtf) Reset()

func (*ReturnLoginNtf) Size

func (m *ReturnLoginNtf) Size() (n int)

func (*ReturnLoginNtf) String

func (m *ReturnLoginNtf) String() string

func (*ReturnLoginNtf) Unmarshal

func (m *ReturnLoginNtf) Unmarshal(dAtA []byte) error

func (*ReturnLoginNtf) XXX_DiscardUnknown

func (m *ReturnLoginNtf) XXX_DiscardUnknown()

func (*ReturnLoginNtf) XXX_Marshal

func (m *ReturnLoginNtf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReturnLoginNtf) XXX_Merge

func (m *ReturnLoginNtf) XXX_Merge(src proto.Message)

func (*ReturnLoginNtf) XXX_MessageName

func (*ReturnLoginNtf) XXX_MessageName() string

func (*ReturnLoginNtf) XXX_Size

func (m *ReturnLoginNtf) XXX_Size() int

func (*ReturnLoginNtf) XXX_Unmarshal

func (m *ReturnLoginNtf) XXX_Unmarshal(b []byte) error

type SessClosed

type SessClosed struct {
	//连接的唯一ID
	SessUID uint64 `protobuf:"varint,1,opt,name=SessUID,proto3" json:"SessUID,omitempty"`
}

连接关闭消息处理

func (*SessClosed) Descriptor

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

func (*SessClosed) GetSessUID

func (m *SessClosed) GetSessUID() uint64

func (*SessClosed) Marshal

func (m *SessClosed) Marshal() (dAtA []byte, err error)

func (*SessClosed) MarshalTo

func (m *SessClosed) MarshalTo(dAtA []byte) (int, error)

func (*SessClosed) MarshalToSizedBuffer

func (m *SessClosed) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SessClosed) Name

func (*SessClosed) Name() string

func (*SessClosed) ProtoMessage

func (*SessClosed) ProtoMessage()

func (*SessClosed) Reset

func (m *SessClosed) Reset()

func (*SessClosed) Size

func (m *SessClosed) Size() (n int)

func (*SessClosed) String

func (m *SessClosed) String() string

func (*SessClosed) Unmarshal

func (m *SessClosed) Unmarshal(dAtA []byte) error

func (*SessClosed) XXX_DiscardUnknown

func (m *SessClosed) XXX_DiscardUnknown()

func (*SessClosed) XXX_Marshal

func (m *SessClosed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SessClosed) XXX_Merge

func (m *SessClosed) XXX_Merge(src proto.Message)

func (*SessClosed) XXX_MessageName

func (*SessClosed) XXX_MessageName() string

func (*SessClosed) XXX_Size

func (m *SessClosed) XXX_Size() int

func (*SessClosed) XXX_Unmarshal

func (m *SessClosed) XXX_Unmarshal(b []byte) error

type SyncEntityProps

type SyncEntityProps struct {
	// 对象UID
	EntityID uint64 `protobuf:"varint,1,opt,name=entityID,proto3" json:"entityID,omitempty"`
	// 对象类型
	EntityType string `protobuf:"bytes,2,opt,name=entityType,proto3" json:"entityType,omitempty"`
	// 需要同步的属性列表
	Props []*SyncProp `protobuf:"bytes,3,rep,name=Props,proto3" json:"Props,omitempty"`
}

同步属性列表通过RPCEntityRet发给客户端,客户端就知道是谁的属性变化

func (*SyncEntityProps) Descriptor

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

func (*SyncEntityProps) GetEntityID

func (m *SyncEntityProps) GetEntityID() uint64

func (*SyncEntityProps) GetEntityType

func (m *SyncEntityProps) GetEntityType() string

func (*SyncEntityProps) GetProps

func (m *SyncEntityProps) GetProps() []*SyncProp

func (*SyncEntityProps) Marshal

func (m *SyncEntityProps) Marshal() (dAtA []byte, err error)

func (*SyncEntityProps) MarshalTo

func (m *SyncEntityProps) MarshalTo(dAtA []byte) (int, error)

func (*SyncEntityProps) MarshalToSizedBuffer

func (m *SyncEntityProps) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncEntityProps) Name

func (*SyncEntityProps) Name() string

func (*SyncEntityProps) ProtoMessage

func (*SyncEntityProps) ProtoMessage()

func (*SyncEntityProps) Reset

func (m *SyncEntityProps) Reset()

func (*SyncEntityProps) Size

func (m *SyncEntityProps) Size() (n int)

func (*SyncEntityProps) String

func (m *SyncEntityProps) String() string

func (*SyncEntityProps) Unmarshal

func (m *SyncEntityProps) Unmarshal(dAtA []byte) error

func (*SyncEntityProps) XXX_DiscardUnknown

func (m *SyncEntityProps) XXX_DiscardUnknown()

func (*SyncEntityProps) XXX_Marshal

func (m *SyncEntityProps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncEntityProps) XXX_Merge

func (m *SyncEntityProps) XXX_Merge(src proto.Message)

func (*SyncEntityProps) XXX_MessageName

func (*SyncEntityProps) XXX_MessageName() string

func (*SyncEntityProps) XXX_Size

func (m *SyncEntityProps) XXX_Size() int

func (*SyncEntityProps) XXX_Unmarshal

func (m *SyncEntityProps) XXX_Unmarshal(b []byte) error

type SyncProp

type SyncProp struct {
	// 属性索引ID
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// 属性值
	//
	// Types that are valid to be assigned to PropValue:
	//
	//	*SyncProp_Int32Value
	//	*SyncProp_Uint32Value
	//	*SyncProp_Int64Value
	//	*SyncProp_Uint64Value
	//	*SyncProp_FloatValue
	//	*SyncProp_DoubleValue
	//	*SyncProp_StringValue
	//	*SyncProp_BoolValue
	//	*SyncProp_Msg_Value
	PropValue isSyncProp_PropValue `protobuf_oneof:"PropValue"`
}

同步基础结构

func (*SyncProp) Descriptor

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

func (*SyncProp) GetBoolValue

func (m *SyncProp) GetBoolValue() bool

func (*SyncProp) GetDoubleValue

func (m *SyncProp) GetDoubleValue() float64

func (*SyncProp) GetFloatValue

func (m *SyncProp) GetFloatValue() float32

func (*SyncProp) GetIndex

func (m *SyncProp) GetIndex() uint32

func (*SyncProp) GetInt32Value

func (m *SyncProp) GetInt32Value() int32

func (*SyncProp) GetInt64Value

func (m *SyncProp) GetInt64Value() int64

func (*SyncProp) GetMsg_Value

func (m *SyncProp) GetMsg_Value() []byte

func (*SyncProp) GetPropValue

func (m *SyncProp) GetPropValue() isSyncProp_PropValue

func (*SyncProp) GetStringValue

func (m *SyncProp) GetStringValue() string

func (*SyncProp) GetUint32Value

func (m *SyncProp) GetUint32Value() uint32

func (*SyncProp) GetUint64Value

func (m *SyncProp) GetUint64Value() uint64

func (*SyncProp) Marshal

func (m *SyncProp) Marshal() (dAtA []byte, err error)

func (*SyncProp) MarshalTo

func (m *SyncProp) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp) MarshalToSizedBuffer

func (m *SyncProp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp) Name

func (*SyncProp) Name() string

func (*SyncProp) ProtoMessage

func (*SyncProp) ProtoMessage()

func (*SyncProp) Reset

func (m *SyncProp) Reset()

func (*SyncProp) Size

func (m *SyncProp) Size() (n int)

func (*SyncProp) String

func (m *SyncProp) String() string

func (*SyncProp) Unmarshal

func (m *SyncProp) Unmarshal(dAtA []byte) error

func (*SyncProp) XXX_DiscardUnknown

func (m *SyncProp) XXX_DiscardUnknown()

func (*SyncProp) XXX_Marshal

func (m *SyncProp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncProp) XXX_Merge

func (m *SyncProp) XXX_Merge(src proto.Message)

func (*SyncProp) XXX_MessageName

func (*SyncProp) XXX_MessageName() string

func (*SyncProp) XXX_OneofWrappers

func (*SyncProp) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SyncProp) XXX_Size

func (m *SyncProp) XXX_Size() int

func (*SyncProp) XXX_Unmarshal

func (m *SyncProp) XXX_Unmarshal(b []byte) error

type SyncProp_BoolValue

type SyncProp_BoolValue struct {
	BoolValue bool `protobuf:"varint,9,opt,name=bool_value,json=boolValue,proto3,oneof" json:"bool_value,omitempty"`
}

func (*SyncProp_BoolValue) MarshalTo

func (m *SyncProp_BoolValue) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_BoolValue) MarshalToSizedBuffer

func (m *SyncProp_BoolValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_BoolValue) Size

func (m *SyncProp_BoolValue) Size() (n int)

type SyncProp_DoubleValue

type SyncProp_DoubleValue struct {
	DoubleValue float64 `protobuf:"fixed64,7,opt,name=double_value,json=doubleValue,proto3,oneof" json:"double_value,omitempty"`
}

func (*SyncProp_DoubleValue) MarshalTo

func (m *SyncProp_DoubleValue) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_DoubleValue) MarshalToSizedBuffer

func (m *SyncProp_DoubleValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_DoubleValue) Size

func (m *SyncProp_DoubleValue) Size() (n int)

type SyncProp_FloatValue

type SyncProp_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,6,opt,name=float_value,json=floatValue,proto3,oneof" json:"float_value,omitempty"`
}

func (*SyncProp_FloatValue) MarshalTo

func (m *SyncProp_FloatValue) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_FloatValue) MarshalToSizedBuffer

func (m *SyncProp_FloatValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_FloatValue) Size

func (m *SyncProp_FloatValue) Size() (n int)

type SyncProp_Int32Value

type SyncProp_Int32Value struct {
	Int32Value int32 `protobuf:"varint,2,opt,name=int32_value,json=int32Value,proto3,oneof" json:"int32_value,omitempty"`
}

func (*SyncProp_Int32Value) MarshalTo

func (m *SyncProp_Int32Value) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_Int32Value) MarshalToSizedBuffer

func (m *SyncProp_Int32Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_Int32Value) Size

func (m *SyncProp_Int32Value) Size() (n int)

type SyncProp_Int64Value

type SyncProp_Int64Value struct {
	Int64Value int64 `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3,oneof" json:"int64_value,omitempty"`
}

func (*SyncProp_Int64Value) MarshalTo

func (m *SyncProp_Int64Value) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_Int64Value) MarshalToSizedBuffer

func (m *SyncProp_Int64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_Int64Value) Size

func (m *SyncProp_Int64Value) Size() (n int)

type SyncProp_Msg_Value

type SyncProp_Msg_Value struct {
	Msg_Value []byte `protobuf:"bytes,10,opt,name=Msg_Value,json=MsgValue,proto3,oneof" json:"Msg_Value,omitempty"`
}

func (*SyncProp_Msg_Value) MarshalTo

func (m *SyncProp_Msg_Value) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_Msg_Value) MarshalToSizedBuffer

func (m *SyncProp_Msg_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_Msg_Value) Size

func (m *SyncProp_Msg_Value) Size() (n int)

type SyncProp_StringValue

type SyncProp_StringValue struct {
	StringValue string `protobuf:"bytes,8,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
}

func (*SyncProp_StringValue) MarshalTo

func (m *SyncProp_StringValue) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_StringValue) MarshalToSizedBuffer

func (m *SyncProp_StringValue) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_StringValue) Size

func (m *SyncProp_StringValue) Size() (n int)

type SyncProp_Uint32Value

type SyncProp_Uint32Value struct {
	Uint32Value uint32 `protobuf:"varint,3,opt,name=uint32_value,json=uint32Value,proto3,oneof" json:"uint32_value,omitempty"`
}

func (*SyncProp_Uint32Value) MarshalTo

func (m *SyncProp_Uint32Value) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_Uint32Value) MarshalToSizedBuffer

func (m *SyncProp_Uint32Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_Uint32Value) Size

func (m *SyncProp_Uint32Value) Size() (n int)

type SyncProp_Uint64Value

type SyncProp_Uint64Value struct {
	Uint64Value uint64 `protobuf:"varint,5,opt,name=uint64_value,json=uint64Value,proto3,oneof" json:"uint64_value,omitempty"`
}

func (*SyncProp_Uint64Value) MarshalTo

func (m *SyncProp_Uint64Value) MarshalTo(dAtA []byte) (int, error)

func (*SyncProp_Uint64Value) MarshalToSizedBuffer

func (m *SyncProp_Uint64Value) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SyncProp_Uint64Value) Size

func (m *SyncProp_Uint64Value) Size() (n int)

type TableData

type TableData struct {
	// 字段
	Datas map[string]*FieldData `` /* 151-byte string literal not displayed */
}

差量数据更新包

func (*TableData) Descriptor

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

func (*TableData) GetDatas

func (m *TableData) GetDatas() map[string]*FieldData

func (*TableData) Marshal

func (m *TableData) Marshal() (dAtA []byte, err error)

func (*TableData) MarshalTo

func (m *TableData) MarshalTo(dAtA []byte) (int, error)

func (*TableData) MarshalToSizedBuffer

func (m *TableData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TableData) Name

func (*TableData) Name() string

func (*TableData) ProtoMessage

func (*TableData) ProtoMessage()

func (*TableData) Reset

func (m *TableData) Reset()

func (*TableData) Scan

func (m *TableData) Scan(value interface{}) error

func (*TableData) Size

func (m *TableData) Size() (n int)

func (*TableData) String

func (m *TableData) String() string

func (*TableData) Unmarshal

func (m *TableData) Unmarshal(dAtA []byte) error

func (TableData) Value

func (m TableData) Value() (driver.Value, error)

func (*TableData) XXX_DiscardUnknown

func (m *TableData) XXX_DiscardUnknown()

func (*TableData) XXX_Marshal

func (m *TableData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TableData) XXX_Merge

func (m *TableData) XXX_Merge(src proto.Message)

func (*TableData) XXX_MessageName

func (*TableData) XXX_MessageName() string

func (*TableData) XXX_Size

func (m *TableData) XXX_Size() int

func (*TableData) XXX_Unmarshal

func (m *TableData) XXX_Unmarshal(b []byte) error

type TestHeroInfo

type TestHeroInfo struct {
	Job    int32 `protobuf:"varint,1,opt,name=Job,proto3" json:"Job,omitempty"`
	CurExp int32 `protobuf:"varint,2,opt,name=CurExp,proto3" json:"CurExp,omitempty"`
	Level  int32 `protobuf:"varint,3,opt,name=Level,proto3" json:"Level,omitempty"`
}

英雄信息

func (*TestHeroInfo) Descriptor

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

func (*TestHeroInfo) GetCurExp

func (m *TestHeroInfo) GetCurExp() int32

func (*TestHeroInfo) GetJob

func (m *TestHeroInfo) GetJob() int32

func (*TestHeroInfo) GetLevel

func (m *TestHeroInfo) GetLevel() int32

func (*TestHeroInfo) Marshal

func (m *TestHeroInfo) Marshal() (dAtA []byte, err error)

func (*TestHeroInfo) MarshalTo

func (m *TestHeroInfo) MarshalTo(dAtA []byte) (int, error)

func (*TestHeroInfo) MarshalToSizedBuffer

func (m *TestHeroInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestHeroInfo) Name

func (*TestHeroInfo) Name() string

func (*TestHeroInfo) ProtoMessage

func (*TestHeroInfo) ProtoMessage()

func (*TestHeroInfo) Reset

func (m *TestHeroInfo) Reset()

func (*TestHeroInfo) Scan

func (m *TestHeroInfo) Scan(value interface{}) error

func (*TestHeroInfo) Size

func (m *TestHeroInfo) Size() (n int)

func (*TestHeroInfo) String

func (m *TestHeroInfo) String() string

func (*TestHeroInfo) Unmarshal

func (m *TestHeroInfo) Unmarshal(dAtA []byte) error

func (TestHeroInfo) Value

func (m TestHeroInfo) Value() (driver.Value, error)

func (*TestHeroInfo) XXX_DiscardUnknown

func (m *TestHeroInfo) XXX_DiscardUnknown()

func (*TestHeroInfo) XXX_Marshal

func (m *TestHeroInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestHeroInfo) XXX_Merge

func (m *TestHeroInfo) XXX_Merge(src proto.Message)

func (*TestHeroInfo) XXX_MessageName

func (*TestHeroInfo) XXX_MessageName() string

func (*TestHeroInfo) XXX_Size

func (m *TestHeroInfo) XXX_Size() int

func (*TestHeroInfo) XXX_Unmarshal

func (m *TestHeroInfo) XXX_Unmarshal(b []byte) error

type TestTableMD

type TestTableMD struct {
	// 玩家ID
	PID uint64 `protobuf:"varint,2,opt,name=PID,proto3" json:"PID,omitempty" gorm:"primarykey;column:pid"`
	// 英雄信息
	Hero      TestHeroInfo   `protobuf:"bytes,10,opt,name=Hero,proto3" json:"Hero" gorm:"type:blob;column:hero"`
	TestCount int32          `protobuf:"varint,11,opt,name=TestCount,proto3" json:"TestCount,omitempty" gorm:"column:testcount"`
	ExData    TableData      `protobuf:"-" gorm:"column:exdata" json:"-"`
	DeletedAt gorm.DeletedAt `protobuf:"-" gorm:"index;column:delete_at" json:"-"`
	CreatedAt time.Time      `protobuf:"-" gorm:"column:created_at" json:"-"`
	UpdatedAt time.Time      `protobuf:"-" gorm:"column:updated_at" json:"-"`
	// contains filtered or unexported fields
}

测试表

func (*TestTableMD) AfterFind

func (m *TestTableMD) AfterFind(tx *gorm.DB) (err error)

func (*TestTableMD) BeforeSave

func (m *TestTableMD) BeforeSave(tx *gorm.DB) (err error)

func (*TestTableMD) Descriptor

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

func (*TestTableMD) GetHero

func (m *TestTableMD) GetHero() TestHeroInfo

func (*TestTableMD) GetIsPartial

func (*TestTableMD) GetIsPartial() bool

GetIsPartial(每个子系统都需要检查这个值返回的)是否支持单个字段更新

func (*TestTableMD) GetPID

func (m *TestTableMD) GetPID() uint64

func (*TestTableMD) GetTestCount

func (m *TestTableMD) GetTestCount() int32

func (*TestTableMD) IsDeleted

func (m *TestTableMD) IsDeleted() bool

func (*TestTableMD) KeyName

func (m *TestTableMD) KeyName() string

func (*TestTableMD) Marshal

func (m *TestTableMD) Marshal() (dAtA []byte, err error)

func (*TestTableMD) MarshalTo

func (m *TestTableMD) MarshalTo(dAtA []byte) (int, error)

func (*TestTableMD) MarshalToSizedBuffer

func (m *TestTableMD) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*TestTableMD) Name

func (*TestTableMD) Name() string

func (*TestTableMD) ProtoMessage

func (*TestTableMD) ProtoMessage()

func (*TestTableMD) Reset

func (m *TestTableMD) Reset()

func (*TestTableMD) RevokeDelete

func (m *TestTableMD) RevokeDelete()

func (*TestTableMD) SetArgs

func (m *TestTableMD) SetArgs(args IArgs)

func (*TestTableMD) SetDelete

func (m *TestTableMD) SetDelete()

func (*TestTableMD) SetDirtyHero

func (m *TestTableMD) SetDirtyHero()

func (*TestTableMD) SetDirtyPID

func (m *TestTableMD) SetDirtyPID()

func (*TestTableMD) SetDirtyTestCount

func (m *TestTableMD) SetDirtyTestCount()

func (*TestTableMD) SetHero

func (m *TestTableMD) SetHero(v TestHeroInfo)

func (*TestTableMD) SetPID

func (m *TestTableMD) SetPID(v uint64)

func (*TestTableMD) SetTestCount

func (m *TestTableMD) SetTestCount(v int32)

func (*TestTableMD) Size

func (m *TestTableMD) Size() (n int)

func (*TestTableMD) String

func (m *TestTableMD) String() string

func (*TestTableMD) TableName

func (*TestTableMD) TableName() string

TableName 拿到表名

func (*TestTableMD) Unmarshal

func (m *TestTableMD) Unmarshal(dAtA []byte) error

func (*TestTableMD) XXX_DiscardUnknown

func (m *TestTableMD) XXX_DiscardUnknown()

func (*TestTableMD) XXX_Marshal

func (m *TestTableMD) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TestTableMD) XXX_Merge

func (m *TestTableMD) XXX_Merge(src proto.Message)

func (*TestTableMD) XXX_MessageName

func (*TestTableMD) XXX_MessageName() string

func (*TestTableMD) XXX_Size

func (m *TestTableMD) XXX_Size() int

func (*TestTableMD) XXX_Unmarshal

func (m *TestTableMD) XXX_Unmarshal(b []byte) error

type UserDuplicateLoginNtf

type UserDuplicateLoginNtf struct {
}

UserDuplicateLoginNtf 玩家重复登录通知

func (*UserDuplicateLoginNtf) Descriptor

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

func (*UserDuplicateLoginNtf) Marshal

func (m *UserDuplicateLoginNtf) Marshal() (dAtA []byte, err error)

func (*UserDuplicateLoginNtf) MarshalTo

func (m *UserDuplicateLoginNtf) MarshalTo(dAtA []byte) (int, error)

func (*UserDuplicateLoginNtf) MarshalToSizedBuffer

func (m *UserDuplicateLoginNtf) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*UserDuplicateLoginNtf) Name

func (*UserDuplicateLoginNtf) Name() string

func (*UserDuplicateLoginNtf) ProtoMessage

func (*UserDuplicateLoginNtf) ProtoMessage()

func (*UserDuplicateLoginNtf) Reset

func (m *UserDuplicateLoginNtf) Reset()

func (*UserDuplicateLoginNtf) Size

func (m *UserDuplicateLoginNtf) Size() (n int)

func (*UserDuplicateLoginNtf) String

func (m *UserDuplicateLoginNtf) String() string

func (*UserDuplicateLoginNtf) Unmarshal

func (m *UserDuplicateLoginNtf) Unmarshal(dAtA []byte) error

func (*UserDuplicateLoginNtf) XXX_DiscardUnknown

func (m *UserDuplicateLoginNtf) XXX_DiscardUnknown()

func (*UserDuplicateLoginNtf) XXX_Marshal

func (m *UserDuplicateLoginNtf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UserDuplicateLoginNtf) XXX_Merge

func (m *UserDuplicateLoginNtf) XXX_Merge(src proto.Message)

func (*UserDuplicateLoginNtf) XXX_MessageName

func (*UserDuplicateLoginNtf) XXX_MessageName() string

func (*UserDuplicateLoginNtf) XXX_Size

func (m *UserDuplicateLoginNtf) XXX_Size() int

func (*UserDuplicateLoginNtf) XXX_Unmarshal

func (m *UserDuplicateLoginNtf) XXX_Unmarshal(b []byte) error

type Vector2

type Vector2 struct {
	// 长
	X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	// 宽
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
}

坐标二唯

func NewVector2

func NewVector2(x, y float64) Vector2

NewVector2 创建一个新的Vector2

func Vector2_Invalid

func Vector2_Invalid() Vector2

Vector2_Invalid 返加一个无效的值 ,未赋值之前

func Vector2_Zero

func Vector2_Zero() Vector2

Vector2_Zero 返回零值

func (Vector2) Add

func (v Vector2) Add(o Vector2) Vector2

Add 加

func (*Vector2) AddS

func (v *Vector2) AddS(o Vector2)

AddS 加到自己身上

func (Vector2) Cross

func (v Vector2) Cross(o Vector2) float64

Cross 叉乘

func (*Vector2) Descriptor

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

func (Vector2) Dot

func (v Vector2) Dot(o Vector2) float64

Dot 点乘

func (*Vector2) GetX

func (m *Vector2) GetX() float64

func (*Vector2) GetY

func (m *Vector2) GetY() float64

func (Vector2) IsEqual

func (v Vector2) IsEqual(r Vector2) bool

IsEqual 相等

func (Vector2) IsInValid

func (v Vector2) IsInValid() bool

IsInValid 是否有效

func (Vector2) Len

func (v Vector2) Len() float64

Len 获取长度

func (*Vector2) Marshal

func (m *Vector2) Marshal() (dAtA []byte, err error)

func (*Vector2) MarshalTo

func (m *Vector2) MarshalTo(dAtA []byte) (int, error)

func (*Vector2) MarshalToSizedBuffer

func (m *Vector2) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Vector2) Mul

func (v Vector2) Mul(m float64) Vector2

Mul 乘

func (*Vector2) Name

func (*Vector2) Name() string

func (*Vector2) Normalize

func (v *Vector2) Normalize()

func (*Vector2) ProtoMessage

func (*Vector2) ProtoMessage()

func (*Vector2) Reset

func (m *Vector2) Reset()

func (*Vector2) Size

func (m *Vector2) Size() (n int)

func (*Vector2) String

func (m *Vector2) String() string

func (Vector2) Sub

func (v Vector2) Sub(o Vector2) Vector2

Sub 减

func (*Vector2) SubS

func (v *Vector2) SubS(o Vector2)

SubS 自已身上减

func (*Vector2) Unmarshal

func (m *Vector2) Unmarshal(dAtA []byte) error

func (*Vector2) XXX_DiscardUnknown

func (m *Vector2) XXX_DiscardUnknown()

func (*Vector2) XXX_Marshal

func (m *Vector2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vector2) XXX_Merge

func (m *Vector2) XXX_Merge(src proto.Message)

func (*Vector2) XXX_MessageName

func (*Vector2) XXX_MessageName() string

func (*Vector2) XXX_Size

func (m *Vector2) XXX_Size() int

func (*Vector2) XXX_Unmarshal

func (m *Vector2) XXX_Unmarshal(b []byte) error

type Vector3

type Vector3 struct {
	// 长
	X float64 `protobuf:"fixed64,1,opt,name=x,proto3" json:"x,omitempty"`
	// 高
	Y float64 `protobuf:"fixed64,2,opt,name=y,proto3" json:"y,omitempty"`
	// 宽
	Z float64 `protobuf:"fixed64,3,opt,name=z,proto3" json:"z,omitempty"`
}

坐标三唯

func NewVector3

func NewVector3(x, y, z float64) Vector3

NewVector3 创建一个新的矢量

func Vector3_Invalid

func Vector3_Invalid() Vector3

Vector3_Invalid 返加一个无效的值 ,未赋值之前

func (Vector3) Add

func (v Vector3) Add(o Vector3) Vector3

Add 加

func (*Vector3) AddS

func (v *Vector3) AddS(o Vector3)

AddS 加到自己身上

func (Vector3) Cross

func (v Vector3) Cross(o Vector3) Vector3

向量叉积(Cross Product),也称为向量积、外积, 是两个三维向量 A = (Ax, Ay, Az) 和 B = (Bx, By, Bz) 所确定的平行四边形面积所对应的向量,可用以下公式表示:

``` A × B = (AyBz − AzBy)i + (AzBx − AxBz)j + (AxBy − AyBx)k ```

其中,i、j、k分别为三维空间中的基向量。

叉积的结果是一个新的向量,与原来的两个向量垂直。另外,叉积也有如下性质:

1. 对于任意的向量A和B,有A×B = -B×A。 2. 若A和B共线,则它们的叉积为零向量。 3. 计算叉积的结果与向量AB所在平面垂直,并且遵循右手定则, 即将右手的食指从向量A旋转到向量B的方向,并将中指弯曲90度,此时拇指所指的方向即为叉积所在的方向。

叉积常用于计算平面的法向量、判断点在平面上方还是下方等问题。它在计算机图形学、物理学等领域中广泛应用。

Cross 叉乘

func (*Vector3) Descriptor

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

func (Vector3) Dot

func (v Vector3) Dot(o Vector3) float64

向量的点积(Dot Product)也叫数量积、内积,是两个向量的乘积的数量级的余弦值, 用于计算两个向量之间的夹角。具体而言,对于两个三维向量A=(Ax,Ay,Az)和B=(Bx,By,Bz),它们的点积为: A · B = Ax*Bx + Ay*By + Az*Bz 点积的结果是一个实数,可以用来判断两个向量的相似度以及方向是否相同。 如果点积结果为0,则表示两个向量垂直; 如果点积结果大于0,则表示两个向量夹角小于90度,且方向相同; 如果点积结果小于0,则表示两个向量夹角大于90度,且方向相反。

Dot 点积

func (Vector3) Dot2

func (v Vector3) Dot2(o Vector3) float64

点积 忽略Y

func (*Vector3) GetX

func (m *Vector3) GetX() float64

func (*Vector3) GetY

func (m *Vector3) GetY() float64

func (*Vector3) GetZ

func (m *Vector3) GetZ() float64

func (*Vector3) InValid

func (v *Vector3) InValid()

坐标无效化

func (Vector3) IsEqual

func (v Vector3) IsEqual(r Vector3) bool

IsEqual 相等

func (Vector3) IsEqualXYZ

func (v Vector3) IsEqualXYZ(r Vector3) bool

IsEqualXYZ

func (Vector3) IsEqualXZ

func (v Vector3) IsEqualXZ(r Vector3) bool

IsEqualXZ 不判断高度

func (Vector3) IsInValid

func (v Vector3) IsInValid() bool

IsInValid 是否有效

func (Vector3) IsOutOfRange

func (v Vector3) IsOutOfRange(r float64) bool

判断自己的长度是否超出r的范围 Y轴方向已忽略,而且无开方

func (Vector3) IsOutOfRangeInt32

func (v Vector3) IsOutOfRangeInt32(r int32) bool

判断自己的长度是否超出r的范围 Y轴方向已忽略,而且无开方

func (Vector3) Len

func (v Vector3) Len() float64

Len 获取长度 这个函数已经不考虑Y轴方向的问题;

func (Vector3) LenPow2

func (v Vector3) LenPow2() float64

长度 的平方 这个函数已经不考虑Y轴方向的问题;

func (*Vector3) Marshal

func (m *Vector3) Marshal() (dAtA []byte, err error)

func (*Vector3) MarshalTo

func (m *Vector3) MarshalTo(dAtA []byte) (int, error)

func (*Vector3) MarshalToSizedBuffer

func (m *Vector3) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (Vector3) Mul

func (v Vector3) Mul(o float64) Vector3

Mul 乘

func (*Vector3) MulS

func (v *Vector3) MulS(o float64)

MulS 自己乘

func (*Vector3) Name

func (*Vector3) Name() string

func (*Vector3) Normalize

func (v *Vector3) Normalize()

向量归一化

func (*Vector3) ProtoMessage

func (*Vector3) ProtoMessage()

func (*Vector3) Reset

func (m *Vector3) Reset()

func (*Vector3) Scan

func (m *Vector3) Scan(value interface{}) error

func (*Vector3) Size

func (m *Vector3) Size() (n int)

func (*Vector3) String

func (m *Vector3) String() string

func (Vector3) Sub

func (v Vector3) Sub(o Vector3) Vector3

Sub 减

func (*Vector3) SubS

func (v *Vector3) SubS(o Vector3)

SubS 自已身上减

func (*Vector3) Unmarshal

func (m *Vector3) Unmarshal(dAtA []byte) error

func (Vector3) Value

func (m Vector3) Value() (driver.Value, error)

func (*Vector3) XXX_DiscardUnknown

func (m *Vector3) XXX_DiscardUnknown()

func (*Vector3) XXX_Marshal

func (m *Vector3) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vector3) XXX_Merge

func (m *Vector3) XXX_Merge(src proto.Message)

func (*Vector3) XXX_MessageName

func (*Vector3) XXX_MessageName() string

func (*Vector3) XXX_Size

func (m *Vector3) XXX_Size() int

func (*Vector3) XXX_Unmarshal

func (m *Vector3) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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