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
{
///
/// The name of the layer.
///
[XmlAttribute()]
public String Name;
///
/// Should this layer be visible?
///
[XmlAttribute()]
public bool Visible;
///
/// The list of the items in this layer.
///
public List- Items;
///
/// 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.
///
public Vector2 ScrollSpeed;
public Layer()
{
Items = new List
- ();
ScrollSpeed = Vector2.One;
}
public void draw(SpriteBatch sb)
{
if (!Visible) return;
foreach (Item item in Items) item.draw(sb);
}
}
}