Plumbed Delta and the IdGenerator back through

This commit is contained in:
sm
2014-03-31 23:21:20 -07:00
parent 8b52f93ca5
commit a956162205
5 changed files with 27 additions and 10 deletions
+2 -9
View File
@@ -49,15 +49,8 @@ func main() {
sm := http.NewServeMux()
c := botserv.Controller{
Idg: botserv.NewIdGenerator(),
Conf: conf,
Games: botserv.MapLock{
M: make(map[string]*botserv.Game),
},
Memprofile: *mprofile,
Profile: *profile,
}
c := botserv.NewController(conf, *mprofile, *profile)
go c.Run()
sm.Handle("/", botserv.JsonHandler(c.Index))
sm.Handle("/ws/", websocket.Handler(c.AddPlayer))