mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-24 17:44:33 +00:00
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace PckStudio.Core.Json
|
|
{
|
|
public sealed class JsonTileInfo
|
|
{
|
|
[JsonProperty("displayName")]
|
|
public string DisplayName { get; set; }
|
|
|
|
[JsonProperty("internalName")]
|
|
public string InternalName { get; set; }
|
|
|
|
[JsonProperty("width")]
|
|
public int TileWidth { get; set; } = 1;
|
|
|
|
[JsonProperty("height")]
|
|
public int TileHeight { get; set; } = 1;
|
|
|
|
[JsonIgnore]
|
|
public bool HasColourEntry => ColourEntry != null;
|
|
|
|
[JsonProperty("colourEntry", DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public JsonColorEntry ColourEntry { get; set; }
|
|
|
|
[JsonProperty("allowCustomColour", DefaultValueHandling = DefaultValueHandling.Populate)]
|
|
public bool AllowCustomColour { get; set; }
|
|
|
|
public JsonTileInfo(string displayName, string internalName)
|
|
{
|
|
DisplayName = displayName;
|
|
InternalName = internalName;
|
|
}
|
|
}
|
|
}
|