dto

package
v0.0.0-...-37f97d0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSector        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSector          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSector = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTile = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type CreateMap

type CreateMap struct {
	Dimensions        geometry.Vec3 `protobuf:"bytes,1,opt,name=Dimensions,proto3" json:"Dimensions"`
	NPlatforms        uint64        `protobuf:"varint,2,opt,name=NPlatforms,proto3" json:"NPlatforms,omitempty"`
	PlatformSize      uint64        `protobuf:"varint,3,opt,name=PlatformSize,proto3" json:"PlatformSize,omitempty"`
	PlatformVariance  uint64        `protobuf:"varint,4,opt,name=PlatformVariance,proto3" json:"PlatformVariance,omitempty"`
	NPaths            uint64        `protobuf:"varint,5,opt,name=NPaths,proto3" json:"NPaths,omitempty"`
	PathVariance      uint64        `protobuf:"varint,6,opt,name=PathVariance,proto3" json:"PathVariance,omitempty"`
	PathWidth         uint64        `protobuf:"varint,7,opt,name=PathWidth,proto3" json:"PathWidth,omitempty"`
	PathWidthVariance uint64        `protobuf:"varint,8,opt,name=PathWidthVariance,proto3" json:"PathWidthVariance,omitempty"`
}

func NewPopulatedCreateMap

func NewPopulatedCreateMap(r randyTile, easy bool) *CreateMap

func (CreateMap) Check

func (r CreateMap) Check() error

func (*CreateMap) Descriptor

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

func (*CreateMap) Equal

func (this *CreateMap) Equal(that interface{}) bool

func (*CreateMap) GetDimensions

func (m *CreateMap) GetDimensions() geometry.Vec3

func (*CreateMap) GetNPaths

func (m *CreateMap) GetNPaths() uint64

func (*CreateMap) GetNPlatforms

func (m *CreateMap) GetNPlatforms() uint64

func (*CreateMap) GetPathVariance

func (m *CreateMap) GetPathVariance() uint64

func (*CreateMap) GetPathWidth

func (m *CreateMap) GetPathWidth() uint64

func (*CreateMap) GetPathWidthVariance

func (m *CreateMap) GetPathWidthVariance() uint64

func (*CreateMap) GetPlatformSize

func (m *CreateMap) GetPlatformSize() uint64

func (*CreateMap) GetPlatformVariance

func (m *CreateMap) GetPlatformVariance() uint64

func (*CreateMap) GoString

func (this *CreateMap) GoString() string

func (*CreateMap) Marshal

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

func (*CreateMap) MarshalTo

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

func (*CreateMap) MarshalToSizedBuffer

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

func (*CreateMap) ProtoMessage

func (*CreateMap) ProtoMessage()

func (*CreateMap) Reset

func (m *CreateMap) Reset()

func (*CreateMap) Size

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

func (*CreateMap) String

func (this *CreateMap) String() string

func (*CreateMap) Unmarshal

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

func (*CreateMap) XXX_DiscardUnknown

func (m *CreateMap) XXX_DiscardUnknown()

func (*CreateMap) XXX_Marshal

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

func (*CreateMap) XXX_Merge

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

func (*CreateMap) XXX_Size

func (m *CreateMap) XXX_Size() int

func (*CreateMap) XXX_Unmarshal

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

type CreateSet

type CreateSet struct {
	Auth dto.Auth                              `protobuf:"bytes,1,opt,name=Auth,proto3" json:"Auth"`
	ID   github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,opt,name=ID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"ID"`
	Set  space.TileSet                         `protobuf:"bytes,3,opt,name=Set,proto3" json:"Set"`
}

func NewPopulatedCreateSet

func NewPopulatedCreateSet(r randyTile, easy bool) *CreateSet

func (CreateSet) Check

func (r CreateSet) Check() error

func (*CreateSet) Descriptor

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

func (*CreateSet) Equal

func (this *CreateSet) Equal(that interface{}) bool

func (*CreateSet) GetAuth

func (m *CreateSet) GetAuth() dto.Auth

func (*CreateSet) GetSet

func (m *CreateSet) GetSet() space.TileSet

func (*CreateSet) GoString

func (this *CreateSet) GoString() string

func (*CreateSet) Marshal

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

func (*CreateSet) MarshalTo

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

func (*CreateSet) MarshalToSizedBuffer

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

func (*CreateSet) ProtoMessage

func (*CreateSet) ProtoMessage()

func (*CreateSet) Reset

func (m *CreateSet) Reset()

func (*CreateSet) Size

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

func (*CreateSet) String

func (this *CreateSet) String() string

func (*CreateSet) Unmarshal

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

func (*CreateSet) XXX_DiscardUnknown

func (m *CreateSet) XXX_DiscardUnknown()

func (*CreateSet) XXX_Marshal

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

func (*CreateSet) XXX_Merge

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

func (*CreateSet) XXX_Size

func (m *CreateSet) XXX_Size() int

func (*CreateSet) XXX_Unmarshal

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

type ListSector

type ListSector struct {
	Auth dto.Auth                                `protobuf:"bytes,1,opt,name=Auth,proto3" json:"Auth"`
	IDs  []github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,rep,name=IDs,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"IDs"`
}

func NewPopulatedListSector

func NewPopulatedListSector(r randySector, easy bool) *ListSector

func (ListSector) Check

func (r ListSector) Check() error

func (*ListSector) Descriptor

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

func (*ListSector) Equal

func (this *ListSector) Equal(that interface{}) bool

func (*ListSector) GetAuth

func (m *ListSector) GetAuth() dto.Auth

func (*ListSector) GoString

func (this *ListSector) GoString() string

func (*ListSector) Marshal

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

func (*ListSector) MarshalTo

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

func (*ListSector) MarshalToSizedBuffer

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

func (*ListSector) ProtoMessage

func (*ListSector) ProtoMessage()

func (*ListSector) Reset

func (m *ListSector) Reset()

func (*ListSector) Size

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

func (*ListSector) String

func (this *ListSector) String() string

func (*ListSector) Unmarshal

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

func (*ListSector) XXX_DiscardUnknown

func (m *ListSector) XXX_DiscardUnknown()

func (*ListSector) XXX_Marshal

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

func (*ListSector) XXX_Merge

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

func (*ListSector) XXX_Size

func (m *ListSector) XXX_Size() int

func (*ListSector) XXX_Unmarshal

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

type ListSet

type ListSet struct {
	Auth dto.Auth                                `protobuf:"bytes,1,opt,name=Auth,proto3" json:"Auth"`
	IDs  []github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,rep,name=IDs,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"IDs"`
}

func NewPopulatedListSet

func NewPopulatedListSet(r randyTile, easy bool) *ListSet

func (ListSet) Check

func (r ListSet) Check() error

func (*ListSet) Descriptor

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

func (*ListSet) Equal

func (this *ListSet) Equal(that interface{}) bool

func (*ListSet) GetAuth

func (m *ListSet) GetAuth() dto.Auth

func (*ListSet) GoString

func (this *ListSet) GoString() string

func (*ListSet) Marshal

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

func (*ListSet) MarshalTo

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

func (*ListSet) MarshalToSizedBuffer

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

func (*ListSet) ProtoMessage

func (*ListSet) ProtoMessage()

func (*ListSet) Reset

func (m *ListSet) Reset()

func (*ListSet) Size

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

func (*ListSet) String

func (this *ListSet) String() string

func (*ListSet) Unmarshal

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

func (*ListSet) XXX_DiscardUnknown

func (m *ListSet) XXX_DiscardUnknown()

func (*ListSet) XXX_Marshal

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

func (*ListSet) XXX_Merge

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

func (*ListSet) XXX_Size

func (m *ListSet) XXX_Size() int

func (*ListSet) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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