cmd: send fleet
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user