pob_goods

package
v0.106.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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,
	InfocardParagraphs []string         `json:"infocard_paragraphs"`

	HostileFactionHashList []*flhash.HashCode `json:"hostile_list"`
	HostileTagList         []string           `json:"hostile_tag_list"`
	HostileNameList        []string           `json:"hostile_name_list"`
	AllyFactionHashList    []*flhash.HashCode `json:"ally_list"`
	AllyTagList            []string           `json:"ally_tag_list"`
	AllyNameList           []string           `json:"ally_name_list"`
	SrpFactionHashList     []*flhash.HashCode `json:"srp_list"`
	SrpTagList             []string           `json:"srp_tag_list"`
	SrpNameList            []string           `json:"srp_name_list"`
}

type Config

type Config struct {
	BasesByName map[string]*Base `json:"bases"`
	Timestamp   string           `json:"timestamp"`
	Bases       []*Base
	// contains filtered or unexported fields
}

func Read

func Read(file *file.File) *Config

func (*Config) Refresh added in v0.105.0

func (c *Config) Refresh()

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"`
}

func (ShopItem) BaseBuys added in v0.104.0

func (good ShopItem) BaseBuys() bool

func (ShopItem) BaseSells added in v0.104.0

func (good ShopItem) BaseSells() bool

Jump to

Keyboard shortcuts

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