equipment_mapped

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILENAME utils_types.FilePath = "goods.ini"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Commodity

type Commodity struct {
	semantic.Model
	Nickname  *semantic.String
	Equipment *semantic.String
	Category  *semantic.String

	Price         *semantic.Int
	Combinable    *semantic.String // should be StrBool
	GoodSellPrice *semantic.Float
	BadBuyPrice   *semantic.Float
	BadSellPrice  *semantic.Float
	GoodBuyPrice  *semantic.Float
	ShopArchetype *semantic.Path
	ItemIcon      *semantic.Path
	JumpDist      *semantic.Int
}

type Config

type Config struct {
	Files []*ConfigFile

	Goods          []*Good
	GoodsMap       *lower_map.KeyLoweredMap[string, *Good]
	Commodities    []*Commodity
	CommoditiesMap *lower_map.KeyLoweredMap[string, *Commodity]
}

func Read

func Read(input_files []*file.File) *Config

func (*Config) Write

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

type ConfigFile added in v0.14.0

type ConfigFile struct {
	semantic.ConfigModel
}

type Good added in v0.14.0

type Good struct {
	semantic.Model
	Category *semantic.String
	Nickname *semantic.String
	Price    *semantic.Int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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