Documentation
¶
Index ¶
- Constants
- Variables
- func Buyable(Bases map[cfg.BaseUniNick]*MarketGood) bool
- func DistanceForVecs(Pos1 *semantic.Vect, Pos2 *semantic.Vect) (float64, error)
- func Empty(phrase string) bool
- func EnhanceBasesWithServerOverrides(bases []*Base, commodities []*Commodity)
- func GetMaxRadius(Size *semantic.Vect) (float64, error)
- func GetPricePerVoume(price int, volume float64) float64
- func InitRegexExpression(expression string) *regexp.Regexp
- func IsAnyVignetteWithinNPCSpawnRange(system *systems_mapped.System, ...) bool
- func NameWithSpacesOnly(word string) bool
- func StrPosToVectorPos(value string) *cfg.Vector
- func VectorToSectorCoord(system *universe_mapped.System, pos cfg.Vector) string
- type Ammo
- type AmmoLimit
- type Base
- type BaseInfo
- type BaseMissions
- type BaseRoute
- type Bribe
- type BurstFire
- type Cloak
- type ComboRoute
- type ComboTradeRoute
- type Commodity
- type CommodityKey
- type CompatibleIDsForTractor
- type CounterMeasure
- type DamageBonus
- type DefenseMode
- type DiffToMoney
- type DiscoGun
- type DiscoShip
- type DiscoveryIDRephacks
- type DiscoveryTechCompat
- type EnemyFaction
- type Engine
- type EquipmentSlot
- type ExportOptions
- type Exporter
- func (e *Exporter) AllRoutes(bases []*Base) []*Base
- func (e *Exporter) Buyable(Bases map[cfg.BaseUniNick]*MarketGood) bool
- func (e *Exporter) EnhanceBasesWithIsTransportReachable(bases []*Base, transports_graph *GraphResults, frighter_graph *GraphResults)
- func (e *Exporter) EnhanceBasesWithLoot(bases []*Base) []*Base
- func (e *Exporter) EnhanceBasesWithPobCrafts(bases []*Base) []*Base
- func (e *Exporter) Export(options ExportOptions) *Exporter
- func (e *Exporter) FilterToUsefulAmmo(cms []Ammo) []Ammo
- func (e *Exporter) FilterToUsefulCommodities(commodities []*Commodity) []*Commodity
- func (e *Exporter) FilterToUsefulCounterMeasures(cms []CounterMeasure) []CounterMeasure
- func (e *Exporter) FilterToUsefulEngines(engines []Engine) []Engine
- func (e *Exporter) FilterToUsefulGun(guns []Gun) []Gun
- func (e *Exporter) FilterToUsefulMines(mines []Mine) []Mine
- func (e *Exporter) FilterToUsefulShields(shields []Shield) []Shield
- func (e *Exporter) FilterToUsefulShips(ships []Ship) []Ship
- func (e *Exporter) FilterToUsefulThrusters(thrusters []Thruster) []Thruster
- func (e *Exporter) FilterToUsefulTractors(tractors []*Tractor) []*Tractor
- func (e *Exporter) FilterToUserfulScanners(items []Scanner) []Scanner
- func (e *Exporter) GetAmmo(ids []*Tractor) []Ammo
- func (e *Exporter) GetAtBasesSold(commodity GetCommodityAtBasesInput) map[cfg.BaseUniNick]*MarketGood
- func (e *Exporter) GetBaseInfo(base_nickname universe_mapped.BaseNickname) BaseInfo
- func (e *Exporter) GetBases() []*Base
- func (e *Exporter) GetBuyableShields(shields []Shield) map[string]bool
- func (e *Exporter) GetCloaks(ids []*Tractor) []Cloak
- func (e *Exporter) GetCommodities() []*Commodity
- func (e *Exporter) GetCounterMeasures(ids []*Tractor) []CounterMeasure
- func (e *Exporter) GetEngineSpeed(engine_info *equip_mapped.Engine) int
- func (e *Exporter) GetEngines(ids []*Tractor) []Engine
- func (e *Exporter) GetFactionName(nickname cfg.FactionNick) string
- func (e *Exporter) GetFactions(bases []*Base) []Faction
- func (e *Exporter) GetGoodInfo(good_nickname string) GoodInfo
- func (e *Exporter) GetGuns(ids []*Tractor, buyable_ship_tech map[string]bool) []Gun
- func (e *Exporter) GetInfocardName(ids_name int, nickname string) string
- func (e *Exporter) GetMines(ids []*Tractor) []Mine
- func (e *Exporter) GetMissiles(ids []*Tractor, buyable_ship_tech map[string]bool) []Gun
- func (e *Exporter) GetMissions(bases []*Base, factions []Faction) []*Base
- func (e *Exporter) GetOres(Commodities []*Commodity) []*Base
- func (e *Exporter) GetPoBGoods(pobs []*PoB) []*PoBGood
- func (e *Exporter) GetPoBs() []*PoB
- func (e *Exporter) GetRegionName(system *universe_mapped.System) string
- func (e *Exporter) GetScanners(ids []*Tractor) []Scanner
- func (e *Exporter) GetShields(ids []*Tractor) []Shield
- func (e *Exporter) GetShips(ids []*Tractor, TractorsByID map[cfg.TractorID]*Tractor, Thrusters []Thruster) []Ship
- func (e *Exporter) GetThrusters(ids []*Tractor) []Thruster
- func (e *Exporter) GetTractors() []*Tractor
- func (e *Exporter) NewEnemyFaction(faction Faction, npc_ranks []int) EnemyFaction
- func (e *Exporter) PoBsToBases(pobs []*PoB) []*Base
- func (e *Exporter) ServerSideMarketGoodsOverrides(commodity GetCommodityAtBasesInput) map[cfg.BaseUniNick]*MarketGood
- func (e *Exporter) TradePaths(bases []*Base, commodities []*Commodity) ([]*Base, []*Commodity)
- func (e *Exporter) TraderExists(base_nickname string) bool
- type Faction
- type GetCommodityAtBasesInput
- type GoodInfo
- type GraphResults
- type Gun
- type GunDetailed
- type Infocard
- type InfocardBuilder
- type InfocardKey
- type InfocardLine
- type InfocardPhrase
- type Infocards
- type MarketGood
- type Mine
- type MiningInfo
- type Missile
- type MissioNFaction
- type OptExport
- type PathWithNavmap
- type PoB
- type PoBGood
- type PoBGoodBase
- type PoBWithoutGoods
- type PobShopItem
- type Rephack
- type Reputation
- type Route
- func (t *Route) GetCanVisitFreighterOnlyJH() bool
- func (t *Route) GetCruiseSpeed() int
- func (c *Route) GetID() string
- func (t *Route) GetNameByIdsName(ids_name int) string
- func (t *Route) GetPaths() []PathWithNavmap
- func (t *Route) GetTimeMs() cfg.MillisecondsI
- func (t *Route) GetTimeS() cfg.Seconds
- type Scanner
- type Shield
- type Ship
- type ShipPackage
- type ShopItem
- type TechCompatOrderer
- type Thruster
- type Tractor
- type TradeRoute
Constants ¶
View Source
const ( BaseLootableName = "Lootable" BaseLootableFaction = "Wrecks and Missions" BaseLootableNickname = "base_loots" )
It fixes issue of Guns obtainable only via wrecks being invisible
Variables ¶
View Source
var LogOgE = math.Log10(math.E)
View Source
var Pi180 = 180 / math.Pi // number turning radians to degrees
View Source
var TypeClassRegex *regexp.Regexp
Functions ¶
func Buyable ¶
func Buyable(Bases map[cfg.BaseUniNick]*MarketGood) bool
func DistanceForVecs ¶
func GetPricePerVoume ¶
func InitRegexExpression ¶
func IsAnyVignetteWithinNPCSpawnRange ¶
func IsAnyVignetteWithinNPCSpawnRange(system *systems_mapped.System, npc_spawn_zone *systems_mapped.MissionPatrolZone) bool
func NameWithSpacesOnly ¶
func StrPosToVectorPos ¶
func VectorToSectorCoord ¶
func VectorToSectorCoord(system *universe_mapped.System, pos cfg.Vector) string
Types ¶
type Ammo ¶
type Ammo struct {
Name string `json:"name"`
Price int `json:"price"`
HitPts int `json:"hit_pts" validate:"required"`
Volume float64 `json:"volume" validate:"required"`
MunitionLifetime float64 `json:"munition_lifetime"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
SeekerType string `json:"seeker_type"`
SeekerRange int `json:"seeker_range"`
SeekerFovDeg int `json:"seeker_fov_deg"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
AmmoLimit AmmoLimit `json:"ammo_limit"`
Mass float64 `json:"mass"`
}
func (Ammo) GetBases ¶ added in v1.63.0
func (b Ammo) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Ammo) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Ammo) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Ammo) GetNickname ¶ added in v1.63.0
type Base ¶
type Base struct {
Name string `json:"name"` // Infocard Name
Archetypes []string `json:"archetypes"` // Base Archetypes
Nickname cfg.BaseUniNick `json:"nickname"`
FactionName string `json:"faction_nickname"`
System string `json:"system_name"`
SystemNickname string `json:"system_nickname"`
Region string `json:"region_name"`
StridName int `json:"strid_name"`
InfocardID int `json:"infocard_id"`
InfocardKey InfocardKey
File utils_types.FilePath `json:"file"`
BGCS_base_run_by string
MarketGoodsPerNick map[CommodityKey]*MarketGood `json:"-" swaggerignore:"true"`
Pos cfg.Vector `json:"pos"`
SectorCoord string `json:"sector_coord"`
IsTransportUnreachable bool `json:"is_transport_unreachable"` // Check if base is NOT reachable from manhattan by Transport through Graph method (at Discovery base has to have Transport dockable spheres)
Missions *BaseMissions `json:"-" swaggerignore:"true"`
*MiningInfo `json:"mining_info,omitempty"`
Reachable bool `json:"is_reachhable"` // is base IS Rechable by frighter from Manhattan
IsPob bool
// contains filtered or unexported fields
}
func FilterToUserfulBases ¶
func FitlerToUsefulOres ¶
func (Base) GetNickname ¶ added in v1.63.0
type BaseInfo ¶
type BaseInfo struct {
BaseNickname cfg.BaseUniNick `json:"base_nickname"`
BaseName string `json:"base_name"`
SystemName string `json:"system_name"`
Region string `json:"region_name"`
FactionName string `json:"faction_name"`
BasePos cfg.Vector `json:"base_pos"`
SectorCoord string `json:"sector_coord"`
}
type BaseMissions ¶
type BaseRoute ¶
func NewBaseRoute ¶
func NewBaseRoute(g *GraphResults, FromBase *Base, ToBase *Base) *BaseRoute
type Cloak ¶ added in v1.64.0
type Cloak struct {
Name string `json:"name"`
Price int `json:"price"`
HitPts int `json:"hit_pts"`
Volume float64 `json:"volume"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
PowerUsage float64
CloakInTime int
CloakOutTime int
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
}
func (Cloak) GetBases ¶ added in v1.64.0
func (b Cloak) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Cloak) GetDiscoveryTechCompat ¶ added in v1.64.0
func (b Cloak) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Cloak) GetNickname ¶ added in v1.64.0
type ComboRoute ¶
type ComboTradeRoute ¶
type ComboTradeRoute struct {
Transport *TradeRoute
Frigate *TradeRoute
Freighter *TradeRoute
}
type Commodity ¶
type Commodity struct {
Nickname string `json:"nickname"`
PriceBase int `json:"price_base"`
Name string `json:"name"`
Combinable bool `json:"combinable"`
Volume float64 `json:"volume"`
ShipClass cfg.ShipClass `json:"ship_class"`
NameID int `json:"name_id"`
InfocardID int `json:"infocard_id"`
Infocard InfocardKey `json:"infocard_key"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
PriceBestBaseBuysFor int `json:"price_best_base_buys_for"`
PriceBestBaseSellsFor int `json:"price_best_base_sells_for"`
ProffitMargin int `json:"proffit_margin"`
Mass float64 `json:"mass"`
// contains filtered or unexported fields
}
func (Commodity) GetBases ¶ added in v1.63.0
func (b Commodity) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Commodity) GetNickname ¶ added in v1.63.0
type CommodityKey ¶
type CommodityKey string
func GetCommodityKey ¶
func GetCommodityKey(nickname string, ship_class cfg.ShipClass) CommodityKey
type CompatibleIDsForTractor ¶
type CounterMeasure ¶
type CounterMeasure struct {
Name string `json:"name"`
Price int `json:"price"`
HitPts int `json:"hit_pts"`
AIRange int `json:"ai_range"`
Lifetime int `json:"lifetime"`
Range int `json:"range"`
DiversionPctg int `json:"diversion_pctg"`
Lootable bool `json:"lootable"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"indo_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
AmmoLimit AmmoLimit `json:"ammo_limit"`
Mass float64 `json:"mass"`
}
func (CounterMeasure) GetBases ¶ added in v1.63.0
func (b CounterMeasure) GetBases() map[cfg.BaseUniNick]*MarketGood
func (CounterMeasure) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b CounterMeasure) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (CounterMeasure) GetNickname ¶ added in v1.63.0
func (b CounterMeasure) GetNickname() string
type DamageBonus ¶
type DefenseMode ¶
type DefenseMode int
func (DefenseMode) ToStr ¶
func (d DefenseMode) ToStr() string
type DiffToMoney ¶
type DiscoveryIDRephacks ¶
type DiscoveryIDRephacks struct {
Rephacks map[cfg.FactionNick]Rephack `json:"rephacks"`
}
func (DiscoveryIDRephacks) GetRephacksList ¶
func (r DiscoveryIDRephacks) GetRephacksList() []Rephack
type DiscoveryTechCompat ¶
type DiscoveryTechCompat struct {
TechcompatByID map[cfg.TractorID]float64 `json:"techchompat_by_id"`
TechCell string `json:"tech_cell"`
}
func CalculateTechCompat ¶
func CalculateTechCompat(Discovery *configs_mapped.DiscoveryConfig, ids []*Tractor, nickname string) *DiscoveryTechCompat
type EnemyFaction ¶
type Engine ¶
type Engine struct {
Name string `json:"name"`
Price int `json:"price"`
CruiseSpeed int `json:"cruise_speed"`
CruiseChargeTime int `json:"cruise_charge_time"`
LinearDrag int `json:"linear_drag"`
MaxForce int `json:"max_force"`
ReverseFraction float64 `json:"reverse_fraction"`
ImpulseSpeed float64 `json:"impulse_speed"`
HpType string `json:"hp_type"`
HpTypeHash flhash.HashCode `json:"-" swaggerignore:"true"`
FlameEffect string `json:"flame_effect"`
FlameEffectHash flhash.HashCode `json:"-" swaggerignore:"true"`
TrailEffect string `json:"trail_effect"`
TrailEffectHash flhash.HashCode `json:"-" swaggerignore:"true"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
Mass float64 `json:"mass"`
}
func (Engine) GetBases ¶ added in v1.63.0
func (b Engine) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Engine) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Engine) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Engine) GetNickname ¶
func (Engine) GetTechCompat ¶
func (g Engine) GetTechCompat() *DiscoveryTechCompat
type EquipmentSlot ¶
type ExportOptions ¶
type ExportOptions struct {
trades.MappingOptions
}
type Exporter ¶
type Exporter struct {
Configs *configs_mapped.MappedConfigs
Bases []*Base
TradeBases []*Base
TravelBases []*Base
MiningOperations []*Base
Transport *GraphResults
Freighter *GraphResults
Frigate *GraphResults
Factions []Faction
Infocards Infocards
Commodities []*Commodity
Guns []Gun
Missiles []Gun
Mines []Mine
Shields []Shield
Thrusters []Thruster
Ships []Ship
Tractors []*Tractor
TractorsByID map[cfg.TractorID]*Tractor
Cloaks []Cloak
Engines []Engine
CMs []CounterMeasure
Scanners []Scanner
Ammos []Ammo
PoBs []*PoB
PoBGoods []*PoBGood
// contains filtered or unexported fields
}
func Export ¶
func Export(configs *configs_mapped.MappedConfigs, options ExportOptions) *Exporter
func NewExporter ¶
func NewExporter(configs *configs_mapped.MappedConfigs, opts ...OptExport) *Exporter
func (*Exporter) Buyable ¶
func (e *Exporter) Buyable(Bases map[cfg.BaseUniNick]*MarketGood) bool
func (*Exporter) EnhanceBasesWithIsTransportReachable ¶
func (e *Exporter) EnhanceBasesWithIsTransportReachable( bases []*Base, transports_graph *GraphResults, frighter_graph *GraphResults, )
func (*Exporter) EnhanceBasesWithLoot ¶
func (*Exporter) EnhanceBasesWithPobCrafts ¶
func (*Exporter) Export ¶
func (e *Exporter) Export(options ExportOptions) *Exporter
func (*Exporter) FilterToUsefulAmmo ¶
func (*Exporter) FilterToUsefulCommodities ¶
func (*Exporter) FilterToUsefulCounterMeasures ¶
func (e *Exporter) FilterToUsefulCounterMeasures(cms []CounterMeasure) []CounterMeasure
func (*Exporter) FilterToUsefulEngines ¶
func (*Exporter) FilterToUsefulGun ¶
func (*Exporter) FilterToUsefulMines ¶
func (*Exporter) FilterToUsefulShields ¶
func (*Exporter) FilterToUsefulShips ¶
func (*Exporter) FilterToUsefulThrusters ¶
func (*Exporter) FilterToUsefulTractors ¶
func (*Exporter) FilterToUserfulScanners ¶
func (*Exporter) GetAtBasesSold ¶
func (e *Exporter) GetAtBasesSold(commodity GetCommodityAtBasesInput) map[cfg.BaseUniNick]*MarketGood
func (*Exporter) GetBaseInfo ¶
func (e *Exporter) GetBaseInfo(base_nickname universe_mapped.BaseNickname) BaseInfo
func (*Exporter) GetBuyableShields ¶
func (*Exporter) GetCommodities ¶
func (*Exporter) GetCounterMeasures ¶
func (e *Exporter) GetCounterMeasures(ids []*Tractor) []CounterMeasure
func (*Exporter) GetEngineSpeed ¶
func (e *Exporter) GetEngineSpeed(engine_info *equip_mapped.Engine) int
func (*Exporter) GetEngines ¶
func (*Exporter) GetFactionName ¶
func (e *Exporter) GetFactionName(nickname cfg.FactionNick) string
func (*Exporter) GetFactions ¶
func (*Exporter) GetGoodInfo ¶ added in v1.59.0
func (*Exporter) GetInfocardName ¶
func (*Exporter) GetMissiles ¶
func (*Exporter) GetMissions ¶
func (*Exporter) GetPoBGoods ¶
func (*Exporter) GetRegionName ¶
func (e *Exporter) GetRegionName(system *universe_mapped.System) string
func (*Exporter) GetScanners ¶
func (*Exporter) GetShields ¶
func (*Exporter) GetThrusters ¶
func (*Exporter) GetTractors ¶
func (*Exporter) NewEnemyFaction ¶
func (e *Exporter) NewEnemyFaction(faction Faction, npc_ranks []int) EnemyFaction
Calculates for enemy faction percentage of ships defined in faction_props/npcships.ini If they aren't defined, Freelancer will be showing corrupted no missions when they encounter.
func (*Exporter) PoBsToBases ¶ added in v1.59.0
Exporting only with position ones
func (*Exporter) ServerSideMarketGoodsOverrides ¶
func (e *Exporter) ServerSideMarketGoodsOverrides(commodity GetCommodityAtBasesInput) map[cfg.BaseUniNick]*MarketGood
func (*Exporter) TradePaths ¶
func (*Exporter) TraderExists ¶ added in v1.57.7
type Faction ¶
type Faction struct {
Name string `json:"name"`
ShortName string `json:"short_name"`
Nickname string `json:"nickname"`
NicknameHash flhash.HashCode `json:"-" swaggerignore:"true"`
ObjectDestruction float64 `json:"object_destruction"`
MissionSuccess float64 `json:"mission_success"`
MissionFailure float64 `json:"mission_failure"`
MissionAbort float64 `json:"mission_abort"`
InfonameID int `json:"infoname_id"`
InfocardID int `json:"infocard_id"`
InfocardKey InfocardKey `json:"-" swaggerignore:"true"`
Reputations []Reputation `json:"reputations"`
Bribes []Bribe `json:"bribe"`
}
func FilterToUsefulBribes ¶
func FilterToUsefulFactions ¶
func (Faction) GetNickname ¶ added in v1.63.0
type GoodInfo ¶ added in v1.59.0
type GoodInfo struct {
Nickname string `json:"nickname"`
ShipNickname string `json:"ship_nickname"` // market good can be ship package, if it is, then ship nickname bought by package is specified
Name string `json:"name"`
PriceBase int `json:"price_base"`
HpType string `json:"hp_type"`
Category string `json:"category"`
}
type GraphResults ¶
type GraphResults struct {
Graph *trades.GameGraph
Time [][]int
Parents [][]trades.Parent
// contains filtered or unexported fields
}
func NewGraphResults ¶
func NewGraphResults( e *Exporter, avgCruiserSpeed int, can_visit_freighter_only_jhs trades.WithFreighterPaths, mining_bases_by_system map[string][]trades.ExtraBase, graph_options trades.MappingOptions, ) *GraphResults
type Gun ¶
type Gun struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
Type string `json:"type"`
Price int `json:"price"`
Class string `json:"class"`
HpType string `json:"hp_type"`
IdsName int `json:"ids_name"`
IdsInfo int `json:"ids_info"`
Volume float64 `json:"volume"`
HitPts string `json:"hit_pts"`
PowerUsage float64 `json:"power_usage"`
Refire float64 `json:"refire"`
Range float64 `json:"range"`
Toughness float64 `json:"toughness"`
IsAutoTurret bool `json:"is_auto_turret"`
Lootable bool `json:"lootable"`
RequiredAmmo bool `json:"required_ammo"`
// AmmoPrice int
// AmmoBases []*GoodAtBase
// AmmoName string
HullDamage int `json:"hull_damage"`
EnergyDamage int `json:"energy_damage"`
ShieldDamage int `json:"shield_damage"`
AvgShieldDamage int `json:"avg_shield_damage"`
DamageType string `json:"damage_type"`
LifeTime float64 `json:"life_time"`
Speed float64 `json:"speed"`
GunTurnRate float64 `json:"gun_turn_rate"`
DispersionAngle float64 `json:"dispersion_angle"`
HullDamagePerSec float64 `json:"hull_damage_per_sec"`
AvgShieldDamagePerSec float64 `json:"avg_shield_damage_per_sec"`
EnergyDamagePerSec float64 `json:"energy_damage_per_sec"`
PowerUsagePerSec float64 `json:"power_usage_per_sec"`
AvgEfficiency float64 `json:"avg_efficiency"`
HullEfficiency float64 `json:"hull_efficiency"`
ShieldEfficiency float64 `json:"shield_efficiency"`
EnergyDamageEfficiency float64 `json:"energy_damage_efficiency"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
DamageBonuses []DamageBonus `json:"damage_bonuses"`
Missile
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
GunDetailed
NumBarrels *int `json:"num_barrels,omitempty"`
BurstFire *BurstFire `json:"burst_fire,omitempty"`
AmmoLimit AmmoLimit `json:"ammo_limit,omitempty"`
Mass float64 `json:"mass"`
DiscoGun *DiscoGun `json:"disco_gun"`
}
func (Gun) GetBases ¶ added in v1.63.0
func (b Gun) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Gun) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Gun) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Gun) GetNickname ¶
func (Gun) GetTechCompat ¶
func (g Gun) GetTechCompat() *DiscoveryTechCompat
type GunDetailed ¶
type InfocardBuilder ¶
type InfocardBuilder struct {
Lines Infocard
}
func NewInfocardBuilder ¶
func NewInfocardBuilder() InfocardBuilder
func (*InfocardBuilder) WriteLine ¶
func (i *InfocardBuilder) WriteLine(phrases ...InfocardPhrase)
func (*InfocardBuilder) WriteLineStr ¶
func (i *InfocardBuilder) WriteLineStr(phrase_strs ...string)
type InfocardKey ¶
type InfocardKey string
type InfocardLine ¶
type InfocardLine struct {
Phrases []InfocardPhrase `json:"phrases"`
}
func NewInfocardSimpleLine ¶
func NewInfocardSimpleLine(line string) InfocardLine
func (InfocardLine) ToStr ¶
func (i InfocardLine) ToStr() string
type InfocardPhrase ¶
type Infocards ¶
type Infocards map[InfocardKey]Infocard
type MarketGood ¶
type MarketGood struct {
GoodInfo
LevelRequired int `json:"level_required"`
RepRequired float64 `json:"rep_required"`
PriceBaseBuysFor *int `json:"price_base_buys_for"`
PriceBaseSellsFor int `json:"price_base_sells_for"`
Volume float64 `json:"volume"`
ShipClass cfg.ShipClass `json:"ship_class"` // Discovery specific value. Volume can be different based on ship class. Duplicating market goods with different volumes for that
BaseSells bool `json:"base_sells"`
IsServerSideOverride bool `json:"is_server_override"`
NotBuyable bool `json:"_" swaggerignore:"true"`
IsTransportUnreachable bool `json:"_" swaggerignore:"true"`
BaseInfo
}
func (MarketGood) GetPriceBaseBuysFor ¶ added in v1.59.0
func (g MarketGood) GetPriceBaseBuysFor() int
type Mine ¶
type Mine struct {
Name string `json:"name"`
Price int `json:"price"`
AmmoPrice int `json:"ammo_price"`
Nickname string `json:"nickname"`
ProjectileArchetype string `json:"projectyle_archetype"`
IdsName int `json:"ids_name"`
IdsInfo int `json:"ids_info"`
HullDamage int `json:"hull_damage"`
EnergyDamange int `json:"energy_damage"`
ShieldDamage int `json:"shield_damage"`
PowerUsage float64 `json:"power_usage"`
Value float64 `json:"value"`
Refire float64 `json:"refire"`
DetonationDistance float64 `json:"detonation_distance"`
Radius float64 `json:"radius"`
SeekDistance int `json:"seek_distance"`
TopSpeed int `json:"top_speed"`
Acceleration int `json:"acceleration"`
LinearDrag float64 `json:"linear_drag"`
LifeTime float64 `json:"life_time"`
OwnerSafe int `json:"owner_safe"`
Toughness float64 `json:"toughness"`
HitPts int `json:"hit_pts"`
Lootable bool `json:"lootable"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
AmmoLimit AmmoLimit `json:"ammo_limit"`
Mass float64 `json:"mass"`
}
func (Mine) GetBases ¶ added in v1.63.0
func (b Mine) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Mine) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Mine) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Mine) GetNickname ¶ added in v1.63.0
type MiningInfo ¶
type MiningInfo struct {
DynamicLootMin int
DynamicLootMax int
DynamicLootDifficulty int
MinedGood *MarketGood
}
type MissioNFaction ¶
type PathWithNavmap ¶
type PathWithNavmap struct {
}
type PoB ¶
type PoB struct {
PoBWithoutGoods
ShopItems []*ShopItem `json:"shop_items"`
}
also known as Player Base Station
func (PoB) GetNickname ¶ added in v1.63.0
type PoBGood ¶
type PoBGood struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
TotalBuyableFromBases int `json:"total_buyable_from_bases"`
TotalSellableToBases int `json:"total_sellable_to_bases"`
BestPriceToBuy *int `json:"best_price_to_buy"`
BestPriceToSell *int `json:"best_price_to_sell"`
Category string `json:"category"`
Bases []*PoBGoodBase `json:"bases"`
AnyBaseSells bool `json:"any_base_sells"`
AnyBaseBuys bool `json:"any_base_buys"`
}
func (PoBGood) GetNickname ¶ added in v1.63.0
type PoBGoodBase ¶
type PoBGoodBase struct {
ShopItem *ShopItem `json:"shop_item"`
Base *PoBWithoutGoods `json:"base"`
}
type PoBWithoutGoods ¶ added in v1.63.2
type PoBWithoutGoods struct {
Nickname string `json:"nickname"`
Name string `json:"name"`
Pos *string `json:"pos"`
Level *int `json:"level"`
Money *int `json:"money"`
Health *float64 `json:"health"`
DefenseMode *DefenseMode `json:"defense_mode"`
SystemNick *string `json:"system_nickname"`
SystemName *string `json:"system_name"` // SystemHash *flhash.HashCode `json:"system"` //: 2745655887,
FactionNick *string `json:"faction_nickname"`
FactionName *string `json:"faction_name"` // AffiliationHash *flhash.HashCode `json:"affiliation"` //: 2620,
ForumThreadUrl *string `json:"forum_thread_url"`
CargoSpaceLeft *int `json:"cargospace"`
BasePos *cfg.Vector `json:"base_pos"`
SectorCoord *string `json:"sector_coord"`
Region *string `json:"region_name"`
}
type PobShopItem ¶
type Rephack ¶
type Rephack struct {
FactionName string `json:"faction_name"`
FactionNick cfg.FactionNick `json:"faction_nickname"`
Reputation float64 `json:"reputation"`
RepType playercntl_rephacks.RepType `json:"rep_type"`
}
type Reputation ¶
type Route ¶
type Route struct {
// contains filtered or unexported fields
}
func NewRoute ¶
func NewRoute(g *GraphResults, from_base_nickname string, to_base_nickname string) *Route
func (*Route) GetCanVisitFreighterOnlyJH ¶
func (*Route) GetCruiseSpeed ¶
func (*Route) GetNameByIdsName ¶
func (*Route) GetPaths ¶
func (t *Route) GetPaths() []PathWithNavmap
func (*Route) GetTimeMs ¶
func (t *Route) GetTimeMs() cfg.MillisecondsI
type Scanner ¶
type Scanner struct {
Name string `json:"name"`
Price int `json:"price"`
Range int `json:"range"`
CargoScanRange int `json:"cargo_scan_range"`
Lootable bool `json:"lootable"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
Mass float64 `json:"mass"`
}
func (Scanner) GetBases ¶ added in v1.63.0
func (b Scanner) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Scanner) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Scanner) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Scanner) GetNickname ¶ added in v1.63.0
type Shield ¶
type Shield struct {
Name string `json:"name"`
Class string `json:"class"`
Type string `json:"type"`
Technology string `json:"technology"`
Price int `json:"price"`
Capacity int `json:"capacity"`
RegenerationRate int `json:"regeneration_rate"`
ConstantPowerDraw int `json:"constant_power_draw"`
Value float64 `json:"value"`
RebuildPowerDraw int `json:"rebuild_power_draw"`
OffRebuildTime int `json:"off_rebuild_time"`
Toughness float64 `json:"toughness"`
HitPts int `json:"hit_pts"`
Lootable bool `json:"lootable"`
Nickname string `json:"nickname"`
HpType string `json:"hp_type"`
HpTypeHash flhash.HashCode `json:"-" swaggerignore:"true"`
IdsName int `json:"ids_name"`
IdsInfo int `json:"ids_info"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
Mass float64 `json:"mass"`
}
func (Shield) GetBases ¶ added in v1.63.0
func (b Shield) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Shield) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Shield) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Shield) GetNickname ¶
func (Shield) GetTechCompat ¶
func (g Shield) GetTechCompat() *DiscoveryTechCompat
type Ship ¶
type Ship struct {
Nickname string `json:"nickname"`
NicknameHash flhash.HashCode `json:"nickname_hash"`
Name string `json:"name"`
Class int `json:"class"`
Type string `json:"type"`
Price int `json:"price"`
Armor int `json:"armor"`
HoldSize int `json:"hold_size"`
Nanobots int `json:"nanobots"`
Batteries int `json:"batteries"`
Mass float64 `json:"mass"`
PowerCapacity int `json:"power_capacity"`
PowerRechargeRate int `json:"power_recharge_rate"`
CruiseSpeed int `json:"cruise_speed"`
LinearDrag float64 `json:"linear_drag"`
EngineMaxForce int `json:"engine_max_force"`
ImpulseSpeed float64 `json:"impulse_speed"`
ThrusterSpeed []int `json:"thruster_speed"`
ReverseFraction float64 `json:"reverse_fraction"`
ThrustCapacity int `json:"thrust_capacity"`
ThrustRecharge int `json:"thrust_recharge"`
MaxAngularSpeedDegS float64 `json:"max_ansgular_speed"`
AngularDistanceFrom0ToHalfSec float64 `json:"angular_distance_from_0_to_halfsec"`
TimeTo90MaxAngularSpeed float64 `json:"time_to_90_max_angular_speed"`
NudgeForce float64 `json:"nudge_force"`
StrafeForce float64 `json:"strafe_force"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"_" swaggerignore:"true"`
Slots []EquipmentSlot `json:"equipment_slots"`
BiggestHardpoint []string `json:"biggest_hardpoint"`
ShipPackages []ShipPackage `json:"ship_packages"`
*DiscoveryTechCompat `json:"_" swaggerignore:"true"`
DiscoShip *DiscoShip `json:"discovery_ship"`
}
func (Ship) GetBases ¶ added in v1.63.0
func (b Ship) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Ship) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Ship) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Ship) GetNickname ¶
func (Ship) GetTechCompat ¶
func (g Ship) GetTechCompat() *DiscoveryTechCompat
type ShipPackage ¶
type ShipPackage struct {
Nickname string
// contains filtered or unexported fields
}
type TechCompatOrderer ¶
type TechCompatOrderer struct {
// contains filtered or unexported fields
}
func NewOrderedTechCompat ¶
func NewOrderedTechCompat(e *Exporter) *TechCompatOrderer
func (*TechCompatOrderer) GetOrederedTechCompat ¶
func (orderer *TechCompatOrderer) GetOrederedTechCompat(DiscoveryTechCompat *DiscoveryTechCompat) []CompatibleIDsForTractor
type Thruster ¶
type Thruster struct {
Name string `json:"name"`
Price int `json:"price"`
MaxForce int `json:"max_force"`
PowerUsage int `json:"power_usage"`
Efficiency float64 `json:"efficiency"`
Value float64 `json:"value"`
HitPts int `json:"hit_pts"`
Lootable bool `json:"lootable"`
Nickname string `json:"nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
*DiscoveryTechCompat `json:"-" swaggerignore:"true"`
Mass float64 `json:"mass"`
}
func (Thruster) GetBases ¶ added in v1.63.0
func (b Thruster) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Thruster) GetDiscoveryTechCompat ¶ added in v1.63.0
func (b Thruster) GetDiscoveryTechCompat() *DiscoveryTechCompat
func (Thruster) GetNickname ¶ added in v1.63.0
type Tractor ¶
type Tractor struct {
Name string `json:"name"`
Price int `json:"price"`
MaxLength int `json:"max_length"`
ReachSpeed int `json:"reach_speed"`
Lootable bool `json:"lootable"`
Nickname cfg.TractorID `json:"nickname"`
ShortNickname string `json:"short_nickname"`
NameID int `json:"name_id"`
InfoID int `json:"info_id"`
Bases map[cfg.BaseUniNick]*MarketGood `json:"-" swaggerignore:"true"`
DiscoveryIDRephacks
Mass float64 `json:"mass"`
}
func (Tractor) GetBases ¶ added in v1.63.0
func (b Tractor) GetBases() map[cfg.BaseUniNick]*MarketGood
func (Tractor) GetNickname ¶ added in v1.63.0
type TradeRoute ¶
type TradeRoute struct {
Route *Route
Commodity *Commodity
BuyingGood *MarketGood
SellingGood *MarketGood
}
func NewTradeRoute ¶
func NewTradeRoute(g *GraphResults, buying_good *MarketGood, selling_good *MarketGood, commodity *Commodity) *TradeRoute
func (*TradeRoute) GetProffitPerTime ¶
func (t *TradeRoute) GetProffitPerTime() float64
func (*TradeRoute) GetProffitPerV ¶
func (t *TradeRoute) GetProffitPerV() float64
Source Files
¶
Click to show internal directories.
Click to hide internal directories.