towards generation
This commit is contained in:
@@ -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")
|
||||
}
|
||||
Reference in New Issue
Block a user