Пример #1
0
        public Room Clone()
        {
            Room clone = new Room(Level, Id, RoomType, Item, RoomUpIndex, RoomStraightIndex, RoomDownIndex);

            foreach (IEnemy e in _enemies)
            {
                clone.AddEnemy(e.EnemyType, e.HP, e.Points, 1);
            }
            return(clone);
        }
Пример #2
0
 public Room Clone()
 {
     Room clone = new Room(Level, Id, RoomType, Item, RoomUpIndex, RoomStraightIndex, RoomDownIndex);
     foreach (IEnemy e in _enemies)
     {
         clone.AddEnemy(e.EnemyType, e.HP, e.Points, 1);
     }
     return clone;
 }