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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user