equipment_mapped

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 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 []*iniload.IniLoader

	Goods    []*Good
	GoodsMap *lower_map.KeyLoweredMap[string, *Good]

	Commodities    []*Commodity
	CommoditiesMap *lower_map.KeyLoweredMap[string, *Commodity]
	Ships          []*Ship
	ShipsMap       *lower_map.KeyLoweredMap[string, *Ship]
	ShipHulls      []*ShipHull
	ShipHullsMap   *lower_map.KeyLoweredMap[string, *ShipHull]
}

func Read

func Read(configs []*iniload.IniLoader) *Config

func (*Config) Write

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

type Good added in v0.14.0

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

type Ship added in v0.16.0

type Ship struct {
	semantic.Model
	Category *semantic.String
	Nickname *semantic.String
	Hull     *semantic.String
}

type ShipHull added in v0.16.0

type ShipHull struct {
	semantic.Model
	Nickname *semantic.String
	Category *semantic.String
	Ship     *semantic.String
	Price    *semantic.Int
	IdsName  *semantic.Int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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