summaryrefslogtreecommitdiff
path: root/Plugins/MonoGame.Extended/source/MonoGame.Extended.Tiled/Serialization/TiledMapObjectLayerContent.cs
blob: 30669b5ca9fa8c375d48fb933b7a7e9d656a2cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using System.Collections.Generic;
using System.Xml.Serialization;

namespace MonoGame.Extended.Tiled.Serialization
{
    public class TiledMapObjectLayerContent : TiledMapLayerContent
    {
        public TiledMapObjectLayerContent()
            : base(TiledMapLayerType.ObjectLayer)
        {
            Objects = new List<TiledMapObjectContent>();
        }

        [XmlAttribute(AttributeName = "color")]
        public string Color { get; set; }

        [XmlElement(ElementName = "object")]
        public List<TiledMapObjectContent> Objects { get; set; }

        [XmlAttribute(AttributeName = "draworder")]
        public TiledMapObjectDrawOrderContent DrawOrder { get; set; }
        
        public override string ToString()
        {
            return Name;
        }
    }
}