Fix hex board template not being applied: include GridType and HexSides in snapshot

Both GameLobbyReadyHandler and MatchmakerService were building BoardTemplateSnapshot
without GridType/HexSides. FromTemplate checks HexSides > 0 to set IsTemplateBased,
so hex templates were silently treated as square grids.

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:
dingo
2026-04-07 20:02:27 -04:00
co-authored by Claude Happy
parent 91f160806c
commit d109cd7c0d
2 changed files with 4 additions and 0 deletions
@@ -259,6 +259,8 @@ internal sealed class GameLobbyReadyHandler : GameHandlerBase, IMessageHandler
{ {
Width = tmpl.Width, Width = tmpl.Width,
Height = tmpl.Height, Height = tmpl.Height,
GridType = tmpl.GridType,
HexSides = tmpl.HexSides,
Tiles = tiles, Tiles = tiles,
StartingZones = zones, StartingZones = zones,
}, tileOpts); }, tileOpts);
@@ -125,6 +125,8 @@ internal sealed class MatchmakerService : BackgroundService
{ {
width = tmpl.Width, width = tmpl.Width,
height = tmpl.Height, height = tmpl.Height,
gridType = tmpl.GridType,
hexSides = tmpl.HexSides,
tiles = tilesElem, tiles = tilesElem,
startingZones = zonesElem, startingZones = zonesElem,
}); });