well, fuck...

This commit is contained in:
Ilia Denisov
2025-09-28 09:17:17 +03:00
parent 66eeefc65d
commit 6510676237
8 changed files with 203 additions and 62 deletions
+9 -2
View File
@@ -22,9 +22,16 @@ type Race struct {
Fleets []Fleet `json:"fleet,omitempty"`
}
type Relation string
const (
RelationWar = "War"
RelationPeace = "Peace"
)
type RaceRelation struct {
RaceID uuid.UUID `json:"raceId"`
Peace bool `json:"peace"`
RaceID uuid.UUID `json:"raceId"`
Relation Relation `json:"relation"`
}
func (r Race) FlightDistance() float64 {