diff options
Diffstat (limited to 'Plugins/MonoGame.Extended/source/MonoGame.Extended/TextureAtlases/TexturePackerSize.cs')
-rw-r--r-- | Plugins/MonoGame.Extended/source/MonoGame.Extended/TextureAtlases/TexturePackerSize.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Plugins/MonoGame.Extended/source/MonoGame.Extended/TextureAtlases/TexturePackerSize.cs b/Plugins/MonoGame.Extended/source/MonoGame.Extended/TextureAtlases/TexturePackerSize.cs new file mode 100644 index 0000000..05351d0 --- /dev/null +++ b/Plugins/MonoGame.Extended/source/MonoGame.Extended/TextureAtlases/TexturePackerSize.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace MonoGame.Extended.TextureAtlases +{ + public class TexturePackerSize + { + [JsonPropertyName("w")] + public int Width { get; set; } + + [JsonPropertyName("h")] + public int Height { get; set; } + + public override string ToString() + { + return $"{Width} {Height}"; + } + } +} |