Files
MonoGame.Extended/Source/MonoGame.Extended.Content.Pipeline/TextureAtlases/TexturePackerRectangle.cs
T
2017-01-31 21:15:21 +10:00

24 lines
540 B
C#

using Newtonsoft.Json;
namespace MonoGame.Extended.Content.Pipeline.TextureAtlases
{
public class TexturePackerRectangle
{
[JsonProperty("x")]
public int X { get; set; }
[JsonProperty("y")]
public int Y { get; set; }
[JsonProperty("w")]
public int Width { get; set; }
[JsonProperty("h")]
public int Height { get; set; }
public override string ToString()
{
return string.Format("{0} {1} {2} {3}", X, Y, Width, Height);
}
}
}