configs_export

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 8 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
	FactionName      string
	System           string
	SystemNickname   string
	StridName        int
	InfocardID       int
	Infocard         Infocard
	File             utils_types.FilePath
	BGCS_base_run_by string
	MarketGoods      []MarketGood
}

type Exporter

type Exporter struct {
	Bases         []Base
	GoodsSelEquip []GoodSelEquip
	Factions      []Faction
	// contains filtered or unexported fields
}

func Export added in v0.13.0

func Export(configs *configs_mapped.MappedConfigs) *Exporter

func NewExporter

func NewExporter(configs *configs_mapped.MappedConfigs, opts ...OptExport) *Exporter

func (*Exporter) Export added in v0.13.0

func (e *Exporter) Export() *Exporter

func (*Exporter) GetFactions added in v0.13.0

func (e *Exporter) GetFactions() []Faction

type Faction added in v0.13.0

type Faction struct {
	Name        string
	ShortName   string
	Nickname    string
	InfonameID  int
	InfocardID  int
	Infocard    Infocard
	Reputations []Reputation
}

type GoodSelEquip added in v0.11.0

type GoodSelEquip struct {
	Nickname string
	Infocard Infocard
}

type GoodType added in v0.8.0

type GoodType string
const (
	TypeCommodity GoodType = "commodity"
)

type Infocard added in v0.6.1

type Infocard struct {
	Lines []string
}

type MarketGood added in v0.8.0

type MarketGood struct {
	Name     string
	Nickname string
	Type     GoodType

	LevelRequired int
	RepRequired   float64

	IsBuyOnly     bool
	PriceModifier float64
	PriceBase     int
	Price         int
}

type NoNameIncluded

type NoNameIncluded bool

type OptExport added in v0.13.0

type OptExport func(e *Exporter)

func WithNoNameBases added in v0.13.0

func WithNoNameBases() OptExport

type Reputation added in v0.13.0

type Reputation struct {
	Name     string
	Rep      float64
	Empathy  float64
	Nickname string
}

Jump to

Keyboard shortcuts

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