axiosengine/axios/Engine/Gleed2D/Layer.cs
Nathan Adams 911072f1b3 Correcting naming issue with Gleed2D
--HG--
rename : axios/Engine/Glee2D/CircleItem.cs => axios/Engine/Gleed2D/CircleItem.cs
rename : axios/Engine/Glee2D/CustomProperty.cs => axios/Engine/Gleed2D/CustomProperty.cs
rename : axios/Engine/Glee2D/Item.cs => axios/Engine/Gleed2D/Item.cs
rename : axios/Engine/Glee2D/Layer.cs => axios/Engine/Gleed2D/Layer.cs
rename : axios/Engine/Glee2D/Level.cs => axios/Engine/Gleed2D/Level.cs
rename : axios/Engine/Glee2D/PathItem.cs => axios/Engine/Gleed2D/PathItem.cs
rename : axios/Engine/Glee2D/RectangleItem.cs => axios/Engine/Gleed2D/RectangleItem.cs
rename : axios/Engine/Glee2D/TextureItem.cs => axios/Engine/Gleed2D/TextureItem.cs
2012-05-12 17:52:59 -05:00

53 lines
1.3 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
namespace Axios.Engine.Glee2D
{
public partial class Layer
{
/// <summary>
/// The name of the layer.
/// </summary>
[XmlAttribute()]
public String Name;
/// <summary>
/// Should this layer be visible?
/// </summary>
[XmlAttribute()]
public bool Visible;
/// <summary>
/// The list of the items in this layer.
/// </summary>
public List<Item> Items;
/// <summary>
/// The Scroll Speed relative to the main camera. The X and Y components are
/// interpreted as factors, so (1;1) means the same scrolling speed as the main camera.
/// Enables parallax scrolling.
/// </summary>
public Vector2 ScrollSpeed;
public Layer()
{
Items = new List<Item>();
ScrollSpeed = Vector2.One;
}
public void draw(SpriteBatch sb)
{
if (!Visible) return;
foreach (Item item in Items) item.draw(sb);
}
}
}