db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Mgr *dbManager

Functions

This section is empty.

Types

type AvatarInfo

type AvatarInfo struct {
	Roleid uint64 `json:"roleid,string" gorm:"not null"`
	Hair   uint64 `json:"hair" gorm:"default:0"`
	Face   uint64
	Eye    uint64
	Ear    uint64
}

type Item

type Item struct {
	Id     uint64 `json:"id,string" gorm:"not null"`
	Roleid uint64 `json:"roleid,string" gorm:"not null"`
	Desc   string
	Count  uint64
}

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
}

type Skill

type Skill struct {
	Id     uint64 `json:"id,string" gorm:"not null"`
	Roleid uint64 `json:"roleid,string" gorm:"not null"`
	Desc   string
}

Jump to

Keyboard shortcuts

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