towards generation

This commit is contained in:
Ilia Denisov
2023-08-08 21:57:53 +03:00
parent d95ecbc20c
commit ffecb5d90c
9 changed files with 193 additions and 96 deletions
+22
View File
@@ -0,0 +1,22 @@
package server
import (
"errors"
"github.com/iliadenisov/galaxy/pkg/game"
"github.com/iliadenisov/galaxy/pkg/generator"
"github.com/iliadenisov/galaxy/pkg/storage"
)
type Server struct {
storage storage.Storage
}
func New(storage storage.Storage) Server {
return Server{storage: storage}
}
func (s Server) CreateGame(gameParam game.GameParameter, mapParam generator.MapParameter) (game.Game, error) {
_ = generator.Generate(mapParam)
return game.Game{}, errors.New("not yet implemented")
}