Documentation ¶
Index ¶
- func GetRunePool() *sync.Pool
- func ReleasePoolRune(x interface{})
- type Option
- type Options
- type Rune
- type RuneAtt
- type RuneBox
- type RuneV1
- func (r *RuneV1) AfterLoad() error
- func (r *RuneV1) CalcAtt()
- func (r *RuneV1) GetAtt(idx int32) *RuneAtt
- func (r *RuneV1) GetAttManager() *att.AttManager
- func (r *RuneV1) GetEquipObj() int64
- func (r *RuneV1) GetExpire() *time.Timer
- func (r *RuneV1) GetID() int64
- func (r *RuneV1) GetObjID() int64
- func (r *RuneV1) GetOptions() *Options
- func (r *RuneV1) GetOwnerID() int64
- func (r *RuneV1) GetStoreIndex() int64
- func (r *RuneV1) GetType() int32
- func (r *RuneV1) GetTypeID() int32
- func (r *RuneV1) SetAtt(idx int32, att *RuneAtt)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRunePool ¶
func ReleasePoolRune ¶
func ReleasePoolRune(x interface{})
Types ¶
type Options ¶
type Options struct { Id int64 `bson:"_id" json:"_id"` OwnerId int64 `bson:"owner_id" json:"owner_id"` TypeId int32 `bson:"type_id" json:"type_id"` EquipObj int64 `bson:"equip_obj" json:"equip_obj"` Entry *define.RuneEntry `bson:"-" json:"-"` }
rune options
func DefaultOptions ¶
func DefaultOptions() Options
type Rune ¶
type Rune interface { store.StoreObjector GetOptions() *Options GetAtt(int32) *RuneAtt GetAttManager() *att.AttManager GetEquipObj() int64 SetAtt(int32, *RuneAtt) CalcAtt() }
func NewPoolRune ¶
func NewPoolRune() Rune
type RuneV1 ¶
type RuneV1 struct { Options `bson:"inline" json:",inline"` // contains filtered or unexported fields }
func (*RuneV1) GetAttManager ¶
func (r *RuneV1) GetAttManager() *att.AttManager
func (*RuneV1) GetEquipObj ¶
func (*RuneV1) GetOptions ¶
func (*RuneV1) GetOwnerID ¶
func (*RuneV1) GetStoreIndex ¶
Click to show internal directories.
Click to hide internal directories.