database

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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 Backup added in v0.6.0

type Backup struct {
	BackupId string    `json:"backup_id"`
	SaveTime time.Time `json:"save_time"`
	Path     string    `json:"path"`
}

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 Item added in v0.5.8

type Item struct {
	SlotIndex  int32  `json:"SlotIndex"`
	ItemId     string `json:"ItemId"`
	StackCount int32  `json:"StackCount"`
}

type Items added in v0.5.8

type Items struct {
	CommonContainerId           []*Item `json:"CommonContainerId"`
	DropSlotContainerId         []*Item `json:"DropSlotContainerId"`
	EssentialContainerId        []*Item `json:"EssentialContainerId"`
	FoodEquipContainerId        []*Item `json:"FoodEquipContainerId"`
	PlayerEquipArmorContainerId []*Item `json:"PlayerEquipArmorContainerId"`
	WeaponLoadOutContainerId    []*Item `json:"WeaponLoadOutContainerId"`
}

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"`
	Items *Items `json:"items"`
}

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 PlayerW added in v0.5.5

type PlayerW struct {
	Name      string `json:"name"`
	SteamID   string `json:"steam_id"`
	PlayerUID string `json:"player_uid"`
}

type RconCommand added in v0.5.6

type RconCommand struct {
	Command string `json:"command"`
	Remark  string `json:"remark"`
}

type RconCommandList added in v0.5.6

type RconCommandList struct {
	UUID string `json:"uuid"`
	RconCommand
}

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"`
	SaveLastOnline string           `json:"save_last_online"`
	PlayerRcon
}

Jump to

Keyboard shortcuts

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