pob_goods

package
v0.103.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	Name      string
	Nickname  string
	ShopItems []ShopItem `json:"shop_items"`

	SystemHash      *flhash.HashCode `json:"system"`      //: 2745655887,
	Pos             *string          `json:"pos"`         //: "299016, 33, -178",
	AffiliationHash *flhash.HashCode `json:"affiliation"` //: 2620,
	Level           *int             `json:"level"`       //: 1,
	Money           *int             `json:"money"`       //: 0,
	Health          *int             `json:"health"`      //: 50,
	DefenseMode     *int             `json:"defensemode"` //: 1,
}

type Config

type Config struct {
	BasesByName map[string]*Base `json:"bases"`
	Timestamp   string           `json:"timestamp"`
	Bases       []*Base
}

func Read

func Read(file *file.File) *Config

func (*Config) Write

func (frelconfig *Config) Write() *file.File

type ShopItem

type ShopItem struct {
	Id        int `json:"id"`
	Quantity  int `json:"quantity"`
	Price     int `json:"price"`
	SellPrice int `json:"sell_price"`
	MinStock  int `json:"min_stock"`
	MaxStock  int `json:"max_stock"`
}

Jump to

Keyboard shortcuts

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