add initial implementation of LDtk importer with data models and scene builder

This commit is contained in:
2025-09-23 01:54:37 +02:00
parent faa4715250
commit d92e2b004e
22 changed files with 1710 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
using System.Text.Json.Serialization;
namespace CSharpLdtkImporter.Models;
public class LdtkData
{
[JsonPropertyName("levels")]
public LdtkLevel[] Levels { get; set; }
[JsonPropertyName("defs")]
public LdtkDefinitions Defs { get; set; }
}
public class LdtkDefinitions
{
[JsonPropertyName("tilesets")]
public LdtkTilesetDef[] Tilesets { get; set; }
}
public class LdtkTilesetDef
{
[JsonPropertyName("uid")]
public int Uid { get; set; }
[JsonPropertyName("relPath")]
public string RelPath { get; set; }
[JsonPropertyName("tileGridSize")]
public int TileGridSize { get; set; }
}