SocketFix
This commit is contained in:
@@ -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() }
|
||||
};
|
||||
|
||||
// ============================================================
|
||||
|
||||
+3083
File diff suppressed because it is too large
Load Diff
@@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user