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,18 @@
using System.Text.Json.Serialization;
namespace CSharpLdtkImporter.Models;
public class LdtkTileInstance
{
// Pixel coordinates [x,y]
[JsonPropertyName("px")]
public int[] Px { get; set; }
// Tile ID in the tileset
[JsonPropertyName("t")]
public int TileId { get; set; }
// Flip bits (0=none, 1=X, 2=Y, 3=X&Y)
[JsonPropertyName("f")]
public int FlipBits { get; set; }
}