TileBuildChanges

This commit is contained in:
dingo
2026-01-09 07:08:41 -05:00
parent a12c4d5264
commit e803dafaea
9 changed files with 3835 additions and 61 deletions
+18 -5
View File
@@ -77,22 +77,35 @@ public class TileTemplate
public bool BlocksMovement { get; set; } = false;
// --- Socket Configuration (for WFC-style matching) ---
// NOTE: Legacy socket fields kept for backward compatibility during migration
// New code should use SocketConfigJson instead
/// <summary>North edge socket type</summary>
/// <summary>North edge socket type (LEGACY - use SocketConfigJson)</summary>
public SocketType SocketN { get; set; } = SocketType.Open;
/// <summary>East edge socket type</summary>
/// <summary>East edge socket type (LEGACY - use SocketConfigJson)</summary>
public SocketType SocketE { get; set; } = SocketType.Open;
/// <summary>South edge socket type</summary>
/// <summary>South edge socket type (LEGACY - use SocketConfigJson)</summary>
public SocketType SocketS { get; set; } = SocketType.Open;
/// <summary>West edge socket type</summary>
/// <summary>West edge socket type (LEGACY - use SocketConfigJson)</summary>
public SocketType SocketW { get; set; } = SocketType.Open;
/// <summary>Custom socket names (comma-separated for each direction)</summary>
/// <summary>Custom socket names (LEGACY - use SocketConfigJson)</summary>
[MaxLength(128)]
public string? SocketCustom { get; set; }
/// <summary>
/// New socket configuration supporting:
/// - Per-direction custom socket names
/// - Multiple sockets per edge for multi-tile templates
///
/// JSON format: { "north": [...], "east": [...], "south": [...], "west": [...] }
/// See SocketConfiguration class for full structure.
/// </summary>
[Column(TypeName = "json")]
public string? SocketConfigJson { get; set; }
// --- Generation Weight ---