cmd: send fleet

This commit is contained in:
Ilia Denisov
2026-01-05 19:46:33 +02:00
parent a6093a1c29
commit 5f3a416abd
7 changed files with 271 additions and 38 deletions
+8
View File
@@ -55,6 +55,14 @@ type InSpace struct {
Range float64 `json:"range"`
}
func (is InSpace) Equal(other InSpace) bool {
return is.Origin == other.Origin && is.X == other.X && is.Y == other.Y
}
func (is InSpace) Launched() bool {
return is.Range == 0
}
type InUpgrade struct {
UpgradeTech []UpgradePreference `json:"preference"`
}