SocketFix

This commit is contained in:
dingo
2026-01-09 14:48:44 -05:00
parent fd4d31e5e6
commit 05c0990625
4 changed files with 3109 additions and 2 deletions
+3 -2
View File
@@ -45,11 +45,12 @@ public class DungeonGeneratorV3
/// JSON options for case-insensitive deserialization.
/// JavaScript saves with lowercase: {"sheetId":3,"frameIndex":273}
/// C# classes use PascalCase: SheetId, FrameIndex
/// Without this option, all values deserialize to 0!
/// Also handles enum serialization as strings (Open, Closed, Custom)
/// </summary>
private static readonly JsonSerializerOptions _jsonOptions = new()
{
PropertyNameCaseInsensitive = true
PropertyNameCaseInsensitive = true,
Converters = { new System.Text.Json.Serialization.JsonStringEnumConverter() }
};
// ============================================================
File diff suppressed because it is too large Load Diff
+22
View File
@@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SystemRevivalServer.Migrations
{
/// <inheritdoc />
public partial class SocketFix : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}
+1
View File
@@ -37,6 +37,7 @@ public class SocketName
public class EdgeSocket
{
/// <summary>Socket type: Open, Closed, or Custom</summary>
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.JsonStringEnumConverter))]
public SocketType Type { get; set; } = SocketType.Open;
/// <summary>Custom socket name (only used when Type == Custom)</summary>