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:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user