grid

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type PGridFloorRect

type PGridFloorRect struct {
	IsShow   bool      `protobuf:"varint,1,opt,name=isShow,proto3" json:"isShow,omitempty"`     // 是否显示
	Name     string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`          // 名字
	Index    int32     `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`       // 编号
	Type     int32     `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`         // 类型
	Dir      int32     `protobuf:"varint,5,opt,name=dir,proto3" json:"dir,omitempty"`           // 方向
	UnlockLv int32     `protobuf:"varint,6,opt,name=unlockLv,proto3" json:"unlockLv,omitempty"` // 解锁等级
	Rect     *PRectInt `protobuf:"bytes,7,opt,name=rect,proto3" json:"rect,omitempty"`          // 矩形
	// contains filtered or unexported fields
}

地面格子

func (*PGridFloorRect) Descriptor deprecated

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

Deprecated: Use PGridFloorRect.ProtoReflect.Descriptor instead.

func (*PGridFloorRect) GetDir

func (x *PGridFloorRect) GetDir() int32

func (*PGridFloorRect) GetIndex

func (x *PGridFloorRect) GetIndex() int32

func (*PGridFloorRect) GetIsShow

func (x *PGridFloorRect) GetIsShow() bool

func (*PGridFloorRect) GetName

func (x *PGridFloorRect) GetName() string

func (*PGridFloorRect) GetRect

func (x *PGridFloorRect) GetRect() *PRectInt

func (*PGridFloorRect) GetType

func (x *PGridFloorRect) GetType() int32

func (*PGridFloorRect) GetUnlockLv

func (x *PGridFloorRect) GetUnlockLv() int32

func (*PGridFloorRect) ProtoMessage

func (*PGridFloorRect) ProtoMessage()

func (*PGridFloorRect) ProtoReflect

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

func (*PGridFloorRect) Reset

func (x *PGridFloorRect) Reset()

func (*PGridFloorRect) String

func (x *PGridFloorRect) String() string

func (*PGridFloorRect) Validate

func (m *PGridFloorRect) Validate() error

Validate checks the field values on PGridFloorRect with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PGridFloorRectValidationError

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

PGridFloorRectValidationError is the validation error returned by PGridFloorRect.Validate if the designated constraints aren't met.

func (PGridFloorRectValidationError) Cause

Cause function returns cause value.

func (PGridFloorRectValidationError) Error

Error satisfies the builtin error interface

func (PGridFloorRectValidationError) ErrorName

func (e PGridFloorRectValidationError) ErrorName() string

ErrorName returns error name.

func (PGridFloorRectValidationError) Field

Field function returns field value.

func (PGridFloorRectValidationError) Key

Key function returns key value.

func (PGridFloorRectValidationError) Reason

Reason function returns reason value.

type PRectInt

type PRectInt struct {
	Position *PVector2Int `protobuf:"bytes,1,opt,name=position,proto3" json:"position,omitempty"` // 起点坐标
	Size     *PVector2Int `protobuf:"bytes,2,opt,name=size,proto3" json:"size,omitempty"`         // 大小
	// contains filtered or unexported fields
}

矩形(int)

func (*PRectInt) Descriptor deprecated

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

Deprecated: Use PRectInt.ProtoReflect.Descriptor instead.

func (*PRectInt) GetPosition

func (x *PRectInt) GetPosition() *PVector2Int

func (*PRectInt) GetSize

func (x *PRectInt) GetSize() *PVector2Int

func (*PRectInt) ProtoMessage

func (*PRectInt) ProtoMessage()

func (*PRectInt) ProtoReflect

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

func (*PRectInt) Reset

func (x *PRectInt) Reset()

func (*PRectInt) String

func (x *PRectInt) String() string

func (*PRectInt) Validate

func (m *PRectInt) Validate() error

Validate checks the field values on PRectInt with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PRectIntValidationError

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

PRectIntValidationError is the validation error returned by PRectInt.Validate if the designated constraints aren't met.

func (PRectIntValidationError) Cause

func (e PRectIntValidationError) Cause() error

Cause function returns cause value.

func (PRectIntValidationError) Error

func (e PRectIntValidationError) Error() string

Error satisfies the builtin error interface

func (PRectIntValidationError) ErrorName

func (e PRectIntValidationError) ErrorName() string

ErrorName returns error name.

func (PRectIntValidationError) Field

func (e PRectIntValidationError) Field() string

Field function returns field value.

func (PRectIntValidationError) Key

func (e PRectIntValidationError) Key() bool

Key function returns key value.

func (PRectIntValidationError) Reason

func (e PRectIntValidationError) Reason() string

Reason function returns reason value.

type PVector2Int

type PVector2Int struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

二维向量(int)

func (*PVector2Int) Descriptor deprecated

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

Deprecated: Use PVector2Int.ProtoReflect.Descriptor instead.

func (*PVector2Int) GetX

func (x *PVector2Int) GetX() int32

func (*PVector2Int) GetY

func (x *PVector2Int) GetY() int32

func (*PVector2Int) ProtoMessage

func (*PVector2Int) ProtoMessage()

func (*PVector2Int) ProtoReflect

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

func (*PVector2Int) Reset

func (x *PVector2Int) Reset()

func (*PVector2Int) String

func (x *PVector2Int) String() string

func (*PVector2Int) Validate

func (m *PVector2Int) Validate() error

Validate checks the field values on PVector2Int with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PVector2IntValidationError

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

PVector2IntValidationError is the validation error returned by PVector2Int.Validate if the designated constraints aren't met.

func (PVector2IntValidationError) Cause

Cause function returns cause value.

func (PVector2IntValidationError) Error

Error satisfies the builtin error interface

func (PVector2IntValidationError) ErrorName

func (e PVector2IntValidationError) ErrorName() string

ErrorName returns error name.

func (PVector2IntValidationError) Field

Field function returns field value.

func (PVector2IntValidationError) Key

Key function returns key value.

func (PVector2IntValidationError) Reason

Reason function returns reason value.

type PVector3

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

三维向量(float)

func (*PVector3) Descriptor deprecated

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

Deprecated: Use PVector3.ProtoReflect.Descriptor instead.

func (*PVector3) GetX

func (x *PVector3) GetX() float32

func (*PVector3) GetY

func (x *PVector3) GetY() float32

func (*PVector3) GetZ

func (x *PVector3) GetZ() float32

func (*PVector3) ProtoMessage

func (*PVector3) ProtoMessage()

func (*PVector3) ProtoReflect

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

func (*PVector3) Reset

func (x *PVector3) Reset()

func (*PVector3) String

func (x *PVector3) String() string

func (*PVector3) Validate

func (m *PVector3) Validate() error

Validate checks the field values on PVector3 with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PVector3ValidationError

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

PVector3ValidationError is the validation error returned by PVector3.Validate if the designated constraints aren't met.

func (PVector3ValidationError) Cause

func (e PVector3ValidationError) Cause() error

Cause function returns cause value.

func (PVector3ValidationError) Error

func (e PVector3ValidationError) Error() string

Error satisfies the builtin error interface

func (PVector3ValidationError) ErrorName

func (e PVector3ValidationError) ErrorName() string

ErrorName returns error name.

func (PVector3ValidationError) Field

func (e PVector3ValidationError) Field() string

Field function returns field value.

func (PVector3ValidationError) Key

func (e PVector3ValidationError) Key() bool

Key function returns key value.

func (PVector3ValidationError) Reason

func (e PVector3ValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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