1
0
Fork 0

[golang] implement systems and waypoints lookups

This commit is contained in:
Julien Dessaux 2025-02-15 01:22:36 +01:00
parent d97985a694
commit 66466e161f
Signed by: adyxax
GPG key ID: F92E51B86E07177E
10 changed files with 205 additions and 0 deletions

View file

@ -0,0 +1,7 @@
package model
type Common struct {
//Description string `json:"description"`
//Name string `json:"name"`
Symbol string `json:"symbol"`
}

View file

@ -0,0 +1,16 @@
package model
type Faction struct {
Symbol string `json:"symbol"`
//"name": "string",
//"description": "string",
//"headquarters": "string",
//"traits": [
// {
// "symbol": "BUREAUCRATIC",
// "name": "string",
// "description": "string"
// }
//],
//"isRecruiting": true
}

View file

@ -0,0 +1,11 @@
package model
type System struct {
Factions []Faction `json:"factions"`
SectorSymbol string `json:"sectorSymbol"`
Symbol string `json:"symbol"`
Type string `json:"type"`
Waypoints []Waypoint `json:"waypoints"`
X int `json:"x"`
Y int `json:"y"`
}

View file

@ -0,0 +1,16 @@
package model
type Waypoint struct {
Chart *Chart `json:"chart"`
Factions []string `json:"factions"`
IsUnderConstruction bool `json:"isUnderConstruction"`
Modifiers []Common `json:"modifiers"`
//orbitals: Array<{symbol: string;}>;
//orbits: string;
Symbol string `json:"symbol"`
SystemSymbol string `json:"systemSymbol"`
Traits []Common `json:"traits"`
Type string `json:"type"`
X int `json:"x"`
Y int `json:"y"`
}