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; using Microsoft.Xna.Framework.Content; using FarseerPhysics.Dynamics; namespace Axios.Engine.Glee2D { [XmlInclude(typeof(TextureItem))] [XmlInclude(typeof(RectangleItem))] [XmlInclude(typeof(CircleItem))] [XmlInclude(typeof(PathItem))] public partial class Item { /// /// The name of this item. /// [XmlAttribute()] public String Name; /// /// Should this item be visible? /// [XmlAttribute()] public bool Visible; /// /// The item's position in world space. /// public Vector2 Position; /// /// A Dictionary containing any user-defined Properties. /// public SerializableDictionary CustomProperties; public Item() { CustomProperties = new SerializableDictionary(); } /// /// Called by Level.FromFile(filename) on each Item after the deserialization process. /// Should be overriden and can be used to load anything needed by the Item (e.g. a texture). /// public virtual void load(ContentManager cm, World world) { } public virtual void draw(SpriteBatch sb) { } } }