Ejemplo n.º 1
0
        public void OnSave()
        {
            Rocks = new List <Rock>();

            foreach (Entity e in EntityManager.Entities)
            {
                if (e is PlayerShip)
                {
                    Player = (PlayerShip)e;
                }
                else
                {
                    Rocks.Add((Rock)e);
                }
            }
        }
Ejemplo n.º 2
0
        public void OnSave()
        {
            Rocks = new List<Rock>();

            foreach (Entity e in EntityManager.Entities)
            {
                if (e is PlayerShip)
                    Player = (PlayerShip)e;
                else
                    Rocks.Add((Rock)e);
            }
        }