public ActionResult New(string name) { Guid userId = RavenSession.Query<ZenMuUser>().Single(u => u.Username == HttpContext.User.Identity.Name).Id; Game theGame = new Game(name, userId); RavenSession.Store(theGame); return RedirectToAction("Index"); }
public GameSession(Game game) { _participants = new List<Player>(); _scenes = new List<Scene> { new Scene("Default"), new Scene("OOC") }; Id = game.Id; Name = game.Name; Game = game; }