コード例 #1
0
ファイル: HomeController.cs プロジェクト: EMPIR/TSGames
        public JsonResult NodeClicked(int a, int b, int c)
        {
            //string id = ReadFromRequest("id");
            theGame = (SetGame.Game) this.ControllerContext.HttpContext.Session["__MySessionGame"];

            //string json = JavaScriptConvert.SerializeObject(node);
            return this.Json(this.theGame.Move(a,b,c));
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: EMPIR/TSGames
 public ActionResult Index()
 {
     this.ControllerContext.HttpContext.Session.Add("__MySessionGame", new SetGame.Game());
     theGame = (SetGame.Game) this.ControllerContext.HttpContext.Session["__MySessionGame"];
     return View(theGame);
 }