Exemple #1
0
        public ActionResult RuleTest()
        {
            var sid = PlayRoomsManager.MakeTempSession(RuleTestHandler.ROOM_ID_PREFIX);

            PlayRoomsManager.GetOrCreate(sid);
            ViewBag.RoomId = sid;
            return(View());
        }
Exemple #2
0
        public ActionResult Practice(string id)
        {
            var rule = id;
            var sid  = PlayRoomsManager.MakeTempSession(PracticeHandler.ROOM_ID_PREFIX);

            PlayRoomsManager.GetOrCreate(sid, rule);
            ViewBag.RoomId = sid;
            return(View());
        }
Exemple #3
0
        public ActionResult Index(string rule, string name)
        {
            // あいているところを自動で探す
            var id = PlayRoomsManager.MakeTempSession();

            ViewBag.RoomId    = id;
            ViewBag.Name      = string.IsNullOrWhiteSpace(name) ? "あなた" : name;
            ViewBag.Rule      = rule;
            ViewBag.AutoStart = true;
            ViewBag.Monitor   = false;
            return(View());
        }
Exemple #4
0
        public ActionResult Start(string id, string name, string rule)
        {
            if (id == null)
            {
                // あいているところを自動で探す
                id = PlayRoomsManager.MakeTempSession();
            }

            ViewBag.RoomId = id;
            ViewBag.Name   = name;
            ViewBag.Rule   = rule;

            return(View());
        }