A standalone demonstration plugin for the Board Game project that shows every extension point in one place. Built and hosted independently (like the Trouble plugin).
Load via CDN in the Board Game plugin manager:
https://cdn.jsdelivr.net/gh/customjack/board_game_plugin_example@v1.1.3/dist/plugins/example-plugin.js
This registers the plugin and its bundled demo map when loaded.
Sample requirements block for a board/map:
{
"id": "example-everything-plugin",
"version": "^1.0.0",
"source": "remote",
"cdn": "https://cdn.jsdelivr.net/gh/customjack/board_game_plugin_example@v1.1.3/dist/plugins/example-plugin.js",
"name": "Example Everything Plugin",
"description": "Registers dummy implementations for every extension point"
}- Game bits:
demo-state,demo-engine, demo piece manager, phase state machine, turn manager, event processor. - Factories: demo action, trigger, effect, stat, UI controller, UI component, animation.
- Placeholders:
{{DEMO_PHRASE}},{{DEMO_COUNTER}}. - Event handler hook: listens for
demo:pingand routes to the demo action. - Map: bundled demo board via
createMapProvider/PluginMapProvider(auto-registered on load).
From plugins/example/:
npm install
npm run build # emits dist/plugins/example-plugin.js
# npm run watch # optional dev modeFrom repo root:
npm run cdn:startThen load http://localhost:8080/plugins/example-plugin.js in the plugin manager or map requirements.
- Plugin ID:
example-everything-plugin - Version:
1.0.0(managed inpackage.jsonand exposed viaversion.js)