Пример #1
0
        private Galaxy GetGalaxy(List<Tile> map)
        {
            Galaxy galaxy;
            if (Session["galaxy"] == null)
            {
                galaxy = new Galaxy();
                Session["galaxy"] = galaxy;
            }

            galaxy = (Galaxy)Session["galaxy"];
            if (map != null)
            {
                galaxy.map = map;
            }
            return galaxy;
        }
Пример #2
0
 private void SetGalaxy(Galaxy galaxy)
 {
     Session["galaxy"] = galaxy;
 }