feat: command types list

This commit is contained in:
Ilia Denisov
2026-02-10 07:49:12 +02:00
parent d9c8de27e5
commit 83bcdcbc49
15 changed files with 184 additions and 163 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import (
"github.com/iliadenisov/galaxy/internal/util"
)
func (c *Cache) SetRoute(ri int, rt game.RouteType, origin, destination uint) error {
func (c *Cache) PlanetRouteSet(ri int, rt game.RouteType, origin, destination uint) error {
c.validateRaceIndex(ri)
p1, ok := c.Planet(origin)
if !ok {
@@ -36,7 +36,7 @@ func (c *Cache) SetRoute(ri int, rt game.RouteType, origin, destination uint) er
return nil
}
func (c *Cache) RemoveRoute(ri int, rt game.RouteType, origin uint) error {
func (c *Cache) PlanetRouteRemove(ri int, rt game.RouteType, origin uint) error {
c.validateRaceIndex(ri)
p1, ok := c.Planet(origin)
if !ok {