Documentation ¶
Index ¶
- func TalisMans_New(id, star int32) *PB.TalisMan
- type Armor
- type Bag
- func (self *Bag) Add_item(id int32, n int32)
- func (self *Bag) CheckItemLimit(id int32) bool
- func (self *Bag) FindArmor(seq int64) *Armor
- func (self *Bag) FindSoul(seq int64) *Soul
- func (self *Bag) FindTalisMan(seq int64) *PB.TalisMan
- func (self *Bag) GetCcy(id int32) int64
- func (self *Bag) GetItem(id int32) int32
- func (self *Bag) GetItemsFromClass(class int32) (res []PB.Unit)
- func (self *Bag) Init(plr IPlayer)
- func (self *Bag) NewOp(from PB.ObjFrom) *BagOp
- func (self *Bag) NewSoul(id int32) *Soul
- func (self *Bag) SetTalisMan(armor *PB.TalisMan)
- func (self *Bag) ToMsg() *PB.BagData
- func (self *Bag) ToMsg_ArmorArray() (ret []*PB.Armor)
- func (self *Bag) ToMsg_CcyArray() (ret []*PB.Ccy)
- func (self *Bag) ToMsg_ItemArray() (ret []*PB.Item)
- func (self *Bag) ToMsg_SoulArray() (ret []*PB.Soul)
- type BagOp
- func (self *BagOp) Add(id int32, n int64) interface{}
- func (self *BagOp) AddArmor(armor *Armor) *BagOp
- func (self *BagOp) AddDict(k, v string)
- func (self *BagOp) AddSoul(soul *Soul) *BagOp
- func (self *BagOp) AddTalisMan(armor *PB.TalisMan) *BagOp
- func (self *BagOp) Apply() *rewards_t
- func (self *BagOp) CheckArmorGenerate(num int32) bool
- func (self *BagOp) CheckEnough() int32
- func (self *BagOp) CheckFullBeforeApply() int32
- func (self *BagOp) DelArmor(seq int64) *BagOp
- func (self *BagOp) DelSoul(seq int64) *BagOp
- func (self *BagOp) DelTalisMan(seq int64) *BagOp
- func (self *BagOp) FindAllPreArmor() []*PB.Armor
- func (self *BagOp) Renew()
- type Fields
- type FieldsOp
- func (self *FieldsOp) Add(id int32, n int64)
- func (self *FieldsOp) AddCheckMax(id int32, n int64, max int64) int32
- func (self *FieldsOp) AddCheckMin(id int32, n int64, min int64) int32
- func (self *FieldsOp) AddLimitMax(id int32, n int64, max int64)
- func (self *FieldsOp) AddLimitMin(id int32, n int64, min int64)
- func (self *FieldsOp) Apply()
- func (self *FieldsOp) Set(id int32, v int64)
- type FigureStore
- type HFrame
- type HFrameStore
- type Head
- type HeadStore
- type IPlayer
- type Object
- type Soul
- type TalisMans
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TalisMans_New ¶
func TalisMans_New(id, star int32) *PB.TalisMan
Types ¶
type Armor ¶
type Bag ¶
type Bag struct { Ccy ccy_map_t Items item_map_t Armors armor_map_t TalisMans TalisMans Souls soul_map_t // contains filtered or unexported fields }
func (*Bag) CheckItemLimit ¶
func (*Bag) FindTalisMan ¶
func (*Bag) GetItemsFromClass ¶
func (*Bag) SetTalisMan ¶
func (self *Bag) SetTalisMan(armor *PB.TalisMan)
func (*Bag) ToMsg_ArmorArray ¶
func (self *Bag) ToMsg_ArmorArray() (ret []*PB.Armor)
func (*Bag) ToMsg_CcyArray ¶
func (self *Bag) ToMsg_CcyArray() (ret []*PB.Ccy)
func (*Bag) ToMsg_ItemArray ¶
func (self *Bag) ToMsg_ItemArray() (ret []*PB.Item)
func (*Bag) ToMsg_SoulArray ¶
func (self *Bag) ToMsg_SoulArray() (ret []*PB.Soul)
type BagOp ¶
type BagOp struct { Ccy ccy_map_t Items item_map_t Armors armor_map_t ArmorsDel []int64 TalisMans TalisMans TalisMansDel []int64 Souls soul_map_t SoulsDel []int64 Dict map[string]string // contains filtered or unexported fields }
func (*BagOp) AddTalisMan ¶
func (*BagOp) CheckArmorGenerate ¶
func (*BagOp) CheckEnough ¶
func (*BagOp) CheckFullBeforeApply ¶
在提交背包之前检测是否超过上限,阻止用户的操作,比如:背包开宝箱,领取邮件,领取活动奖励等
func (*BagOp) DelTalisMan ¶
func (*BagOp) FindAllPreArmor ¶
func (self *BagOp) FindAllPreArmor() []*PB.Armor
type FieldsOp ¶
type FieldsOp struct {
// contains filtered or unexported fields
}
func (*FieldsOp) AddCheckMax ¶
func (*FieldsOp) AddCheckMin ¶
type FigureStore ¶
type FigureStore struct { Ids []int32 // contains filtered or unexported fields }
func NewFigureStore ¶
func NewFigureStore() *FigureStore
func (*FigureStore) Add ¶
func (self *FigureStore) Add(id int32)
func (*FigureStore) Exists ¶
func (self *FigureStore) Exists(id int32) bool
func (*FigureStore) Init ¶
func (self *FigureStore) Init(plr IPlayer)
func (*FigureStore) ToMsg ¶
func (self *FigureStore) ToMsg() []int32
============================================================================
type HFrameStore ¶
type HFrameStore struct { HFrames []*HFrame // contains filtered or unexported fields }
func NewHFrameStore ¶
func NewHFrameStore() *HFrameStore
func (*HFrameStore) Add ¶
func (self *HFrameStore) Add(id int32)
func (*HFrameStore) Exists ¶
func (self *HFrameStore) Exists(id int32) bool
func (*HFrameStore) Get ¶
func (self *HFrameStore) Get(id int32) *HFrame
func (*HFrameStore) Init ¶
func (self *HFrameStore) Init(plr IPlayer)
func (*HFrameStore) ToMsg ¶
func (self *HFrameStore) ToMsg() []*PB.HeadFrame
============================================================================
type HeadStore ¶
type HeadStore struct { Heads []*Head // contains filtered or unexported fields }
func NewHeadStore ¶
func NewHeadStore() *HeadStore
type IPlayer ¶
type IPlayer interface { GetId() string GetName() string GetSvr() string GetSvrId() int32 GetSdk() string GetPlat() string GetDevId() string GetCreateTs() time.Time GetHead() int32 GetHFrame() int32 GetFigure() int32 GetExp() int64 GetLevel() int32 GetAtkPower() int32 AddExp(v int64) bool IsOnline() bool GetOnlineDur() int32 GetOfflineTs() time.Time GetHeadStore() *HeadStore GetHFrameStore() *HFrameStore GetFigureStore() *FigureStore DB() *db.Database SendMsg(message PB.Message) SendMsgWithoutQueue(message PB.Message) GetBag() *Bag GetFields() *Fields GetVipLevel() int32 GetBillSumDiam() int32 GetActRawData(actid int32) interface{} GetActPersonalStage(actid int32) int32 SetActPersonalStage(actid int32, v int32) GetGuildId() string GetGuildName() string GetGuildRank() int32 BuyCount(counter_id int32, num int32) int32 GetClientData() *PB.GS_UserInfo SendMail(mid int32, attachment []*Object, dict map[string]string) CalcHeroesProps(sendUpdate bool) //掉落接口 Drop(args ...interface{}) (ret []int32) CalcTeamProps(sendUpdate bool) }
Click to show internal directories.
Click to hide internal directories.