Wire HexSides through custom lobby; fix boardTemplateIdOverride empty-string crash
Server: - CustomRulesOverride: add HexSides (int?) field - CustomLobby entity: add HexSidesOverride (int?) column - GameUpdateLobbyRulesHandler: save HexSidesOverride, include HexSides in effective rules preview - GameLobbyReadyHandler: set rules.HexSides from lobby.HexSidesOverride on game start - GameSavePresetHandler: capture BoardShape + HexSides in saved presets - Migration 20260401222603_AddCustomLobbyHexSides: adds HexSidesOverride to custom_lobbies; applied to pg-forge-01 via dotnet ef database update Client: - rules_editor_dialog: send null (not "") for boardTemplateIdOverride when no template selected — empty string crashed Guid? deserialisation on the server Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -130,7 +130,9 @@ public sealed record CustomRulesOverride(
|
||||
/// When set, use this board template instead of generating a board from BoardShape.
|
||||
/// Null or absent = no template (use shape generator).
|
||||
/// </summary>
|
||||
Guid? BoardTemplateIdOverride = null);
|
||||
Guid? BoardTemplateIdOverride = null,
|
||||
/// <summary>Hex sides (N) when BoardShape is "Hexagon". 0 = server default (5).</summary>
|
||||
int? HexSides = null);
|
||||
|
||||
/// <summary>Join an open custom lobby with the specified deck.</summary>
|
||||
public sealed record JoinCustomLobbyRequest(Guid LobbyId, Guid DeckId, string? Password = null);
|
||||
|
||||
Reference in New Issue
Block a user