Documentation
¶
Index ¶
- func LoadAll(ds *db.Datastore, ownerID int64, tableName string) interface{}
- func Migrate(ds *db.Datastore)
- type Hero
- type HeroV1
- func (h *HeroV1) AddExp(exp int64) int64
- func (h *HeroV1) AddLevel(level int32) int32
- func (h *HeroV1) BeforeDelete()
- func (h *HeroV1) CalcAtt()
- func (h *HeroV1) Entry() *define.HeroEntry
- func (h *HeroV1) GetAttManager() *att.AttManager
- func (h *HeroV1) GetEquipBar() *item.EquipBar
- func (h *HeroV1) GetExp() int64
- func (h *HeroV1) GetID() int64
- func (h *HeroV1) GetLevel() int32
- func (h *HeroV1) GetOwnerID() int64
- func (h *HeroV1) GetOwnerType() int32
- func (h *HeroV1) GetRuneBox() *rune.RuneBox
- func (h *HeroV1) GetType() int32
- func (h *HeroV1) GetTypeID() int32
- func (h *HeroV1) SetAttManager(m *att.AttManager)
- func (h *HeroV1) SetEntry(e *define.HeroEntry)
- func (h *HeroV1) SetEquipBar(eb *item.EquipBar)
- func (h *HeroV1) SetExp(exp int64)
- func (h *HeroV1) SetLevel(level int32)
- func (h *HeroV1) SetOwnerID(id int64)
- func (h *HeroV1) SetOwnerType(tp int32)
- func (h *HeroV1) SetRuneBox(b *rune.RuneBox)
- func (h *HeroV1) SetTypeID(id int32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hero ¶
type Hero interface { define.PluginObj Entry() *define.HeroEntry GetOwnerID() int64 GetOwnerType() int32 GetTypeID() int32 GetExp() int64 GetEquipBar() *item.EquipBar GetAttManager() *att.AttManager GetRuneBox() *rune.RuneBox SetOwnerID(int64) SetOwnerType(int32) SetTypeID(int32) SetExp(int64) SetLevel(int32) SetEntry(*define.HeroEntry) SetAttManager(*att.AttManager) SetRuneBox(*rune.RuneBox) SetEquipBar(*item.EquipBar) AddExp(int64) int64 AddLevel(int32) int32 BeforeDelete() CalcAtt() }
type HeroV1 ¶
type HeroV1 struct { ID int64 `gorm:"type:bigint(20);primary_key;column:id;default:-1;not null" bson:"_id"` OwnerID int64 `gorm:"type:bigint(20);column:owner_id;index:owner_id;default:-1;not null" bson:"owner_id"` OwnerType int32 `gorm:"type:int(10);column:owner_type;index:owner_type;default:-1;not null" bson:"owner_type"` TypeID int32 `gorm:"type:int(10);column:type_id;default:-1;not null" bson:"type_id"` Exp int64 `gorm:"type:bigint(20);column:exp;default:0;not null" bson:"exp"` Level int32 `gorm:"type:int(10);column:level;default:1;not null" bson:"level"` // contains filtered or unexported fields }
func (*HeroV1) BeforeDelete ¶
func (h *HeroV1) BeforeDelete()
func (*HeroV1) GetAttManager ¶
func (h *HeroV1) GetAttManager() *att.AttManager
func (*HeroV1) GetEquipBar ¶
func (*HeroV1) GetOwnerID ¶
func (*HeroV1) GetOwnerType ¶
func (*HeroV1) GetRuneBox ¶
func (*HeroV1) SetAttManager ¶
func (h *HeroV1) SetAttManager(m *att.AttManager)
func (*HeroV1) SetEquipBar ¶
func (*HeroV1) SetOwnerID ¶
func (*HeroV1) SetOwnerType ¶
func (*HeroV1) SetRuneBox ¶
Click to show internal directories.
Click to hide internal directories.