Documentation ¶
Index ¶
- Variables
- type App
- type Cast
- func (*Cast) Descriptor() ([]byte, []int)
- func (this *Cast) Equal(that interface{}) bool
- func (m *Cast) GetTS() uint64
- func (this *Cast) GoString() string
- func (m *Cast) Marshal() (dAtA []byte, err error)
- func (m *Cast) MarshalTo(dAtA []byte) (int, error)
- func (m *Cast) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Cast) ProtoMessage()
- func (m *Cast) Reset()
- func (m *Cast) Size() (n int)
- func (this *Cast) String() string
- func (m *Cast) Unmarshal(dAtA []byte) error
- func (m *Cast) XXX_DiscardUnknown()
- func (m *Cast) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Cast) XXX_Merge(src proto.Message)
- func (m *Cast) XXX_Size() int
- func (m *Cast) XXX_Unmarshal(b []byte) error
- type E
- func (*E) Descriptor() ([]byte, []int)
- func (this *E) Equal(that interface{}) bool
- func (m *E) GetCast() *Cast
- func (m *E) GetDead() bool
- func (m *E) GetDirection() geometry.Vec3
- func (m *E) GetHP() uint64
- func (m *E) GetMP() uint64
- func (m *E) GetMaxHP() uint64
- func (m *E) GetMaxMP() uint64
- func (m *E) GetName() string
- func (m *E) GetPosition() geometry.Vec3
- func (m *E) GetTS() uint64
- func (this *E) GoString() string
- func (m *E) Marshal() (dAtA []byte, err error)
- func (m *E) MarshalTo(dAtA []byte) (int, error)
- func (m *E) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*E) ProtoMessage()
- func (m *E) Reset()
- func (m *E) Size() (n int)
- func (this *E) String() string
- func (m *E) Unmarshal(dAtA []byte) error
- func (m *E) XXX_DiscardUnknown()
- func (m *E) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *E) XXX_Merge(src proto.Message)
- func (m *E) XXX_Size() int
- func (m *E) XXX_Unmarshal(b []byte) error
- type Filter
- type FilterTemplate
- type Store
- type StoreTemplate
- type Template
- func (*Template) Descriptor() ([]byte, []int)
- func (this *Template) Equal(that interface{}) bool
- func (m *Template) GetMaxHP() uint64
- func (m *Template) GetMaxMP() uint64
- func (m *Template) GetName() string
- func (this *Template) GoString() string
- func (m *Template) Marshal() (dAtA []byte, err error)
- func (m *Template) MarshalTo(dAtA []byte) (int, error)
- func (m *Template) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Template) ProtoMessage()
- func (m *Template) Reset()
- func (m *Template) Size() (n int)
- func (this *Template) String() string
- func (m *Template) Unmarshal(dAtA []byte) error
- func (m *Template) XXX_DiscardUnknown()
- func (m *Template) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Template) XXX_Merge(src proto.Message)
- func (m *Template) XXX_Size() int
- func (m *Template) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Cast ¶
type Cast 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"` TS uint64 `protobuf:"varint,2,opt,name=TS,proto3" json:"TS,omitempty"` }
func NewPopulatedCast ¶
func (*Cast) Descriptor ¶
func (*Cast) ProtoMessage ¶
func (*Cast) ProtoMessage()
func (*Cast) XXX_DiscardUnknown ¶
func (m *Cast) XXX_DiscardUnknown()
func (*Cast) XXX_Unmarshal ¶
type E ¶
type E struct { // #Identifiers 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"` TemplateID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,2,opt,name=TemplateID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"TemplateID"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` // owner is nil if entity is controlled by player, else it will be pc entity id. OwnerID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,4,opt,name=OwnerID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"OwnerID"` // #Stats Dead bool `protobuf:"varint,5,opt,name=Dead,proto3" json:"Dead,omitempty"` HP uint64 `protobuf:"varint,6,opt,name=HP,proto3" json:"HP,omitempty"` MaxHP uint64 `protobuf:"varint,7,opt,name=MaxHP,proto3" json:"MaxHP,omitempty"` MP uint64 `protobuf:"varint,8,opt,name=MP,proto3" json:"MP,omitempty"` MaxMP uint64 `protobuf:"varint,9,opt,name=MaxMP,proto3" json:"MaxMP,omitempty"` // #Spatial & graphic parameters Direction geometry.Vec3 `protobuf:"bytes,10,opt,name=Direction,proto3" json:"Direction"` Position geometry.Vec3 `protobuf:"bytes,11,opt,name=Position,proto3" json:"Position"` Cast *Cast `protobuf:"bytes,12,opt,name=Cast,proto3" json:"Cast,omitempty"` AssetID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,13,opt,name=AssetID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"AssetID"` // #In game external ids InventoryID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,14,opt,name=InventoryID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"InventoryID"` SpawnID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,15,opt,name=SpawnID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"SpawnID"` // Timestamp of entity state. TS uint64 `protobuf:"varint,16,opt,name=TS,proto3" json:"TS,omitempty"` // State is a technical requirement for redis set, each "state" of entity must be unique. State github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,17,opt,name=State,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"State"` }
func NewPopulatedE ¶
func (*E) Descriptor ¶
func (*E) GetDirection ¶
func (*E) GetPosition ¶
func (*E) ProtoMessage ¶
func (*E) ProtoMessage()
func (*E) XXX_DiscardUnknown ¶
func (m *E) XXX_DiscardUnknown()
func (*E) XXX_Unmarshal ¶
type FilterTemplate ¶
FilterTemplate object for entity template domain.
type Store ¶
type Store interface { Upsert(context.Context, E) error Fetch(context.Context, Filter) (E, error) Delete(context.Context, Filter) error }
Store layer for entity domain.
type StoreTemplate ¶
type StoreTemplate interface { UpsertTemplate(context.Context, Template) error FetchTemplate(context.Context, FilterTemplate) (Template, error) DeleteTemplate(context.Context, FilterTemplate) error }
StoreTemplate layer for entity template domain.
type Template ¶
type Template struct { // #Identifiers 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"` // #Stats MaxHP uint64 `protobuf:"varint,3,opt,name=MaxHP,proto3" json:"MaxHP,omitempty"` MaxMP uint64 `protobuf:"varint,4,opt,name=MaxMP,proto3" json:"MaxMP,omitempty"` // #Spatial & graphic parameters AssetID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,5,opt,name=AssetID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"AssetID"` // #In game external ids SpawnID github_com_elojah_game_02_pkg_ulid.ID `protobuf:"bytes,6,opt,name=SpawnID,proto3,customtype=github.com/elojah/game_02/pkg/ulid.ID" json:"SpawnID"` }
func NewPopulatedTemplate ¶
func (*Template) Descriptor ¶
func (*Template) MarshalToSizedBuffer ¶
func (*Template) ProtoMessage ¶
func (*Template) ProtoMessage()
func (*Template) XXX_DiscardUnknown ¶
func (m *Template) XXX_DiscardUnknown()
func (*Template) XXX_Marshal ¶
func (*Template) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.