1
0
Fork 0

[golang] finished implementing procument contracts

This commit is contained in:
Julien Dessaux 2025-02-21 00:58:45 +01:00
parent 40c4a8df15
commit e887213aff
Signed by: adyxax
GPG key ID: F92E51B86E07177E
15 changed files with 252 additions and 56 deletions

View file

@ -1,7 +1,7 @@
package model
type Cargo struct {
Capacity int `json:"capacity"`
Inventory []Inventory `json:"inventory"`
Units int `json:"units"`
Capacity int `json:"capacity"`
Inventory []InventoryItem `json:"inventory"`
Units int `json:"units"`
}

View file

@ -1,6 +1,6 @@
package model
type Inventory struct {
type InventoryItem struct {
//Description string `json:"description"`
Units int `json:"units"`
//Name string `json:"name"`

View file

@ -3,14 +3,14 @@ package model
type Ship struct {
Cargo *Cargo `json:"cargo"`
Cooldown *Cooldown `json:"cooldown"`
//// crew
//// engine
//// frame
// crew
// engine
// frame
Fuel *Fuel `json:"fuel"`
//// modules
//// mounts
// modules
// mounts
Nav *Nav `json:"nav"`
//// reactor
// reactor
//registration: Registration;
Symbol string `json:"symbol"`
}

View file

@ -3,11 +3,11 @@ package model
import "time"
type Shipyard struct {
ModificationFee int `json:"modificationFee"`
Symbol string `json:"symbol"`
ShipTypes []CommonType `json:"shipTypes"`
Transactions []ShipyardTransaction `json:"transactions"`
Ships []ShipyardShip `json:"ships"`
ModificationFee int `json:"modificationFee"`
Symbol string `json:"symbol"`
ShipTypes []CommonType `json:"shipTypes"`
//Transactions []ShipyardTransaction `json:"transactions"`
Ships []ShipyardShip `json:"ships"`
}
type ShipyardShip struct {