Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Mgr *dbManager
Functions ¶
This section is empty.
Types ¶
type AvatarInfo ¶
type Role ¶
type Role struct {
Roleid uint64 `json:"roleid,string" gorm:"primary_key;AUTO_INCREMENT"`
Profession byte `json:"profession"`
Nickname string `json:"nickname"`
Zonename string `json:"zonename"`
Regip string `json:"regip"`
Lastip string `json:"lastip"`
Lastlogin time.Time `json:"lastlogin" gorm:"default:NULL"`
CreatedAt time.Time `json:"createdate"`
}
type RoleData ¶
type RoleData struct {
Roleid uint64 `json:"roleid,string" gorm:"not null"`
Level uint16
Exp uint64
Coin uint64
Hp uint64
Mp uint64
Attackrange float32
Attackhurt uint16
// Magichurt uint16
// PhysicalDefense
// Magicdefense
// //Agility uint16 //敏捷
// Crit
// Cdminus
Movespeed uint16
Attackrate float32
Weapon uint64
Hat uint64
Necklace uint64
Armor uint64
Shoes uint64
Scene string
Posx float64
Posy float64
Posz float64
Rotx float64
Roty float64
Rotz float64
}
Click to show internal directories.
Click to hide internal directories.