Ejemplo n.º 1
0
        public IEnumerable <CustomWallpaper> GetFloors()
        {
            int floors = !HasFloors ? 0 : (Floors.Width / 32) * (Floors.Height / 32);

            for (int i = 0; i < floors; i++)
            {
                var floor = new CustomWallpaper(i, this, true);

                if (floor.Animation is Animation anim)
                {
                    i += anim.Frames;
                }

                yield return(floor);
            }
        }
Ejemplo n.º 2
0
        public IEnumerable <CustomWallpaper> GetWalls()
        {
            int walls = !HasWalls ? 0 : (Walls.Width / 16) * (Walls.Height / 48);

            for (int i = 0; i < walls; i++)
            {
                var wall = new CustomWallpaper(i, this, false);

                if (wall.Animation is Animation anim)
                {
                    i += anim.Frames;
                }

                yield return(wall);
            }
        }