rune

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ds *db.Datastore)

Types

type Rune

type Rune 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"`
	TypeID   int32 `gorm:"type:int(10);column:type_id;default:-1;not null" bson:"type_id"`
	EquipObj int64 `gorm:"type:bigint(20);column:equip_obj;default:-1;not null" bson:"equip_obj"`
	// contains filtered or unexported fields
}

func LoadAll

func LoadAll(ds *db.Datastore, ownerID int64, tableName string) []*Rune

func NewRune

func NewRune(id int64) *Rune

func (*Rune) CalcAtt

func (r *Rune) CalcAtt()

func (*Rune) Entry

func (r *Rune) Entry() *define.RuneEntry

func (*Rune) GetAtt

func (r *Rune) GetAtt(idx int32) *RuneAtt

func (*Rune) GetAttManager

func (r *Rune) GetAttManager() *att.AttManager

func (*Rune) GetEquipObj

func (r *Rune) GetEquipObj() int64

func (*Rune) GetID

func (r *Rune) GetID() int64

func (*Rune) GetOwnerID

func (r *Rune) GetOwnerID() int64

func (*Rune) GetTypeID

func (r *Rune) GetTypeID() int32

func (*Rune) SetAtt

func (r *Rune) SetAtt(idx int32, att *RuneAtt)

func (*Rune) SetAttManager

func (r *Rune) SetAttManager(m *att.AttManager)

func (*Rune) SetEntry

func (r *Rune) SetEntry(e *define.RuneEntry)

func (*Rune) SetEquipObj

func (r *Rune) SetEquipObj(id int64)

func (*Rune) SetOwnerID

func (r *Rune) SetOwnerID(id int64)

func (*Rune) SetTypeID

func (r *Rune) SetTypeID(id int32)

type RuneAtt

type RuneAtt struct {
	AttType  int32 `gorm:"-" bson:"att_type"`
	AttValue int64 `gorm:"-" bson:"att_value"`
}

type RuneBox

type RuneBox struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewRuneBox

func NewRuneBox(owner define.PluginObj) *RuneBox

func (*RuneBox) GetRuneByPos

func (rb *RuneBox) GetRuneByPos(pos int32) *Rune

func (*RuneBox) PutonRune

func (rb *RuneBox) PutonRune(r *Rune) error

func (*RuneBox) TakeoffRune

func (rb *RuneBox) TakeoffRune(pos int32) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL