feat: load player's report

This commit is contained in:
Ilia Denisov
2026-02-08 20:47:46 +02:00
parent f8412be248
commit e48a0c8b96
16 changed files with 91 additions and 35 deletions
@@ -31,9 +31,9 @@ func (c *Cache) AddRace(n string) (int, uuid.UUID) {
return len(c.g.Race) - 1, id
}
func (c *Cache) Race(i int) game.Race {
func (c *Cache) Race(i int) *game.Race {
c.validateRaceIndex(i)
return c.g.Race[i]
return &c.g.Race[i]
}
func (c *Cache) RaceShipGroups(ri int) iter.Seq[*game.ShipGroup] {