remove controller layer

This commit is contained in:
2023-06-28 15:41:06 +02:00
parent b688fb85d3
commit 17b2aab4fa
6 changed files with 25 additions and 34 deletions

View File

@@ -13,12 +13,21 @@ type GameField struct {
LevelSection LevelSection
}
type Position struct {
X int
Y int
}
type Context struct {
Player Player
User User
GameField GameField
Player Player
User User
CurrentGameField GameField
CurrentPosition Position
}
func CreateContext() Context {
return Context{}
return Context{
Player: Player{},
User: User{},
}
}