add LdtkFieldInstance and LdtkEntityMap classes; update LdtkSceneBuilder to support entity mapping

This commit is contained in:
2025-09-23 02:21:18 +02:00
parent 22271e741d
commit 43e5bfcdce
11 changed files with 278 additions and 10 deletions

View File

@@ -9,4 +9,7 @@ public class LdtkEntityInstance
[JsonPropertyName("px")]
public int[] Px { get; set; }
[JsonPropertyName("fieldInstances")]
public LdtkFieldInstance[] FieldInstances { get; set; }
}

View File

@@ -0,0 +1,16 @@
using System.Text.Json;
using System.Text.Json.Serialization;
namespace CSharpLdtkImporter.Models;
public class LdtkFieldInstance
{
[JsonPropertyName("__identifier")]
public string Identifier { get; set; }
[JsonPropertyName("__type")]
public string Type { get; set; }
[JsonPropertyName("__value")]
public JsonElement Value { get; set; }
}

View File

@@ -0,0 +1 @@
uid://dgwt3rdvkdypq