new game, fs repo layer

This commit is contained in:
Ilia Denisov
2025-09-23 18:36:22 +03:00
parent 84578dc61c
commit 4d733ae741
18 changed files with 880 additions and 54 deletions
+22
View File
@@ -0,0 +1,22 @@
package game
type Race struct {
Name string
Killed bool
Votes float32
VoteFor string
Drive float32
Weapons float32
Shields float32
Cargo float32
}
func (r Race) FlightDistance() float32 {
return r.Drive * 40
}
func (r Race) VisibilityDistance() float32 {
return r.Drive * 30
}