Documentation
¶
Index ¶
- func FixMapJumps(db *sql.DB) error
- func Import(db *sql.DB, regionPath, invNamePath string) error
- func ImportRegion(db *sql.DB, path string) error
- func InsertCelestialStatsStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertConstellationsStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertMapJumpStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertMapLocationScenesStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertMapWHClassesStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertOrbitalDenormStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertRegionStmt(tx *sql.Tx) (*sql.Stmt, error)
- func InsertSolarSystemStmt(tx *sql.Tx) (*sql.Stmt, error)
- type AsteroidBelt
- type AsteroidBelts
- type CelestialStatistics
- type Constellation
- type InvName
- type Moon
- type Moons
- type NPCStation
- type Planet
- type Region
- type SecondarySun
- type SolarSystem
- type Star
- type Stargate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FixMapJumps ¶
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 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 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 (*Planet) ImportMoons ¶
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 (*Region) ImportConstellations ¶
type SecondarySun ¶
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
Click to show internal directories.
Click to hide internal directories.