Use only Model namespace

This commit is contained in:
Daniel Cronqvist 2024-08-18 21:29:38 +02:00
parent 96ad2af667
commit 608e77927a
86 changed files with 278 additions and 161 deletions

View file

@ -9,7 +9,8 @@
] ]
} }
], ],
"dest": "api" "dest": "api",
"enumSortOrder": "declaringOrder"
} }
], ],
"build": { "build": {

View file

@ -39,7 +39,7 @@ namespace MyBenchmarks
[BenchmarkCategory("MapFromInMemoryTmxString")] [BenchmarkCategory("MapFromInMemoryTmxString")]
[Benchmark(Baseline = true, Description = "DotTiled")] [Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmxString() public DotTiled.Model LoadWithDotTiledFromInMemoryTmxString()
{ {
using var stringReader = new StringReader(_tmxContents); using var stringReader = new StringReader(_tmxContents);
using var xmlReader = XmlReader.Create(stringReader); using var xmlReader = XmlReader.Create(stringReader);
@ -49,7 +49,7 @@ namespace MyBenchmarks
[BenchmarkCategory("MapFromInMemoryTmjString")] [BenchmarkCategory("MapFromInMemoryTmjString")]
[Benchmark(Baseline = true, Description = "DotTiled")] [Benchmark(Baseline = true, Description = "DotTiled")]
public DotTiled.Model.Map LoadWithDotTiledFromInMemoryTmjString() public DotTiled.Model LoadWithDotTiledFromInMemoryTmjString()
{ {
using var mapReader = new DotTiled.Serialization.Tmj.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []); using var mapReader = new DotTiled.Serialization.Tmj.TmjMapReader(_tmjContents, _ => throw new Exception(), _ => throw new Exception(), []);
return mapReader.ReadMap(); return mapReader.ReadMap();

View file

@ -1,4 +1,4 @@
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,4 +1,4 @@
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,4 +1,4 @@
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,4 +1,4 @@
using DotTiled.Model.Layers.Objects; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,4 +1,4 @@
using DotTiled.Model.Properties; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,5 +1,5 @@
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,6 +1,6 @@
using System.Xml; using System.Xml;
using DotTiled.Model.Properties; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,5 +1,5 @@
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,8 +1,8 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Properties; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Properties; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,8 +1,8 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Properties; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Globalization; using System.Globalization;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,9 +1,9 @@
using System.Numerics; using System.Numerics;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Layers.Objects; using DotTiled.Model;
using DotTiled.Model.Properties; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,6 +1,6 @@
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
using DotTiled.Serialization.Tmj; using DotTiled.Serialization.Tmj;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -1,7 +1,7 @@
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
using DotTiled.Serialization.Tmx; using DotTiled.Serialization.Tmx;
namespace DotTiled.Tests; namespace DotTiled.Tests;

View file

@ -3,6 +3,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup> </PropertyGroup>
</Project> </Project>

View file

@ -1,22 +1,57 @@
using System; using System;
using System.Diagnostics.CodeAnalysis; using System.Diagnostics.CodeAnalysis;
using System.Globalization; using System.Globalization;
using System.Threading;
namespace DotTiled.Model; namespace DotTiled.Model;
/// <summary>
/// Represents a Tiled color.
/// </summary>
public class Color : IParsable<Color>, IEquatable<Color> public class Color : IParsable<Color>, IEquatable<Color>
{ {
/// <summary>
/// The red component of the color.
/// </summary>
public required byte R { get; set; } public required byte R { get; set; }
/// <summary>
/// The green component of the color.
/// </summary>
public required byte G { get; set; } public required byte G { get; set; }
/// <summary>
/// The blue component of the color.
/// </summary>
public required byte B { get; set; } public required byte B { get; set; }
/// <summary>
/// The alpha component of the color.
/// </summary>
public byte A { get; set; } = 255; public byte A { get; set; } = 255;
/// <summary>
/// Attempts to parse the specified string into a <see cref="Color"/>. Expects strings in the format <c>#RRGGBB</c> or <c>#AARRGGBB</c>.
/// The leading <c>#</c> is optional.
/// </summary>
/// <param name="s">A string value to parse into a <see cref="Color"/></param>
/// <param name="provider">An object that supplies culture-specific information about the format of s.</param>
/// <returns>The parsed <see cref="Color"/></returns>
/// <exception cref="FormatException">Thrown in case the provided string <paramref name="s"/> is not in a valid format.</exception>
public static Color Parse(string s, IFormatProvider? provider) public static Color Parse(string s, IFormatProvider? provider)
{ {
TryParse(s, provider, out var result); TryParse(s, provider, out var result);
return result ?? throw new FormatException($"Invalid format for TiledColor: {s}"); return result ?? throw new FormatException($"Invalid format for TiledColor: {s}");
} }
/// <summary>
/// Attempts to parse the specified string into a <see cref="Color"/>. Expects strings in the format <c>#RRGGBB</c> or <c>#AARRGGBB</c>.
/// The leading <c>#</c> is optional.
/// </summary>
/// <param name="s">A string value to parse into a <see cref="Color"/></param>
/// <param name="provider">An object that supplies culture-specific information about the format of s.</param>
/// <param name="result">When this method returns, contains the parsed <see cref="Color"/> or <c>null</c> on failure.</param>
/// <returns><c>true</c> if <paramref name="s"/> was successfully parsed; otherwise, <c>false</c>.</returns>
public static bool TryParse( public static bool TryParse(
[NotNullWhen(true)] string? s, [NotNullWhen(true)] string? s,
IFormatProvider? provider, IFormatProvider? provider,
@ -55,6 +90,7 @@ public class Color : IParsable<Color>, IEquatable<Color>
return true; return true;
} }
/// <inheritdoc/>
public bool Equals(Color? other) public bool Equals(Color? other)
{ {
if (other is null) if (other is null)
@ -63,9 +99,12 @@ public class Color : IParsable<Color>, IEquatable<Color>
return R == other.R && G == other.G && B == other.B && A == other.A; return R == other.R && G == other.G && B == other.B && A == other.A;
} }
/// <inheritdoc/>
public override bool Equals(object? obj) => obj is Color other && Equals(other); public override bool Equals(object? obj) => obj is Color other && Equals(other);
/// <inheritdoc/>
public override int GetHashCode() => HashCode.Combine(R, G, B, A); public override int GetHashCode() => HashCode.Combine(R, G, B, A);
/// <inheritdoc/>
public override string ToString() => $"#{A:x2}{R:x2}{G:x2}{B:x2}"; public override string ToString() => $"#{A:x2}{R:x2}{G:x2}{B:x2}";
} }

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Layers; namespace DotTiled.Model;
public abstract class BaseLayer public abstract class BaseLayer
{ {

View file

@ -1,6 +1,6 @@
using System; using System;
namespace DotTiled.Model.Layers; namespace DotTiled.Model;
public enum DataEncoding public enum DataEncoding
{ {

View file

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace DotTiled.Model.Layers; namespace DotTiled.Model;
public class Group : BaseLayer public class Group : BaseLayer
{ {

View file

@ -1,6 +1,4 @@
using DotTiled.Model.Tilesets; namespace DotTiled.Model;
namespace DotTiled.Model.Layers;
public class ImageLayer : BaseLayer public class ImageLayer : BaseLayer
{ {

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Layers.Objects;
namespace DotTiled.Model.Layers; namespace DotTiled.Model;
public enum DrawOrder public enum DrawOrder
{ {

View file

@ -1,3 +1,3 @@
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class EllipseObject : Object { } public class EllipseObject : Object { }

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public abstract class Object public abstract class Object
{ {

View file

@ -1,3 +1,3 @@
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class PointObject : Object { } public class PointObject : Object { }

View file

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Numerics; using System.Numerics;
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class PolygonObject : Object public class PolygonObject : Object
{ {

View file

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Numerics; using System.Numerics;
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class PolylineObject : Object public class PolylineObject : Object
{ {

View file

@ -1,3 +1,3 @@
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class RectangleObject : Object { } public class RectangleObject : Object { }

View file

@ -1,7 +1,6 @@
using System.Globalization; using System.Globalization;
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public enum TextHorizontalAlignment public enum TextHorizontalAlignment
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Layers.Objects; namespace DotTiled.Model;
public class TileObject : Object public class TileObject : Object
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Layers; namespace DotTiled.Model;
public class TileLayer : BaseLayer public class TileLayer : BaseLayer
{ {

View file

@ -1,66 +1,205 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Globalization; using System.Globalization;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Tilesets;
namespace DotTiled.Model; namespace DotTiled.Model;
/// <summary>
/// Map orientation enumeration. The map orientation determines the alignment of the tiles in the map.
/// </summary>
public enum MapOrientation public enum MapOrientation
{ {
/// <summary>
/// Orthogonal orientation. This is the typical top-down grid-based layout.
/// </summary>
Orthogonal, Orthogonal,
/// <summary>
/// Isometric orientation. This is a type of axonometric projection where the tiles are shown as rhombuses, as seen from a side-on view.
/// </summary>
Isometric, Isometric,
/// <summary>
/// Staggered orientation. This is an isometric projection with a side-on view where the tiles are arranged in a staggered grid.
/// </summary>
Staggered, Staggered,
/// <summary>
/// Hexagonal orientation. This is a type of axial projection where the tiles are shown as hexagons, as seen from a top-down view.
/// </summary>
Hexagonal Hexagonal
} }
/// <summary>
/// Render order enumeration. The order in which tiles on tile layers are rendered.
/// </summary>
public enum RenderOrder public enum RenderOrder
{ {
/// <summary>
/// Right-down render order. Starts at top-left and proceeds right then down.
/// </summary>
RightDown, RightDown,
/// <summary>
/// Right-up render order. Starts at bottom-left and proceeds right then up.
/// </summary>
RightUp, RightUp,
/// <summary>
/// Left-down render order. Starts at top-right and proceeds left then down.
/// </summary>
LeftDown, LeftDown,
/// <summary>
/// Left-up render order. Starts at bottom-right and proceeds left then up.
/// </summary>
LeftUp LeftUp
} }
/// <summary>
/// Stagger axis enumeration. For staggered and hexagonal maps, determines which axis (X or Y) is staggered.
/// </summary>
public enum StaggerAxis public enum StaggerAxis
{ {
/// <summary>
/// X stagger axis.
/// </summary>
X, X,
/// <summary>
/// Y stagger axis.
/// </summary>
Y Y
} }
/// <summary>
/// Stagger index enumeration. For staggered and hexagonal maps, determines whether the "even" or "odd" indexes along the staggered axis are shifted.
/// </summary>
public enum StaggerIndex public enum StaggerIndex
{ {
/// <summary>
/// Even stagger index.
/// </summary>
Odd, Odd,
/// <summary>
/// Odd stagger index.
/// </summary>
Even Even
} }
/// <summary>
/// Represents a Tiled map.
/// </summary>
public class Map public class Map
{ {
// Attributes /// <summary>
/// The TMX format version. Is incremented to match minor Tiled releases.
/// </summary>
public required string Version { get; set; } public required string Version { get; set; }
/// <summary>
/// The Tiled version used to save the file.
/// </summary>
public required string TiledVersion { get; set; } public required string TiledVersion { get; set; }
/// <summary>
/// The class of this map.
/// </summary>
public string Class { get; set; } = ""; public string Class { get; set; } = "";
/// <summary>
/// Map orientation.
/// </summary>
public required MapOrientation Orientation { get; set; } public required MapOrientation Orientation { get; set; }
/// <summary>
/// The order in which tiles on tile layers are rendered.
/// </summary>
public RenderOrder RenderOrder { get; set; } = RenderOrder.RightDown; public RenderOrder RenderOrder { get; set; } = RenderOrder.RightDown;
/// <summary>
/// The compression level to use for tile layer data (defaults to -1, which means to use the algorithm default).
/// Typically only useful for parsing, but may be interesting for certain use cases.
/// </summary>
public int CompressionLevel { get; set; } = -1; public int CompressionLevel { get; set; } = -1;
/// <summary>
/// The width of the map in tiles.
/// </summary>
public required uint Width { get; set; } public required uint Width { get; set; }
/// <summary>
/// The height of the map in tiles.
/// </summary>
public required uint Height { get; set; } public required uint Height { get; set; }
/// <summary>
/// The width of a tile.
/// </summary>
public required uint TileWidth { get; set; } public required uint TileWidth { get; set; }
/// <summary>
/// The height of a tile.
/// </summary>
public required uint TileHeight { get; set; } public required uint TileHeight { get; set; }
/// <summary>
/// Only for hexagonal maps. Determines the width or height (depending on the staggered axis) of the tile's edge, in pixels.
/// </summary>
public uint? HexSideLength { get; set; } public uint? HexSideLength { get; set; }
/// <summary>
/// For staggered and hexagonal maps, determines which axis (X or Y) is staggered.
/// </summary>
public StaggerAxis? StaggerAxis { get; set; } public StaggerAxis? StaggerAxis { get; set; }
/// <summary>
/// For staggered and hexagonal maps, determines whether the "even" or "odd" indexes along the staggered axis are shifted.
/// </summary>
public StaggerIndex? StaggerIndex { get; set; } public StaggerIndex? StaggerIndex { get; set; }
/// <summary>
/// X coordinate of the parallax origin in pixels.
/// </summary>
public float ParallaxOriginX { get; set; } = 0.0f; public float ParallaxOriginX { get; set; } = 0.0f;
/// <summary>
/// Y coordinate of the parallax origin in pixels.
/// </summary>
public float ParallaxOriginY { get; set; } = 0.0f; public float ParallaxOriginY { get; set; } = 0.0f;
/// <summary>
/// The background color of the map.
/// </summary>
public Color BackgroundColor { get; set; } = Color.Parse("#00000000", CultureInfo.InvariantCulture); public Color BackgroundColor { get; set; } = Color.Parse("#00000000", CultureInfo.InvariantCulture);
/// <summary>
/// Stores the next available ID for new layers. This number is used to prevent reuse of the same ID after layers have been removed.
/// </summary>
public required uint NextLayerID { get; set; } public required uint NextLayerID { get; set; }
/// <summary>
/// Stores the next available ID for new objects. This number is used to prevent reuse of the same ID after objects have been removed.
/// </summary>
public required uint NextObjectID { get; set; } public required uint NextObjectID { get; set; }
/// <summary>
/// Whether this map is infinite. An infinite map has no fixed size and can grow in all directions. Its layer data is stored in chunks.
/// </summary>
public bool Infinite { get; set; } = false; public bool Infinite { get; set; } = false;
// At most one of /// <summary>
/// Map properties.
/// </summary>
public Dictionary<string, IProperty>? Properties { get; set; } public Dictionary<string, IProperty>? Properties { get; set; }
// Any number of /// <summary>
/// List of tilesets used by the map.
/// </summary>
public List<Tileset> Tilesets { get; set; } = []; public List<Tileset> Tilesets { get; set; } = [];
/// <summary>
/// Hierarchical list of layers. <see cref="Group"/> is a layer type which can contain sub-layers to create a hierarchy.
/// </summary>
public List<BaseLayer> Layers { get; set; } = []; public List<BaseLayer> Layers { get; set; } = [];
} }

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class BoolProperty : IProperty public class BoolProperty : IProperty
{ {

View file

@ -1,7 +1,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class ClassProperty : IProperty public class ClassProperty : IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class ColorProperty : IProperty public class ColorProperty : IProperty
{ {

View file

@ -1,7 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
namespace DotTiled.Model.Properties.CustomTypes; namespace DotTiled.Model;
[Flags] [Flags]
public enum CustomClassUseAs public enum CustomClassUseAs

View file

@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace DotTiled.Model.Properties.CustomTypes; namespace DotTiled.Model;
public enum CustomEnumStorageType public enum CustomEnumStorageType
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties.CustomTypes; namespace DotTiled.Model;
public abstract class CustomTypeDefinition public abstract class CustomTypeDefinition
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class FileProperty : IProperty public class FileProperty : IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class FloatProperty : IProperty public class FloatProperty : IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public interface IProperty public interface IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class IntProperty : IProperty public class IntProperty : IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class ObjectProperty : IProperty public class ObjectProperty : IProperty
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public enum PropertyType public enum PropertyType
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Properties; namespace DotTiled.Model;
public class StringProperty : IProperty public class StringProperty : IProperty
{ {

View file

@ -1,11 +1,17 @@
using DotTiled.Model.Layers.Objects;
using DotTiled.Model.Tilesets;
namespace DotTiled.Model; namespace DotTiled.Model;
/// <summary>
/// Represents a Tiled template. A template is a reusable object that can be placed in an <see cref="DotTiled.Model"/> inside the Tiled editor.
/// </summary>
public class Template public class Template
{ {
// At most one of (if the template is a tile object) /// <summary>
/// If the template represents a tile object, this property will contain the tileset that the tile belongs to.
/// </summary>
public Tileset? Tileset { get; set; } public Tileset? Tileset { get; set; }
/// <summary>
/// The object that this template represents.
/// </summary>
public required Object Object { get; set; } public required Object Object { get; set; }
} }

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class Frame public class Frame
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public enum GridOrientation public enum GridOrientation
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public enum ImageFormat public enum ImageFormat
{ {

View file

@ -1,8 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class Tile public class Tile
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class TileOffset public class TileOffset
{ {

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public enum ObjectAlignment public enum ObjectAlignment
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class Transformations public class Transformations
{ {

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class WangColor public class WangColor
{ {

View file

@ -1,4 +1,4 @@
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class WangTile public class WangTile
{ {

View file

@ -1,7 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model.Properties;
namespace DotTiled.Model.Tilesets; namespace DotTiled.Model;
public class Wangset public class Wangset
{ {

View file

@ -3,9 +3,9 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Linq; using System.Linq;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Properties; using DotTiled.Model;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Serialization; namespace DotTiled.Serialization;

View file

@ -1,5 +1,5 @@
using System; using System;
using DotTiled.Model.Tilesets; using DotTiled.Model;
namespace DotTiled.Serialization; namespace DotTiled.Serialization;

View file

@ -1,8 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -5,7 +5,7 @@ using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,9 +4,6 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,10 +4,7 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers; using DotTiled.Model;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,8 +4,6 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -5,10 +5,6 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,10 +4,6 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Layers.Objects;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,8 +4,6 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,8 +4,6 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,9 +4,6 @@ using System.Globalization;
using System.Numerics; using System.Numerics;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -6,10 +6,6 @@ using System.IO.Compression;
using System.Linq; using System.Linq;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -4,8 +4,6 @@ using System.IO;
using System.Text; using System.Text;
using System.Text.Json; using System.Text.Json;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -1,8 +1,6 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmj; namespace DotTiled.Serialization.Tmj;

View file

@ -1,5 +1,5 @@
using System.Xml; using System.Xml;
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -4,7 +4,7 @@ using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
using DotTiled.Model.Layers; using DotTiled.Model;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -4,10 +4,6 @@ using System.Globalization;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -5,11 +5,6 @@ using System.Linq;
using System.Numerics; using System.Numerics;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Layers.Objects;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -2,8 +2,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -3,10 +3,6 @@ using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -4,10 +4,6 @@ using System.IO;
using System.Linq; using System.Linq;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Layers;
using DotTiled.Model.Properties;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -2,8 +2,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -2,8 +2,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;

View file

@ -2,8 +2,6 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Xml; using System.Xml;
using DotTiled.Model; using DotTiled.Model;
using DotTiled.Model.Properties.CustomTypes;
using DotTiled.Model.Tilesets;
namespace DotTiled.Serialization.Tmx; namespace DotTiled.Serialization.Tmx;