Documentation ¶
Index ¶
- Variables
- type Ability
- type AbilityFeedback
- type Account
- type BondPoint
- type Cast
- type DamageDirect
- type DamageDirectFeedback
- type DamageOverTime
- type DamageOverTimeFeedback
- type Entity
- type Event
- type Feedback
- type HealDirect
- type HealDirectFeedback
- type HealOverTime
- type HealOverTimeFeedback
- type Listener
- type Move
- type Recurrer
- type Sector
- type SectorEntities
- type Token
- type Vec3
Constants ¶
This section is empty.
Variables ¶
var ( // ErrNotFound is raised when a mandatory resource is not found in storage. ErrNotFound = errors.New("no results found") )
Functions ¶
This section is empty.
Types ¶
type Ability ¶
type Ability struct { ID [16]byte Type [16]byte Name string MPConsumption uint64 CD uint32 CurrentCD uint32 Components []interface{} }
func NewAbility ¶
NewAbility convert a ability.A into a storage Ability.
type AbilityFeedback ¶
func NewAbilityFeedback ¶
func NewAbilityFeedback(fb ability.Feedback) *AbilityFeedback
NewAbilityFeedback converts a game AbilityFeedback into a storage AbilityFeedback.
func (AbilityFeedback) Domain ¶
func (a AbilityFeedback) Domain() ability.Feedback
Domain converts a storage AbilityFeedback into a game AbilityFeedback.
func (*AbilityFeedback) Size ¶
func (d *AbilityFeedback) Size() (s uint64)
type Account ¶
func NewAccount ¶
NewAccount converts a domain account into a storage account.
type DamageDirect ¶
func NewDamageDirect ¶
func NewDamageDirect(c ability.DamageDirect) DamageDirect
NewDamageDirect converts a domain DamageDirect into a storage DamageDirect.
func (DamageDirect) Domain ¶
func (c DamageDirect) Domain() ability.DamageDirect
Domain converts a storage DamageDirect into a domain DamageDirect.
func (*DamageDirect) Size ¶
func (d *DamageDirect) Size() (s uint64)
type DamageDirectFeedback ¶
type DamageDirectFeedback struct {
Amount int64
}
func NewDamageDirectFeedback ¶
func NewDamageDirectFeedback(fb ability.DamageDirectFeedback) DamageDirectFeedback
NewDamageDirectFeedback converts a game DamageDirectFeedback into a storage DamageDirectFeedback.
func (DamageDirectFeedback) Domain ¶
func (fb DamageDirectFeedback) Domain() ability.DamageDirectFeedback
Domain converts a DamageDirectFeedback storage into a DamageDirectFeedback domain.
func (*DamageDirectFeedback) Marshal ¶
func (d *DamageDirectFeedback) Marshal(buf []byte) ([]byte, error)
func (*DamageDirectFeedback) Size ¶
func (d *DamageDirectFeedback) Size() (s uint64)
type DamageOverTime ¶
func NewDamageOverTime ¶
func NewDamageOverTime(c ability.DamageOverTime) DamageOverTime
NewDamageOverTime converts a domain DamageOverTime into a storage DamageOverTime.
func (DamageOverTime) Domain ¶
func (c DamageOverTime) Domain() ability.DamageOverTime
Domain converts a storage DamageOverTime into a domain DamageOverTime.
func (*DamageOverTime) Size ¶
func (d *DamageOverTime) Size() (s uint64)
type DamageOverTimeFeedback ¶
type DamageOverTimeFeedback struct { }
func NewDamageOverTimeFeedback ¶
func NewDamageOverTimeFeedback(fb ability.DamageOverTimeFeedback) DamageOverTimeFeedback
NewDamageOverTimeFeedback converts a game DamageOverTimeFeedback into a storage DamageOverTimeFeedback.
func (DamageOverTimeFeedback) Domain ¶
func (fb DamageOverTimeFeedback) Domain() ability.DamageOverTimeFeedback
Domain converts a DamageOverTimeFeedback storage into a DamageOverTimeFeedback domain.
func (*DamageOverTimeFeedback) Marshal ¶
func (d *DamageOverTimeFeedback) Marshal(buf []byte) ([]byte, error)
func (*DamageOverTimeFeedback) Size ¶
func (d *DamageOverTimeFeedback) Size() (s uint64)
type Entity ¶
type Entity struct { ID [16]byte Type [16]byte Name string HP uint64 MP uint64 SectorID [16]byte X float64 Y float64 Z float64 }
type Event ¶
type Feedback ¶
func NewFeedback ¶
NewFeedback convert a event.Feedback into a storage Feedback.
type HealDirect ¶
func NewHealDirect ¶
func NewHealDirect(c ability.HealDirect) HealDirect
NewHealDirect converts a domain HealDirect into a storage HealDirect.
func (HealDirect) Domain ¶
func (c HealDirect) Domain() ability.HealDirect
Domain converts a storage HealDirect into a domain HealDirect.
func (*HealDirect) Size ¶
func (d *HealDirect) Size() (s uint64)
type HealDirectFeedback ¶
type HealDirectFeedback struct {
Amount int64
}
func NewHealDirectFeedback ¶
func NewHealDirectFeedback(fb ability.HealDirectFeedback) HealDirectFeedback
NewHealDirectFeedback converts a game HealDirectFeedback into a storage HealDirectFeedback.
func (HealDirectFeedback) Domain ¶
func (fb HealDirectFeedback) Domain() ability.HealDirectFeedback
Domain converts a HealDirectFeedback storage into a HealDirectFeedback domain.
func (*HealDirectFeedback) Marshal ¶
func (d *HealDirectFeedback) Marshal(buf []byte) ([]byte, error)
func (*HealDirectFeedback) Size ¶
func (d *HealDirectFeedback) Size() (s uint64)
type HealOverTime ¶
func NewHealOverTime ¶
func NewHealOverTime(c ability.HealOverTime) HealOverTime
NewHealOverTime converts a domain HealOverTime into a storage HealOverTime.
func (HealOverTime) Domain ¶
func (c HealOverTime) Domain() ability.HealOverTime
Domain converts a storage HealOverTime into a domain HealOverTime.
func (*HealOverTime) Size ¶
func (d *HealOverTime) Size() (s uint64)
type HealOverTimeFeedback ¶
type HealOverTimeFeedback struct { }
func NewHealOverTimeFeedback ¶
func NewHealOverTimeFeedback(fb ability.HealOverTimeFeedback) HealOverTimeFeedback
NewHealOverTimeFeedback converts a game HealOverTimeFeedback into a storage HealOverTimeFeedback.
func (HealOverTimeFeedback) Domain ¶
func (fb HealOverTimeFeedback) Domain() ability.HealOverTimeFeedback
Domain converts a HealOverTimeFeedback storage into a HealOverTimeFeedback domain.
func (*HealOverTimeFeedback) Marshal ¶
func (d *HealOverTimeFeedback) Marshal(buf []byte) ([]byte, error)
func (*HealOverTimeFeedback) Size ¶
func (d *HealOverTimeFeedback) Size() (s uint64)
type Listener ¶
func NewListener ¶
NewListener converts a domain listener to a storage listener.
type Recurrer ¶
func NewRecurrer ¶
NewRecurrer converts a domain recurrer to a storage recurrer.
type Sector ¶
type SectorEntities ¶
func NewSectorEntities ¶
func NewSectorEntities(se sector.Entities) *SectorEntities
NewSectorEntities converts a domain se into a storage se.
func (*SectorEntities) Domain ¶
func (se *SectorEntities) Domain() sector.Entities
Domain converts a storage sector entities into a domain sector entities.
func (*SectorEntities) Size ¶
func (d *SectorEntities) Size() (s uint64)
Source Files ¶
- ability.go
- ability.schema.gen.go
- ability_feedback.go
- ability_feedback.schema.gen.go
- account.go
- account.schema.gen.go
- entity.go
- entity.schema.gen.go
- errors.go
- event.go
- event.schema.gen.go
- listener.go
- listener.schema.gen.go
- recurrer.go
- recurrer.schema.gen.go
- sector.go
- sector.schema.gen.go
- sector_entities.go
- sector_entities.schema.gen.go
- token.go
- token.schema.gen.go