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() }
|
||||
};
|
||||
|
||||
// ============================================================
|
||||
|
||||
Reference in New Issue
Block a user