working prototype with ecs

This commit is contained in:
anton.gurov
2019-11-05 17:55:38 +03:00
parent 096ff2b182
commit a195e335eb
7 changed files with 120 additions and 52 deletions

View File

@ -1,6 +1,7 @@
package gamestate
import (
"lab.zaar.be/thefish/alchemyst-go/engine/ecs"
"lab.zaar.be/thefish/alchemyst-go/engine/gamemap"
)
@ -10,8 +11,10 @@ type GameState struct {
Input chan string
RawInput chan int
FovRecompute chan struct{}
Redraw chan struct{}
Redraw chan struct{}
Player ecs.Entity
Level *gamemap.Level
Controller *ecs.Controller
}
// do runs f on the main thread.