mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-26 00:45:20 +00:00
25 lines
541 B
C#
25 lines
541 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);
|
|
}
|
|
|
|
}
|
|
} |