Versions in this module Expand all Collapse all v0 v0.0.2 Jul 10, 2018 Changes in this version + var ErrNotFound = errors.New("no results found") + type Ability struct + CD uint32 + Components []interface{} + CurrentCD uint32 + ID [16]byte + MPConsumption uint64 + Name string + Type [16]byte + func NewAbility(a ability.A) *Ability + func (a Ability) Domain() ability.A + func (d *Ability) Marshal(buf []byte) ([]byte, error) + func (d *Ability) Size() (s uint64) + func (d *Ability) Unmarshal(buf []byte) (uint64, error) + type AbilityFeedback struct + AbilityID [16]byte + Components []interface{} + ID [16]byte + func NewAbilityFeedback(fb ability.Feedback) *AbilityFeedback + func (a AbilityFeedback) Domain() ability.Feedback + func (d *AbilityFeedback) Marshal(buf []byte) ([]byte, error) + func (d *AbilityFeedback) Size() (s uint64) + func (d *AbilityFeedback) Unmarshal(buf []byte) (uint64, error) + type Account struct + ID [16]byte + Password string + Token [16]byte + Username string + func NewAccount(a account.A) *Account + func (a *Account) Domain(username string) (account.A, error) + func (d *Account) Marshal(buf []byte) ([]byte, error) + func (d *Account) Size() (s uint64) + func (d *Account) Unmarshal(buf []byte) (uint64, error) + type BondPoint struct + ID [16]byte + SectorID [16]byte + X float64 + Y float64 + Z float64 + func (d *BondPoint) Marshal(buf []byte) ([]byte, error) + func (d *BondPoint) Size() (s uint64) + func (d *BondPoint) Unmarshal(buf []byte) (uint64, error) + type Cast struct + AbilityID [16]byte + Position Vec3 + Source [16]byte + Targets [][16]byte + func NewCast(c event.Cast) Cast + func (c Cast) Domain() event.Cast + func (d *Cast) Marshal(buf []byte) ([]byte, error) + func (d *Cast) Size() (s uint64) + func (d *Cast) Unmarshal(buf []byte) (uint64, error) + type DamageDirect struct + Amount uint64 + Type uint8 + func NewDamageDirect(c ability.DamageDirect) DamageDirect + func (c DamageDirect) Domain() ability.DamageDirect + func (d *DamageDirect) Marshal(buf []byte) ([]byte, error) + func (d *DamageDirect) Size() (s uint64) + func (d *DamageDirect) Unmarshal(buf []byte) (uint64, error) + type DamageDirectFeedback struct + Amount int64 + func NewDamageDirectFeedback(fb ability.DamageDirectFeedback) DamageDirectFeedback + func (d *DamageDirectFeedback) Marshal(buf []byte) ([]byte, error) + func (d *DamageDirectFeedback) Size() (s uint64) + func (d *DamageDirectFeedback) Unmarshal(buf []byte) (uint64, error) + func (fb DamageDirectFeedback) Domain() ability.DamageDirectFeedback + type DamageOverTime struct + Amount uint64 + Duration uint64 + Frequency uint64 + Type uint8 + func NewDamageOverTime(c ability.DamageOverTime) DamageOverTime + func (c DamageOverTime) Domain() ability.DamageOverTime + func (d *DamageOverTime) Marshal(buf []byte) ([]byte, error) + func (d *DamageOverTime) Size() (s uint64) + func (d *DamageOverTime) Unmarshal(buf []byte) (uint64, error) + type DamageOverTimeFeedback struct + func NewDamageOverTimeFeedback(fb ability.DamageOverTimeFeedback) DamageOverTimeFeedback + func (d *DamageOverTimeFeedback) Marshal(buf []byte) ([]byte, error) + func (d *DamageOverTimeFeedback) Size() (s uint64) + func (d *DamageOverTimeFeedback) Unmarshal(buf []byte) (uint64, error) + func (fb DamageOverTimeFeedback) Domain() ability.DamageOverTimeFeedback + type Entity struct + HP uint64 + ID [16]byte + MP uint64 + Name string + SectorID [16]byte + Type [16]byte + X float64 + Y float64 + Z float64 + func NewEntity(e entity.E) *Entity + func (d *Entity) Marshal(buf []byte) ([]byte, error) + func (d *Entity) Size() (s uint64) + func (d *Entity) Unmarshal(buf []byte) (uint64, error) + func (e Entity) Domain() entity.E + type Event struct + Action interface{} + ID [16]byte + Source [16]byte + TS int64 + func NewEvent(ev event.E) *Event + func (d *Event) Marshal(buf []byte) ([]byte, error) + func (d *Event) Size() (s uint64) + func (d *Event) Unmarshal(buf []byte) (uint64, error) + func (e Event) Domain() event.E + type Feedback struct + AbilityID [16]byte + Source [16]byte + Target [16]byte + func NewFeedback(fb event.Feedback) Feedback + func (d *Feedback) Marshal(buf []byte) ([]byte, error) + func (d *Feedback) Size() (s uint64) + func (d *Feedback) Unmarshal(buf []byte) (uint64, error) + func (fb Feedback) Domain() event.Feedback + type HealDirect struct + Amount uint64 + Type uint8 + func NewHealDirect(c ability.HealDirect) HealDirect + func (c HealDirect) Domain() ability.HealDirect + func (d *HealDirect) Marshal(buf []byte) ([]byte, error) + func (d *HealDirect) Size() (s uint64) + func (d *HealDirect) Unmarshal(buf []byte) (uint64, error) + type HealDirectFeedback struct + Amount int64 + func NewHealDirectFeedback(fb ability.HealDirectFeedback) HealDirectFeedback + func (d *HealDirectFeedback) Marshal(buf []byte) ([]byte, error) + func (d *HealDirectFeedback) Size() (s uint64) + func (d *HealDirectFeedback) Unmarshal(buf []byte) (uint64, error) + func (fb HealDirectFeedback) Domain() ability.HealDirectFeedback + type HealOverTime struct + Amount uint64 + Duration uint64 + Frequency uint64 + Type uint8 + func NewHealOverTime(c ability.HealOverTime) HealOverTime + func (c HealOverTime) Domain() ability.HealOverTime + func (d *HealOverTime) Marshal(buf []byte) ([]byte, error) + func (d *HealOverTime) Size() (s uint64) + func (d *HealOverTime) Unmarshal(buf []byte) (uint64, error) + type HealOverTimeFeedback struct + func NewHealOverTimeFeedback(fb ability.HealOverTimeFeedback) HealOverTimeFeedback + func (d *HealOverTimeFeedback) Marshal(buf []byte) ([]byte, error) + func (d *HealOverTimeFeedback) Size() (s uint64) + func (d *HealOverTimeFeedback) Unmarshal(buf []byte) (uint64, error) + func (fb HealOverTimeFeedback) Domain() ability.HealOverTimeFeedback + type Listener struct + Action uint8 + ID [16]byte + Pool [16]byte + func NewListener(listener event.Listener) *Listener + func (d *Listener) Marshal(buf []byte) ([]byte, error) + func (d *Listener) Size() (s uint64) + func (d *Listener) Unmarshal(buf []byte) (uint64, error) + func (l Listener) Domain() event.Listener + type Move struct + Position Vec3 + Source [16]byte + Target [16]byte + func NewMove(m event.Move) Move + func (d *Move) Marshal(buf []byte) ([]byte, error) + func (d *Move) Size() (s uint64) + func (d *Move) Unmarshal(buf []byte) (uint64, error) + func (m Move) Domain() event.Move + type Recurrer struct + Action uint8 + EntityID [16]byte + ID [16]byte + Pool [16]byte + TokenID [16]byte + func NewRecurrer(recurrer event.Recurrer) *Recurrer + func (d *Recurrer) Marshal(buf []byte) ([]byte, error) + func (d *Recurrer) Size() (s uint64) + func (d *Recurrer) Unmarshal(buf []byte) (uint64, error) + func (r Recurrer) Domain() event.Recurrer + type Sector struct + BondPoints []BondPoint + ID [16]byte + X float64 + Y float64 + Z float64 + func NewSector(sector sector.S) *Sector + func (d *Sector) Marshal(buf []byte) ([]byte, error) + func (d *Sector) Size() (s uint64) + func (d *Sector) Unmarshal(buf []byte) (uint64, error) + func (s *Sector) Domain() sector.S + type SectorEntities struct + EntityIDs [][16]byte + SectorID [16]byte + func NewSectorEntities(se sector.Entities) *SectorEntities + func (d *SectorEntities) Marshal(buf []byte) ([]byte, error) + func (d *SectorEntities) Size() (s uint64) + func (d *SectorEntities) Unmarshal(buf []byte) (uint64, error) + func (se *SectorEntities) Domain() sector.Entities + type Token struct + Account [16]byte + CorePool [16]byte + Entity [16]byte + ID [16]byte + IP string + PC [16]byte + Ping uint64 + SyncPool [16]byte + func NewToken(tok account.Token) *Token + func (d *Token) Marshal(buf []byte) ([]byte, error) + func (d *Token) Size() (s uint64) + func (d *Token) Unmarshal(buf []byte) (uint64, error) + func (t *Token) Domain() (account.Token, error) + type Vec3 struct + X float64 + Y float64 + Z float64 + func (d *Vec3) Marshal(buf []byte) ([]byte, error) + func (d *Vec3) Size() (s uint64) + func (d *Vec3) Unmarshal(buf []byte) (uint64, error)