mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-24 12:06:37 +00:00
29 lines
815 B
C#
29 lines
815 B
C#
using System.Collections.Generic;
|
|
using System.Xml.Serialization;
|
|
using MonoGame.Extended.Tiled;
|
|
|
|
namespace MonoGame.Extended.Content.Pipeline.Tiled
|
|
{
|
|
public class TiledMapObjectLayerContent : TiledMapLayerContent
|
|
{
|
|
[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 TiledMapObjectLayerContent()
|
|
: base(TiledMapLayerType.ObjectLayer)
|
|
{
|
|
Objects = new List<TiledMapObjectContent>();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
}
|
|
} |