universe

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixMapJumps

func FixMapJumps(db *sql.DB) error

func Import

func Import(db *sql.DB, regionPath, invNamePath string) error

func ImportRegion

func ImportRegion(db *sql.DB, path string) error

func InsertCelestialStatsStmt

func InsertCelestialStatsStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertConstellationsStmt

func InsertConstellationsStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertMapJumpStmt

func InsertMapJumpStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertMapLocationScenesStmt

func InsertMapLocationScenesStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertMapWHClassesStmt

func InsertMapWHClassesStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertOrbitalDenormStmt

func InsertOrbitalDenormStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertRegionStmt

func InsertRegionStmt(tx *sql.Tx) (*sql.Stmt, error)

func InsertSolarSystemStmt

func InsertSolarSystemStmt(tx *sql.Tx) (*sql.Stmt, error)

Types

type AsteroidBelt

type AsteroidBelt struct {
	Position   []float64
	Statistics CelestialStatistics
	TypeID     int64 `yaml:"typeID"`
	// contains filtered or unexported fields
}

type AsteroidBelts

type AsteroidBelts []AsteroidBelt

func (AsteroidBelts) Len

func (b AsteroidBelts) Len() int

func (AsteroidBelts) Less

func (b AsteroidBelts) Less(i, j int) bool

func (AsteroidBelts) Swap

func (b AsteroidBelts) Swap(i, j int)

type CelestialStatistics

type CelestialStatistics struct {
	Age            *float64
	Density        *float64
	Eccentricity   *float64
	EscapeVelocity *float64 `yaml:"escapeVelocity"`
	Fragmented     *bool
	Life           *float64
	Locked         *bool
	Luminosity     *float64
	MassDust       *float64 `yaml:"massDust"`
	MassGas        *float64 `yaml:"massGas"`
	OrbitPeriod    *float64 `yaml:"orbitPeriod"`
	OrbitRadius    *float64 `yaml:"orbitRadius"`
	Pressure       *float64
	Radius         *float64
	RotationRate   *float64 `yaml:"rotationRate"`
	SpectralClass  *string  `yaml:"spectralClass"`
	SurfaceGravity *float64 `yaml:"surfaceGravity"`
	Temperature    *float64
}

type Constellation

type Constellation struct {
	ConstellationID int64 `yaml:"constellationID"`
	Center          []float64
	Max             []float64
	Min             []float64
	NameID          int64 `yaml:"nameID"`
	Radius          float64
	FactionID       *int64 `yaml:"factionID"`
	WormholeClassID int64  `yaml:"wormholeClassID"`
	// contains filtered or unexported fields
}

func (*Constellation) ImportSystem

func (c *Constellation) ImportSystem(path string) error

func (*Constellation) ImportSystems

func (c *Constellation) ImportSystems() error

type InvName

type InvName struct {
	ID   int64  `yaml:"itemID"`
	Name string `yaml:"itemName"`
}

type Moon

type Moon struct {
	Position    []float64
	Radius      int64
	Statistics  CelestialStatistics
	TypeID      int64                `yaml:"typeID"`
	NPCStations map[int64]NPCStation `yaml:"npcStations"`
	// contains filtered or unexported fields
}

type Moons

type Moons []Moon

func (Moons) Len

func (b Moons) Len() int

func (Moons) Less

func (b Moons) Less(i, j int) bool

func (Moons) Swap

func (b Moons) Swap(i, j int)

type NPCStation

type NPCStation struct {
	GraphicID                int64 `yaml:"graphicID"`
	GroupID                  int64 `yaml:"groupID"`
	IsConquerable            bool  `yaml:"isConquerable"`
	OwnerID                  int64 `yaml:"ownerID"`
	Position                 []float64
	ReprocessingEfficiency   float64 `yaml:"reprocessingEfficiency"`
	ReprocessingHangarFlag   int64   `yaml:"reprocessingHangarFlag"`
	ReprocessingStationsTake float64 `yaml:"reprocessingStationsTake"`
	TypeID                   int64   `yaml:"typeID"`
	UseOperationName         bool    `yaml:"useOperationName"`
}

type Planet

type Planet struct {
	AsteroidBelts  map[int64]AsteroidBelt `yaml:"asteroidBelts"`
	Moons          map[int64]Moon
	NPCStations    map[int64]NPCStation `yaml:"npcStations"`
	CelestialIndex int64                `yaml:"celestialIndex"`
	Position       []float64
	TypeID         int64 `yaml:"typeID"`
	Radius         float64
	Statistics     CelestialStatistics
	// contains filtered or unexported fields
}

func (*Planet) ImportBelts

func (p *Planet) ImportBelts() error

func (*Planet) ImportMoons

func (p *Planet) ImportMoons() error

type Region

type Region struct {
	Center          []float64
	Max             []float64
	Min             []float64
	DescriptionID   *int64 `yaml:"descriptionID"`
	FactionID       *int64 `yaml:"factionID"`
	NameID          int64  `yaml:"nameID"`
	Nebula          int64
	RegionID        int64 `yaml:"regionID"`
	WormholeClassID int64 `yaml:"wormholeClassID"`
	// contains filtered or unexported fields
}

func (*Region) ImportConstellation

func (r *Region) ImportConstellation(path string) error

func (*Region) ImportConstellations

func (r *Region) ImportConstellations() error

type SecondarySun

type SecondarySun struct {
	EffectBeaconTypeID int64 `yaml:"effectBeaconTypeID"`
	ItemID             int64 `yaml:"itemID"`
	Position           []float64
	TypeID             int64 `yaml:"typeID"`
}

type SolarSystem

type SolarSystem struct {
	Border          bool
	Center          []float64
	Corridor        bool
	FactionID       *int64 `yaml:"factionID"`
	Fringe          bool
	Hub             bool
	International   bool
	Luminosity      float64
	Max             []float64
	Min             []float64
	NPCStations     map[int64]NPCStation `yaml:"npcStations"`
	Radius          float64
	Regional        bool
	SecondarySun    *SecondarySun `yaml:"secondarySun"`
	Security        float64
	SecurityClass   *string `yaml:"securityClass"`
	SolarSystemID   int64   `yaml:"solarSystemID"`
	Stargates       map[int64]Stargate
	Planets         map[int64]Planet
	Star            Star
	SunTypeID       int64 `yaml:"sunTypeID"`
	WormholeClassID int64 `yaml:"wormholeClassID"`
	// contains filtered or unexported fields
}

func (*SolarSystem) ImportPlanet

func (s *SolarSystem) ImportPlanet(planetID int64, planet Planet) error

func (*SolarSystem) ImportPlanets

func (s *SolarSystem) ImportPlanets() error

type Star

type Star struct {
	ID         int64
	Radius     int64
	TypeID     int64 `yaml:"typeID"`
	Statistics CelestialStatistics
}

type Stargate

type Stargate struct {
	Destination int64
	Position    []float64
	TypeID      int64 `yaml:"typeID"`
}

Jump to

Keyboard shortcuts

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