TiledMapGroupLayerContent.cs 871 B

123456789101112131415161718192021222324
  1. // Copyright (c) Craftwork Games. All rights reserved.
  2. // Licensed under the MIT license.
  3. // See LICENSE file in the project root for full license information.
  4. using System.Collections.Generic;
  5. using System.Xml.Serialization;
  6. using MonoGame.Extended.Tiled;
  7. namespace MonoGame.Extended.Content.Tiled;
  8. public class TiledMapGroupLayerContent : TiledMapLayerContent
  9. {
  10. protected TiledMapGroupLayerContent()
  11. : base(TiledMapLayerType.GroupLayer)
  12. {
  13. }
  14. [XmlElement(ElementName = "layer", Type = typeof(TiledMapTileLayerContent))]
  15. [XmlElement(ElementName = "imagelayer", Type = typeof(TiledMapImageLayerContent))]
  16. [XmlElement(ElementName = "objectgroup", Type = typeof(TiledMapObjectLayerContent))]
  17. [XmlElement(ElementName = "group", Type = typeof(TiledMapGroupLayerContent))]
  18. public List<TiledMapLayerContent> Layers { get; set; }
  19. }