blob: 5cdf21d0dbebddda3d24cb4f597b973e9edf5ece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
using System.Text.Json.Serialization;
using MonoGame.Extended.Serialization;
namespace MonoGame.Extended.TextureAtlases
{
public class TexturePackerMeta
{
[JsonPropertyName("app")]
public string App { get; set; }
[JsonPropertyName("version")]
public string Version { get; set; }
[JsonPropertyName("image")]
public string Image { get; set; }
[JsonPropertyName("format")]
public string Format { get; set; }
[JsonPropertyName("size")]
public TexturePackerSize Size { get; set; }
[JsonPropertyName("scale")]
[JsonConverter(typeof(FloatStringConverter))]
public float Scale { get; set; }
[JsonPropertyName("smartupdate")]
public string SmartUpdate { get; set; }
public override string ToString()
{
return Image;
}
}
}
|