Implement phase-3 board template client integration

Server:
- Add GetBoardTemplatesRequest/Response + BoardTemplateDto to ContentMessages.cs
- ContentBoardTemplatesHandler: content.board_templates → returns all enabled
  templates (id, name, dimensions, player range, flags, tilesJson, startingZonesJson)
- Register AddGameDatabase + ContentBoardTemplatesHandler in SOR.Content

Client:
- BoardTemplateCache.gd autoload: fetches content.board_templates on demand,
  exposes get_templates_for_custom(), get_templates_for_ranked(), get_template_by_id()
- rules_editor_dialog.gd: add Board Template OptionButton in the BOARD section;
  uses _option_ids map so confirmed() emits the template GUID (not label text)
- project.godot: register BoardTemplateCache autoload

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-03-27 21:12:49 -04:00
co-authored by Claude Happy
parent 1368083405
commit 5b836a8e7f
6 changed files with 191 additions and 2 deletions
+1
View File
@@ -19,6 +19,7 @@ config/icon="res://icon.svg"
Network="*res://autoloads/Network.gd"
ContentCache="*res://autoloads/ContentCache.gd"
BoardTemplateCache="*res://autoloads/BoardTemplateCache.gd"
Auth="*res://autoloads/Auth.gd"
CollectionCache="*res://autoloads/CollectionCache.gd"
Chat="*res://autoloads/Chat.gd"