Documentation ¶
Index ¶
- Variables
- func Buyable(Bases []GoodAtBase) bool
- func Empty(phrase string) bool
- func InitRegexExpression(expression string) *regexp.Regexp
- func NameWithSpacesOnly(word string) bool
- type Base
- type Commodity
- type CounterMeasure
- type DamageBonus
- type Engine
- type EquipmentSlot
- type Exporter
- func (e *Exporter) Export() *Exporter
- func (e *Exporter) GetAtBasesSold(commodity GetAtBasesInput) []GoodAtBase
- func (e *Exporter) GetBases() []Base
- func (e *Exporter) GetCommodities() []Commodity
- func (e *Exporter) GetCounterMeasures() []CounterMeasure
- func (e *Exporter) GetEngines() []Engine
- func (e *Exporter) GetFactions(bases []Base) []Faction
- func (e *Exporter) GetGuns() []Gun
- func (e *Exporter) GetMines() []Mine
- func (e *Exporter) GetMissiles() []Gun
- func (e *Exporter) GetShields() []Shield
- func (e *Exporter) GetShips() []Ship
- func (e *Exporter) GetThrusters() []Thruster
- func (e *Exporter) GetTractors() []Tractor
- type Faction
- type GetAtBasesInput
- type GoodAtBase
- type Gun
- type Infocard
- type InfocardKey
- type InfocardResult
- type InfocardsParser
- type MarketGood
- type Mine
- type Missile
- type OptExport
- type Rephack
- type Reputation
- type Shield
- type Ship
- type Thruster
- type Tractor
Constants ¶
This section is empty.
Variables ¶
View Source
var LogOgE = math.Log10(math.E)
View Source
var Pi180 = 57.29578 // number turning radians to degrees
View Source
var TypeClassRegex *regexp.Regexp
Functions ¶
func Buyable ¶ added in v0.33.0
func Buyable(Bases []GoodAtBase) bool
func InitRegexExpression ¶ added in v0.24.0
func NameWithSpacesOnly ¶ added in v0.15.0
Types ¶
type Base ¶
type Base struct { Name string Nickname string FactionName string System string SystemNickname string StridName int InfocardID int Infocard InfocardKey File utils_types.FilePath BGCS_base_run_by string MarketGoods []MarketGood }
func FilterToUserfulBases ¶ added in v0.33.0
type Commodity ¶ added in v0.19.0
type Commodity struct { Nickname string Name string Price int PricePerVolume float64 Combinable bool Volume float64 NameID int InfocardID int Infocard InfocardKey Bases []GoodAtBase BestBuyPricePerVol float64 BestSellPricePerVol float64 ProffitMarginPerVol float64 }
func FilterToUsefulCommodities ¶ added in v0.34.0
type CounterMeasure ¶ added in v0.35.0
type CounterMeasure struct { Name string Price int HitPts int AIRange int AmmoLimit int Lifetime int Range int DiversionPctg int Lootable bool Nickname string NameID int InfoID int Bases []GoodAtBase }
func FilterToUsefulCounterMeasures ¶ added in v0.35.0
func FilterToUsefulCounterMeasures(cms []CounterMeasure) []CounterMeasure
type DamageBonus ¶ added in v0.21.0
type Engine ¶ added in v0.29.0
type Engine struct { Name string Price int CruiseSpeed int CruiseChargeTime int LinearDrag int MaxForce int ReverseFraction float64 ImpulseSpeed float64 HpType string FlameEffect string TrailEffect string Nickname string NameID int InfoID int Bases []GoodAtBase }
func FilterToUsefulEngines ¶ added in v0.33.0
type EquipmentSlot ¶ added in v0.27.0
type Exporter ¶
type Exporter struct { Bases []Base Factions []Faction Infocards map[InfocardKey]*Infocard Commodities []Commodity Guns []Gun Missiles []Gun Mines []Mine Shields []Shield Thrusters []Thruster Ships []Ship Tractors []Tractor Engines []Engine CMs []CounterMeasure // 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) GetAtBasesSold ¶ added in v0.21.0
func (e *Exporter) GetAtBasesSold(commodity GetAtBasesInput) []GoodAtBase
func (*Exporter) GetCommodities ¶ added in v0.19.0
func (*Exporter) GetCounterMeasures ¶ added in v0.35.0
func (e *Exporter) GetCounterMeasures() []CounterMeasure
func (*Exporter) GetEngines ¶ added in v0.29.0
func (*Exporter) GetFactions ¶ added in v0.13.0
func (*Exporter) GetMissiles ¶ added in v0.22.0
func (*Exporter) GetShields ¶ added in v0.24.0
func (*Exporter) GetThrusters ¶ added in v0.25.0
func (*Exporter) GetTractors ¶ added in v0.28.0
type Faction ¶ added in v0.13.0
type Faction struct { Name string ShortName string Nickname string ObjectDestruction float64 MissionSuccess float64 MissionFailure float64 MissionAbort float64 InfonameID int InfocardID int Infocard InfocardKey Reputations []Reputation Rephacks []Rephack }
func FilterToUsefulFactions ¶ added in v0.33.0
type GetAtBasesInput ¶ added in v0.21.0
type GoodAtBase ¶ added in v0.21.0
type Gun ¶ added in v0.20.0
type Gun struct { Name string Type string Price int Class string Nickname string HpType string IdsName int IdsInfo int HitPts string PowerUsage float64 PowerPerSec float64 Refire float64 Range float64 Toughness float64 IsAutoTurret bool TurnRate float64 Lootable bool RequiredAmmo bool HullDamage int EnergyDamange int ShieldDamage int DamageType string LifeTime float64 Speed float64 HullDamagePerSec float64 ShieldDamagePerSec float64 PowerUsagePerSec float64 Efficiency float64 Value float64 Rating float64 Bases []GoodAtBase DamangeBonuses []DamageBonus Missile }
func FilterToUsefulGun ¶ added in v0.34.0
type InfocardKey ¶ added in v0.17.0
type InfocardKey string
type InfocardResult ¶ added in v0.17.0
type InfocardResult struct { Key InfocardKey Infocard }
type InfocardsParser ¶ added in v0.17.0
type InfocardsParser struct {
// contains filtered or unexported fields
}
This abstraction optimizes performance for infocards extracting, plus adds reusage
func NewInfocardsParser ¶ added in v0.17.0
func NewInfocardsParser(Infocards *infocard.Config) *InfocardsParser
func (*InfocardsParser) Get ¶ added in v0.17.0
func (s *InfocardsParser) Get() map[InfocardKey]*Infocard
func (*InfocardsParser) Set ¶ added in v0.17.0
func (i *InfocardsParser) Set(key InfocardKey, ids ...int)
type MarketGood ¶ added in v0.8.0
type Mine ¶ added in v0.23.0
type Mine struct { Name string Price int AmmoPrice int Nickname string IdsName int IdsInfo int HullDamage int EnergyDamange int ShieldDamage int PowerUsage float64 Value float64 Refire float64 DetonationDistance float64 Radius float64 SeekDistance int TopSpeed int Acceleration int LinearDrag float64 LifeTime float64 OwnerSafe int Toughness float64 HitPts int Lootable bool Bases []GoodAtBase }
func FilterToUsefulMines ¶ added in v0.34.0
type OptExport ¶ added in v0.13.0
type OptExport func(e *Exporter)
func WithEmptyRecords ¶ added in v0.31.0
func WithEmptyRecords() OptExport
type Reputation ¶ added in v0.13.0
type Shield ¶ added in v0.24.0
type Shield struct { Name string Class string Type string Technology string Price int Capacity int RegenerationRate int ConstantPowerDraw int Value float64 RebuildPowerDraw int OffRebuildTime int Toughness float64 HitPts int Lootable bool Nickname string HpType string IdsName int IdsInfo int Bases []GoodAtBase }
func FilterToUsefulShields ¶ added in v0.34.0
type Ship ¶ added in v0.26.0
type Ship struct { Name string Class int Type string Price int Armor int HoldSize int Nanobots int Batteries int Mass float64 PowerCapacity int PowerRechargeRate int CruiseSpeed int ImpulseSpeed float64 ReverseFraction float64 ThrustCapacity int ThrustRecharge int MaxAngularSpeedDegS float64 AngularDistanceFrom0ToHalfSec float64 TimeTo90MaxAngularSpeed float64 NudgeForce float64 StrafeForce float64 Nickname string NameID int InfoID int Bases []GoodAtBase Slots []EquipmentSlot BiggestHardpoint []string }
func FilterToUsefulShips ¶ added in v0.34.0
Click to show internal directories.
Click to hide internal directories.