Documentation ¶
Index ¶
- Variables
- type App
- type Filter
- type FilterInventory
- type FilterSpawn
- type Inventory
- func (*Inventory) Descriptor() ([]byte, []int)
- func (this *Inventory) Equal(that interface{}) bool
- func (m *Inventory) GetItems() map[string]uint64
- func (m *Inventory) GetSize_() uint64
- func (this *Inventory) GoString() string
- func (m *Inventory) Marshal() (dAtA []byte, err error)
- func (m *Inventory) MarshalTo(dAtA []byte) (int, error)
- func (m *Inventory) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Inventory) ProtoMessage()
- func (m *Inventory) Reset()
- func (m *Inventory) Size() (n int)
- func (this *Inventory) String() string
- func (m *Inventory) Unmarshal(dAtA []byte) error
- func (m *Inventory) XXX_DiscardUnknown()
- func (m *Inventory) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Inventory) XXX_Merge(src proto.Message)
- func (m *Inventory) XXX_Size() int
- func (m *Inventory) XXX_Unmarshal(b []byte) error
- type P
- func (*P) Descriptor() ([]byte, []int)
- func (this *P) Equal(that interface{}) bool
- func (m *P) GetEntity() entity.E
- func (this *P) GoString() string
- func (m *P) Marshal() (dAtA []byte, err error)
- func (m *P) MarshalTo(dAtA []byte) (int, error)
- func (m *P) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*P) ProtoMessage()
- func (m *P) Reset()
- func (m *P) Size() (n int)
- func (this *P) String() string
- func (m *P) Unmarshal(dAtA []byte) error
- func (m *P) XXX_DiscardUnknown()
- func (m *P) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P) XXX_Merge(src proto.Message)
- func (m *P) XXX_Size() int
- func (m *P) XXX_Unmarshal(b []byte) error
- type Spawn
- func (*Spawn) Descriptor() ([]byte, []int)
- func (this *Spawn) Equal(that interface{}) bool
- func (m *Spawn) GetDirection() geometry.Vec3
- func (m *Spawn) GetDuration() uint64
- func (m *Spawn) GetPosition() geometry.Vec3
- func (this *Spawn) GoString() string
- func (m *Spawn) Marshal() (dAtA []byte, err error)
- func (m *Spawn) MarshalTo(dAtA []byte) (int, error)
- func (m *Spawn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Spawn) ProtoMessage()
- func (m *Spawn) Reset()
- func (m *Spawn) Size() (n int)
- func (this *Spawn) String() string
- func (m *Spawn) Unmarshal(dAtA []byte) error
- func (m *Spawn) XXX_DiscardUnknown()
- func (m *Spawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Spawn) XXX_Merge(src proto.Message)
- func (m *Spawn) XXX_Size() int
- func (m *Spawn) XXX_Unmarshal(b []byte) error
- type Store
- type StoreInventory
- type StoreSpawn
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthInventory = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowInventory = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupInventory = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
This section is empty.
Types ¶
type FilterInventory ¶
FilterInventory object for P domain.
type FilterSpawn ¶
FilterSpawn object for player spawn domain.
type Inventory ¶
type Inventory struct { ID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=ID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"ID"` Size_ uint64 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"` Items map[string]uint64 `` /* 142-byte string literal not displayed */ }
func NewPopulatedInventory ¶
func (*Inventory) Descriptor ¶
func (*Inventory) MarshalToSizedBuffer ¶
func (*Inventory) ProtoMessage ¶
func (*Inventory) ProtoMessage()
func (*Inventory) XXX_DiscardUnknown ¶
func (m *Inventory) XXX_DiscardUnknown()
func (*Inventory) XXX_Marshal ¶
func (*Inventory) XXX_Unmarshal ¶
type P ¶
type P struct { Entity entity.E `protobuf:"bytes,1,opt,name=Entity,proto3" json:"Entity"` Account github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,opt,name=Account,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"Account"` }
func NewPopulatedP ¶
func (*P) Descriptor ¶
func (*P) ProtoMessage ¶
func (*P) ProtoMessage()
func (*P) XXX_DiscardUnknown ¶
func (m *P) XXX_DiscardUnknown()
func (*P) XXX_Unmarshal ¶
type Spawn ¶
type Spawn struct { ID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=ID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"ID"` Position geometry.Vec3 `protobuf:"bytes,2,opt,name=Position,proto3" json:"Position"` Direction geometry.Vec3 `protobuf:"bytes,3,opt,name=Direction,proto3" json:"Direction"` Duration uint64 `protobuf:"varint,4,opt,name=Duration,proto3" json:"Duration,omitempty"` }
func NewPopulatedSpawn ¶
func (*Spawn) Descriptor ¶
func (*Spawn) GetDirection ¶
func (*Spawn) GetDuration ¶
func (*Spawn) GetPosition ¶
func (*Spawn) ProtoMessage ¶
func (*Spawn) ProtoMessage()
func (*Spawn) XXX_DiscardUnknown ¶
func (m *Spawn) XXX_DiscardUnknown()
func (*Spawn) XXX_Marshal ¶
func (*Spawn) XXX_Unmarshal ¶
type Store ¶
type Store interface { Upsert(context.Context, P) error Fetch(context.Context, Filter) (P, error) FetchMany(context.Context, Filter) (map[string]P, error) Delete(context.Context, Filter) error }
Store storage layer for P.
type StoreInventory ¶
type StoreInventory interface { UpsertInventory(context.Context, Inventory) error FetchInventory(context.Context, FilterInventory) (Inventory, error) DeleteInventory(context.Context, FilterInventory) error }
StoreInventory storage layer for Inventory.
type StoreSpawn ¶
type StoreSpawn interface { UpsertSpawn(context.Context, Spawn) error FetchSpawn(context.Context, FilterSpawn) (Spawn, error) DeleteSpawn(context.Context, FilterSpawn) error }
StoreSpawn storage layer for player spawn.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.