database

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() *bbolt.DB

func InitDB

func InitDB() *bbolt.DB

Types

type Guild

type Guild struct {
	Name           string         `json:"name"`
	BaseCampLevel  int32          `json:"base_camp_level"`
	AdminPlayerUid string         `json:"admin_player_uid"`
	Players        []*GuildPlayer `json:"players"`
	BaseIds        []string       `json:"base_ids"`
}

type GuildPlayer

type GuildPlayer struct {
	PlayerUid string `json:"player_uid"`
	Nickname  string `json:"nickname"`
}

type Pal

type Pal struct {
	Level     int32    `json:"level"`
	Exp       int64    `json:"exp"`
	Hp        int64    `json:"hp"`
	MaxHp     int64    `json:"max_hp"`
	Type      string   `json:"type"`
	Gender    string   `json:"gender"`
	IsLucky   bool     `json:"is_lucky"`
	IsBoss    bool     `json:"is_boss"`
	IsTower   bool     `json:"is_tower"`
	Workspeed int32    `json:"workspeed"`
	Melee     int32    `json:"melee"`
	Ranged    int32    `json:"ranged"`
	Defense   int32    `json:"defense"`
	Rank      int32    `json:"rank"`
	Skills    []string `json:"skills"`
}

type Player

type Player struct {
	TersePlayer
	Pals []*Pal `json:"pals"`
}

type PlayerRcon

type PlayerRcon struct {
	PlayerUid  string    `json:"player_uid"`
	SteamId    string    `json:"steam_id"`
	Nickname   string    `json:"nickname"`
	LastOnline time.Time `json:"last_online"`
}

type TersePlayer

type TersePlayer struct {
	PlayerUid      string           `json:"player_uid"`
	Nickname       string           `json:"nickname"`
	Level          int32            `json:"level"`
	Exp            int64            `json:"exp"`
	Hp             int64            `json:"hp"`
	MaxHp          int64            `json:"max_hp"`
	ShieldHp       int64            `json:"shield_hp"`
	ShieldMaxHp    int64            `json:"shield_max_hp"`
	MaxStatusPoint int32            `json:"max_status_point"`
	StatusPoint    map[string]int32 `json:"status_point"`
	FullStomach    float64          `json:"full_stomach"`
	PlayerRcon
}

Jump to

Keyboard shortcuts

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