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 (
	ErrInvalidLengthRoom        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowRoom          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupRoom = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type ConnectRoom

type ConnectRoom 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"`
	Password string                                `protobuf:"bytes,3,opt,name=Password,proto3" json:"Password,omitempty"`
}

func NewPopulatedConnectRoom

func NewPopulatedConnectRoom(r randyRoom, easy bool) *ConnectRoom

func (ConnectRoom) Check

func (r ConnectRoom) Check() error

func (*ConnectRoom) Descriptor

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

func (*ConnectRoom) Equal

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

func (*ConnectRoom) GetAuth

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

func (*ConnectRoom) GetPassword

func (m *ConnectRoom) GetPassword() string

func (*ConnectRoom) GoString

func (this *ConnectRoom) GoString() string

func (*ConnectRoom) Marshal

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

func (*ConnectRoom) MarshalTo

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

func (*ConnectRoom) MarshalToSizedBuffer

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

func (*ConnectRoom) ProtoMessage

func (*ConnectRoom) ProtoMessage()

func (*ConnectRoom) Reset

func (m *ConnectRoom) Reset()

func (*ConnectRoom) Size

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

func (*ConnectRoom) String

func (this *ConnectRoom) String() string

func (*ConnectRoom) Unmarshal

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

func (*ConnectRoom) XXX_DiscardUnknown

func (m *ConnectRoom) XXX_DiscardUnknown()

func (*ConnectRoom) XXX_Marshal

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

func (*ConnectRoom) XXX_Merge

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

func (*ConnectRoom) XXX_Size

func (m *ConnectRoom) XXX_Size() int

func (*ConnectRoom) XXX_Unmarshal

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

type CreateRoom

type CreateRoom struct {
	Auth             dto.Auth                              `protobuf:"bytes,1,opt,name=Auth,proto3" json:"Auth"`
	LobbyID          github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,opt,name=LobbyID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"LobbyID"`
	Name             string                                `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"`
	Password         string                                `protobuf:"bytes,4,opt,name=Password,proto3" json:"Password,omitempty"`
	Map              dto1.CreateMap                        `protobuf:"bytes,5,opt,name=Map,proto3" json:"Map"`
	SectorDimensions geometry.Vec3                         `protobuf:"bytes,6,opt,name=SectorDimensions,proto3" json:"SectorDimensions"`
}

func NewPopulatedCreateRoom

func NewPopulatedCreateRoom(r randyRoom, easy bool) *CreateRoom

func (CreateRoom) Check

func (r CreateRoom) Check() error

func (*CreateRoom) Descriptor

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

func (*CreateRoom) Equal

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

func (*CreateRoom) GetAuth

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

func (*CreateRoom) GetMap

func (m *CreateRoom) GetMap() dto1.CreateMap

func (*CreateRoom) GetName

func (m *CreateRoom) GetName() string

func (*CreateRoom) GetPassword

func (m *CreateRoom) GetPassword() string

func (*CreateRoom) GetSectorDimensions

func (m *CreateRoom) GetSectorDimensions() geometry.Vec3

func (*CreateRoom) GoString

func (this *CreateRoom) GoString() string

func (*CreateRoom) Marshal

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

func (*CreateRoom) MarshalTo

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

func (*CreateRoom) MarshalToSizedBuffer

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

func (*CreateRoom) ProtoMessage

func (*CreateRoom) ProtoMessage()

func (*CreateRoom) Reset

func (m *CreateRoom) Reset()

func (*CreateRoom) Size

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

func (*CreateRoom) String

func (this *CreateRoom) String() string

func (*CreateRoom) Unmarshal

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

func (*CreateRoom) XXX_DiscardUnknown

func (m *CreateRoom) XXX_DiscardUnknown()

func (*CreateRoom) XXX_Marshal

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

func (*CreateRoom) XXX_Merge

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

func (*CreateRoom) XXX_Size

func (m *CreateRoom) XXX_Size() int

func (*CreateRoom) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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