Documentation ¶
Index ¶
- Variables
- type App
- type Component
- func (*Component) Descriptor() ([]byte, []int)
- func (this *Component) Equal(that interface{}) bool
- func (this *Component) GoString() string
- func (m *Component) Marshal() (dAtA []byte, err error)
- func (m *Component) MarshalTo(dAtA []byte) (int, error)
- func (m *Component) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Component) ProtoMessage()
- func (m *Component) Reset()
- func (m *Component) Size() (n int)
- func (this *Component) String() string
- func (m *Component) Unmarshal(dAtA []byte) error
- func (m *Component) XXX_DiscardUnknown()
- func (m *Component) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Component) XXX_Merge(src proto.Message)
- func (m *Component) XXX_Size() int
- func (m *Component) XXX_Unmarshal(b []byte) error
- type Filter
- type I
- func (*I) Descriptor() ([]byte, []int)
- func (this *I) Equal(that interface{}) bool
- func (m *I) GetDetails() string
- func (m *I) GetName() string
- func (m *I) GetType() Type
- func (this *I) GoString() string
- func (m *I) Marshal() (dAtA []byte, err error)
- func (m *I) MarshalTo(dAtA []byte) (int, error)
- func (m *I) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*I) ProtoMessage()
- func (m *I) Reset()
- func (m *I) Size() (n int)
- func (this *I) String() string
- func (m *I) Unmarshal(dAtA []byte) error
- func (m *I) XXX_DiscardUnknown()
- func (m *I) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *I) XXX_Merge(src proto.Message)
- func (m *I) XXX_Size() int
- func (m *I) XXX_Unmarshal(b []byte) error
- type Orb
- func (*Orb) Descriptor() ([]byte, []int)
- func (this *Orb) Equal(that interface{}) bool
- func (this *Orb) GoString() string
- func (m *Orb) Marshal() (dAtA []byte, err error)
- func (m *Orb) MarshalTo(dAtA []byte) (int, error)
- func (m *Orb) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Orb) ProtoMessage()
- func (m *Orb) Reset()
- func (m *Orb) Size() (n int)
- func (this *Orb) String() string
- func (m *Orb) Unmarshal(dAtA []byte) error
- func (m *Orb) XXX_DiscardUnknown()
- func (m *Orb) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Orb) XXX_Merge(src proto.Message)
- func (m *Orb) XXX_Size() int
- func (m *Orb) XXX_Unmarshal(b []byte) error
- type Store
- type Type
- func (*Type) Descriptor() ([]byte, []int)
- func (this *Type) Equal(that interface{}) bool
- func (m *Type) GetComponent() *Component
- func (m *Type) GetOrb() *Orb
- func (this *Type) GetValue() interface{}
- func (this *Type) GoString() string
- func (m *Type) Marshal() (dAtA []byte, err error)
- func (m *Type) MarshalTo(dAtA []byte) (int, error)
- func (m *Type) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Type) ProtoMessage()
- func (m *Type) Reset()
- func (this *Type) SetValue(value interface{}) bool
- func (m *Type) Size() (n int)
- func (this *Type) String() string
- func (m *Type) Unmarshal(dAtA []byte) error
- func (m *Type) XXX_DiscardUnknown()
- func (m *Type) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Type) XXX_Merge(src proto.Message)
- func (m *Type) XXX_Size() int
- func (m *Type) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Type github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=Type,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"Type"`
}
Component represents a common object used for craft only.
func NewPopulatedComponent ¶
func (*Component) Descriptor ¶
func (*Component) MarshalToSizedBuffer ¶
func (*Component) ProtoMessage ¶
func (*Component) ProtoMessage()
func (*Component) XXX_DiscardUnknown ¶
func (m *Component) XXX_DiscardUnknown()
func (*Component) XXX_Marshal ¶
func (*Component) XXX_Unmarshal ¶
type I ¶
type I 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"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Details string `protobuf:"bytes,3,opt,name=Details,proto3" json:"Details,omitempty"` Icon github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,4,opt,name=Icon,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"Icon"` Type Type `protobuf:"bytes,5,opt,name=Type,proto3" json:"Type"` }
func NewPopulatedI ¶
func (*I) Descriptor ¶
func (*I) GetDetails ¶
func (*I) ProtoMessage ¶
func (*I) ProtoMessage()
func (*I) XXX_DiscardUnknown ¶
func (m *I) XXX_DiscardUnknown()
func (*I) XXX_Unmarshal ¶
type Orb ¶
type Orb struct {
AbilityID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,1,opt,name=AbilityID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"AbilityID"`
}
Orb represents a skill learner object. Consumer learns skill at item consumption.
func NewPopulatedOrb ¶
func (*Orb) Descriptor ¶
func (*Orb) ProtoMessage ¶
func (*Orb) ProtoMessage()
func (*Orb) XXX_DiscardUnknown ¶
func (m *Orb) XXX_DiscardUnknown()
func (*Orb) XXX_Unmarshal ¶
type Store ¶
type Store interface { Upsert(context.Context, I) error Fetch(context.Context, Filter) (I, error) FetchMany(context.Context, Filter) (map[string]I, error) Delete(context.Context, Filter) error }
Store layer for item domain.
type Type ¶
type Type struct { Orb *Orb `protobuf:"bytes,1,opt,name=Orb,proto3" json:"Orb,omitempty"` Component *Component `protobuf:"bytes,2,opt,name=Component,proto3" json:"Component,omitempty"` }
func NewPopulatedType ¶
func (*Type) Descriptor ¶
func (*Type) GetComponent ¶
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) XXX_DiscardUnknown ¶
func (m *Type) XXX_DiscardUnknown()
func (*Type) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.