Documentation ¶
Index ¶
Constants ¶
View Source
const ( BnameCashInfoStages = "stg" BnameCashInfoCards = "cs" BnameCashInfoOrderIds = "ois" )
View Source
const ( BnameEquipmentId = "id" BnameEquipmentRefId = "rid" BnameEquipmentAtk = "atk" BnameEquipmentDef = "def" BnameEquipmentHp = "hp" )
View Source
const ( BnamePlayerUid = "_id" BnamePlayerWallet = "wlt" BnamePlayerEquipments = "eqm" BnamePlayerItems = "itm" BnamePlayerCash = "cs" BnamePlayerUpdateVersion = "_uv" BnamePlayerCreateTime = "_ct" BnamePlayerUpdateTime = "_ut" )
View Source
const ( BnameWalletCoinTotal = "ct" BnameWalletCoinUsed = "cu" BnameWalletDiamond = "d" )
Variables ¶
This section is empty.
Functions ¶
func EquipmentFactory ¶
func EquipmentFactory() bsonmodel.StringObjectMapValueFactory
Types ¶
type CashInfo ¶
type CashInfo interface { bsonmodel.ObjectModel Stages() bsonmodel.IntSimpleMapModel Cards() []int SetCards(cards []int) OrderIds() []string SetOrderIds(orderIds []string) }
func NewCashInfo ¶
type Equipment ¶
type Equipment interface { bsonmodel.StringObjectMapValueModel Id() string SetId(id string) RefId() int SetRefId(refId int) Atk() int SetAtk(atk int) Def() int SetDef(def int) Hp() int SetHp(hp int) }
func NewEquipment ¶
func NewEquipment() Equipment
type Player ¶
type Player interface { bsonmodel.RootModel Uid() int SetUid(uid int) Wallet() Wallet Equipments() bsonmodel.StringObjectMapModel Equipment(id string) Equipment Items() bsonmodel.IntSimpleMapModel Cash() CashInfo UpdateVersion() int SetUpdateVersion(updateVersion int) IncreaseUpdateVersion() int CreateTime() time.Time SetCreateTime(createTime time.Time) UpdateTime() time.Time SetUpdateTime(updateTime time.Time) }
func LoadPlayerFromJsoniter ¶
Click to show internal directories.
Click to hide internal directories.