Esempio n. 1
0
        public IActionResult GetShips()
        {
            var response = new GetShipsViewModel
            {
                TimeFromStart = Game.Instance.TimeFromStart,
                Ships         = Game.Instance.RangerShipListActive,
                Dominators    = Game.Instance.DominatorShipListActive
            };

            return(Json(response));
        }
Esempio n. 2
0
        public JsonResult GetShips()
        {
            var response = new GetShipsViewModel
            {
                TimeFromStart = Game.Instance.TimeFromStart,
                Ships         = Game.Instance.RangerShipListActive,
                Dominators    = Game.Instance.DominatorShipListActive
            };

            return(Json(response, JsonRequestBehavior.AllowGet));
        }