@almadar/std 6.5.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/behaviors/registry/atoms/std-async.orb +147 -86
- package/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/behaviors/registry/atoms/std-browse.orb +260 -126
- package/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/behaviors/registry/atoms/std-collision.orb +136 -135
- package/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/behaviors/registry/atoms/std-combat.orb +171 -98
- package/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/behaviors/registry/atoms/std-display.orb +491 -587
- package/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/behaviors/registry/atoms/std-filter.orb +311 -326
- package/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/behaviors/registry/atoms/std-input.orb +128 -393
- package/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/behaviors/registry/atoms/std-loading.orb +127 -126
- package/behaviors/registry/atoms/std-modal.orb +30 -267
- package/behaviors/registry/atoms/std-movement.orb +391 -292
- package/behaviors/registry/atoms/std-notification.orb +133 -75
- package/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/behaviors/registry/atoms/std-push.orb +172 -36
- package/behaviors/registry/atoms/std-quest.orb +552 -449
- package/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/behaviors/registry/atoms/std-rating.orb +123 -65
- package/behaviors/registry/atoms/std-related.orb +202 -26
- package/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/behaviors/registry/atoms/std-score.orb +210 -146
- package/behaviors/registry/atoms/std-search.orb +265 -138
- package/behaviors/registry/atoms/std-selection.orb +311 -220
- package/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/behaviors/registry/atoms/std-sort.orb +284 -207
- package/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/behaviors/registry/atoms/std-theme.orb +193 -135
- package/behaviors/registry/atoms/std-timer.orb +320 -344
- package/behaviors/registry/atoms/std-undo.orb +278 -199
- package/behaviors/registry/atoms/std-upload.orb +112 -111
- package/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/behaviors/registry/molecules/std-cart.orb +347 -406
- package/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/behaviors/registry/molecules/std-detail.orb +133 -138
- package/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/behaviors/registry/molecules/std-list.orb +280 -205
- package/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/behaviors/registry/atoms/std-agent-activity-log.orb +240 -227
- package/dist/behaviors/registry/atoms/std-agent-chat-thread.orb +296 -199
- package/dist/behaviors/registry/atoms/std-agent-classifier.orb +384 -133
- package/dist/behaviors/registry/atoms/std-agent-completion.orb +404 -141
- package/dist/behaviors/registry/atoms/std-agent-context-window.orb +904 -607
- package/dist/behaviors/registry/atoms/std-agent-conversation.orb +443 -234
- package/dist/behaviors/registry/atoms/std-agent-memory.orb +584 -150
- package/dist/behaviors/registry/atoms/std-agent-provider.orb +431 -174
- package/dist/behaviors/registry/atoms/std-agent-search.orb +217 -61
- package/dist/behaviors/registry/atoms/std-agent-session.orb +406 -159
- package/dist/behaviors/registry/atoms/std-agent-step-progress.orb +314 -294
- package/dist/behaviors/registry/atoms/std-agent-token-gauge.orb +577 -500
- package/dist/behaviors/registry/atoms/std-agent-tool-call.orb +328 -138
- package/dist/behaviors/registry/atoms/std-async.orb +147 -86
- package/dist/behaviors/registry/atoms/std-autoregressive.orb +64 -73
- package/dist/behaviors/registry/atoms/std-browse.orb +260 -126
- package/dist/behaviors/registry/atoms/std-cache-aside.orb +358 -259
- package/dist/behaviors/registry/atoms/std-calendar.orb +280 -215
- package/dist/behaviors/registry/atoms/std-circuit-breaker.orb +295 -234
- package/dist/behaviors/registry/atoms/std-collision.orb +136 -135
- package/dist/behaviors/registry/atoms/std-combat-log.orb +108 -90
- package/dist/behaviors/registry/atoms/std-combat.orb +171 -98
- package/dist/behaviors/registry/atoms/std-confirmation.orb +28 -300
- package/dist/behaviors/registry/atoms/std-dialogue-box.orb +111 -30
- package/dist/behaviors/registry/atoms/std-display.orb +491 -587
- package/dist/behaviors/registry/atoms/std-drawer.orb +194 -121
- package/dist/behaviors/registry/atoms/std-filter.orb +311 -326
- package/dist/behaviors/registry/atoms/std-flip-card.orb +223 -177
- package/dist/behaviors/registry/atoms/std-gallery.orb +130 -151
- package/dist/behaviors/registry/atoms/std-game-audio.orb +133 -72
- package/dist/behaviors/registry/atoms/std-game-canvas2d.orb +112 -52
- package/dist/behaviors/registry/atoms/std-game-canvas3d.orb +150 -107
- package/dist/behaviors/registry/atoms/std-game-hud.orb +87 -20
- package/dist/behaviors/registry/atoms/std-game-menu.orb +32 -32
- package/dist/behaviors/registry/atoms/std-game-over-screen.orb +100 -33
- package/dist/behaviors/registry/atoms/std-gameflow.orb +147 -80
- package/dist/behaviors/registry/atoms/std-input.orb +128 -393
- package/dist/behaviors/registry/atoms/std-inventory-panel.orb +108 -71
- package/dist/behaviors/registry/atoms/std-isometric-canvas.orb +156 -407
- package/dist/behaviors/registry/atoms/std-loading.orb +127 -126
- package/dist/behaviors/registry/atoms/std-modal.orb +30 -267
- package/dist/behaviors/registry/atoms/std-movement.orb +391 -292
- package/dist/behaviors/registry/atoms/std-notification.orb +133 -75
- package/dist/behaviors/registry/atoms/std-overworld.orb +194 -121
- package/dist/behaviors/registry/atoms/std-pagination.orb +120 -53
- package/dist/behaviors/registry/atoms/std-physics2d.orb +94 -93
- package/dist/behaviors/registry/atoms/std-platformer-canvas.orb +110 -98
- package/dist/behaviors/registry/atoms/std-push.orb +172 -36
- package/dist/behaviors/registry/atoms/std-quest.orb +552 -449
- package/dist/behaviors/registry/atoms/std-rate-limiter.orb +242 -241
- package/dist/behaviors/registry/atoms/std-rating.orb +123 -65
- package/dist/behaviors/registry/atoms/std-related.orb +202 -26
- package/dist/behaviors/registry/atoms/std-score-board.orb +109 -28
- package/dist/behaviors/registry/atoms/std-score.orb +210 -146
- package/dist/behaviors/registry/atoms/std-search.orb +265 -138
- package/dist/behaviors/registry/atoms/std-selection.orb +311 -220
- package/dist/behaviors/registry/atoms/std-service-custom-bearer.orb +199 -110
- package/dist/behaviors/registry/atoms/std-service-custom-header.orb +206 -117
- package/dist/behaviors/registry/atoms/std-service-custom-noauth.orb +197 -108
- package/dist/behaviors/registry/atoms/std-service-custom-query.orb +193 -104
- package/dist/behaviors/registry/atoms/std-service-email.orb +195 -107
- package/dist/behaviors/registry/atoms/std-service-github.orb +216 -122
- package/dist/behaviors/registry/atoms/std-service-llm.orb +204 -122
- package/dist/behaviors/registry/atoms/std-service-oauth.orb +290 -204
- package/dist/behaviors/registry/atoms/std-service-redis.orb +177 -92
- package/dist/behaviors/registry/atoms/std-service-storage.orb +211 -122
- package/dist/behaviors/registry/atoms/std-service-stripe.orb +236 -154
- package/dist/behaviors/registry/atoms/std-service-twilio.orb +221 -137
- package/dist/behaviors/registry/atoms/std-service-youtube.orb +327 -241
- package/dist/behaviors/registry/atoms/std-simulation-canvas.orb +97 -36
- package/dist/behaviors/registry/atoms/std-sort.orb +284 -207
- package/dist/behaviors/registry/atoms/std-sprite.orb +150 -74
- package/dist/behaviors/registry/atoms/std-tabs.orb +129 -62
- package/dist/behaviors/registry/atoms/std-text-effects.orb +251 -190
- package/dist/behaviors/registry/atoms/std-theme.orb +193 -135
- package/dist/behaviors/registry/atoms/std-timer.orb +320 -344
- package/dist/behaviors/registry/atoms/std-undo.orb +278 -199
- package/dist/behaviors/registry/atoms/std-upload.orb +112 -111
- package/dist/behaviors/registry/atoms/std-validate-on-save.orb +159 -151
- package/dist/behaviors/registry/atoms/std-wizard.orb +445 -336
- package/dist/behaviors/registry/molecules/std-agent-fix-loop.orb +876 -857
- package/dist/behaviors/registry/molecules/std-agent-learner.orb +635 -654
- package/dist/behaviors/registry/molecules/std-agent-planner.orb +581 -548
- package/dist/behaviors/registry/molecules/std-agent-rag.orb +414 -410
- package/dist/behaviors/registry/molecules/std-agent-tool-loop.orb +716 -711
- package/dist/behaviors/registry/molecules/std-batch-selected-list.orb +28 -12
- package/dist/behaviors/registry/molecules/std-builder-game.orb +86 -28
- package/dist/behaviors/registry/molecules/std-calendar-booking.orb +32 -8
- package/dist/behaviors/registry/molecules/std-cart.orb +347 -406
- package/dist/behaviors/registry/molecules/std-classifier-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-dashboard-tabbed.orb +16 -10
- package/dist/behaviors/registry/molecules/std-debugger-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-detail.orb +133 -138
- package/dist/behaviors/registry/molecules/std-drawer-master-list.orb +12 -6
- package/dist/behaviors/registry/molecules/std-event-handler-game.orb +91 -33
- package/dist/behaviors/registry/molecules/std-filtered-list.orb +14 -8
- package/dist/behaviors/registry/molecules/std-form-advanced.orb +242 -153
- package/dist/behaviors/registry/molecules/std-gallery-filtered.orb +16 -10
- package/dist/behaviors/registry/molecules/std-geospatial.orb +175 -122
- package/dist/behaviors/registry/molecules/std-inventory.orb +216 -170
- package/dist/behaviors/registry/molecules/std-list.orb +280 -205
- package/dist/behaviors/registry/molecules/std-messaging.orb +146 -99
- package/dist/behaviors/registry/molecules/std-negotiator-game.orb +95 -37
- package/dist/behaviors/registry/molecules/std-platformer-game.orb +300 -171
- package/dist/behaviors/registry/molecules/std-push-activity-log.orb +32 -8
- package/dist/behaviors/registry/molecules/std-puzzle-game.orb +287 -146
- package/dist/behaviors/registry/molecules/std-quiz.orb +322 -263
- package/dist/behaviors/registry/molecules/std-related-master-detail.orb +21 -15
- package/dist/behaviors/registry/molecules/std-sequencer-game.orb +92 -34
- package/dist/behaviors/registry/molecules/std-service-content-pipeline.orb +268 -267
- package/dist/behaviors/registry/molecules/std-service-custom-api-tester.orb +245 -152
- package/dist/behaviors/registry/molecules/std-service-devops-toolkit.orb +633 -294
- package/dist/behaviors/registry/molecules/std-service-notification-hub.orb +237 -152
- package/dist/behaviors/registry/molecules/std-service-payment-flow.orb +310 -180
- package/dist/behaviors/registry/molecules/std-simulator-game.orb +96 -38
- package/dist/behaviors/registry/molecules/std-turn-based-battle.orb +247 -137
- package/dist/behaviors/registry/molecules/std-wizard-form.orb +60 -9
- package/dist/behaviors/registry/organisms/std-agent-assistant.orb +2810 -1833
- package/dist/behaviors/registry/organisms/std-agent-builder.orb +6401 -4539
- package/dist/behaviors/registry/organisms/std-agent-pipeline.orb +5028 -3497
- package/dist/behaviors/registry/organisms/std-agent-reviewer.orb +2219 -1406
- package/dist/behaviors/registry/organisms/std-agent-tutor.orb +2069 -1384
- package/dist/behaviors/registry/organisms/std-api-gateway.orb +1419 -870
- package/dist/behaviors/registry/organisms/std-arcade-game.orb +488 -231
- package/dist/behaviors/registry/organisms/std-booking-system.orb +2457 -1467
- package/dist/behaviors/registry/organisms/std-cicd-pipeline.orb +1367 -825
- package/dist/behaviors/registry/organisms/std-cms.orb +1549 -566
- package/dist/behaviors/registry/organisms/std-coding-academy.orb +744 -495
- package/dist/behaviors/registry/organisms/std-crm.orb +1997 -1014
- package/dist/behaviors/registry/organisms/std-devops-dashboard.orb +2160 -1606
- package/dist/behaviors/registry/organisms/std-ecommerce.orb +2279 -1153
- package/dist/behaviors/registry/organisms/std-finance-tracker.orb +1375 -727
- package/dist/behaviors/registry/organisms/std-healthcare.orb +2940 -1703
- package/dist/behaviors/registry/organisms/std-helpdesk.orb +1443 -781
- package/dist/behaviors/registry/organisms/std-hr-portal.orb +2361 -1440
- package/dist/behaviors/registry/organisms/std-iot-dashboard.orb +1491 -1026
- package/dist/behaviors/registry/organisms/std-lms.orb +1629 -1046
- package/dist/behaviors/registry/organisms/std-logic-training.orb +321 -134
- package/dist/behaviors/registry/organisms/std-platformer-app.orb +855 -417
- package/dist/behaviors/registry/organisms/std-project-manager.orb +1795 -877
- package/dist/behaviors/registry/organisms/std-puzzle-app.orb +407 -206
- package/dist/behaviors/registry/organisms/std-realtime-chat.orb +1436 -844
- package/dist/behaviors/registry/organisms/std-rpg-game.orb +1522 -1007
- package/dist/behaviors/registry/organisms/std-service-marketplace.orb +2110 -1204
- package/dist/behaviors/registry/organisms/std-service-research-assistant.orb +1285 -1078
- package/dist/behaviors/registry/organisms/std-social-feed.orb +612 -252
- package/dist/behaviors/registry/organisms/std-stem-lab.orb +642 -450
- package/dist/behaviors/registry/organisms/std-strategy-game.orb +893 -650
- package/dist/behaviors/registry/organisms/std-trading-dashboard.orb +1271 -805
- package/dist/index.js +16 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/core.js +16 -4
- package/dist/modules/core.js.map +1 -1
- package/dist/modules/index.js +16 -4
- package/dist/modules/index.js.map +1 -1
- package/dist/registry.js +16 -4
- package/dist/registry.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "std-strategy-game",
|
|
3
3
|
"version": "1.0.0",
|
|
4
|
-
"description": "
|
|
4
|
+
"description": "std-strategy-game as a Function",
|
|
5
5
|
"orbitals": [
|
|
6
6
|
{
|
|
7
7
|
"name": "ArmyBattleOrbital",
|
|
@@ -17,56 +17,71 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "turn",
|
|
19
19
|
"type": "number",
|
|
20
|
-
"default": 0
|
|
20
|
+
"default": 0.0
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "score",
|
|
24
24
|
"type": "number",
|
|
25
|
-
"default": 0
|
|
25
|
+
"default": 0.0
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"name": "armySize",
|
|
29
29
|
"type": "number",
|
|
30
|
-
"default": 10
|
|
30
|
+
"default": 10.0
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "morale",
|
|
34
34
|
"type": "number",
|
|
35
|
-
"default": 100
|
|
36
|
-
}
|
|
37
|
-
],
|
|
38
|
-
"instances": [
|
|
39
|
-
{
|
|
40
|
-
"id": "unit-1",
|
|
41
|
-
"name": "Knight",
|
|
42
|
-
"description": "Armored warrior",
|
|
43
|
-
"status": "active",
|
|
44
|
-
"turn": 0,
|
|
45
|
-
"score": 0
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"id": "unit-2",
|
|
49
|
-
"name": "Archer",
|
|
50
|
-
"description": "Ranged attacker",
|
|
51
|
-
"status": "active",
|
|
52
|
-
"turn": 0,
|
|
53
|
-
"score": 0
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"id": "unit-3",
|
|
57
|
-
"name": "Mage",
|
|
58
|
-
"description": "Magic caster",
|
|
59
|
-
"status": "active",
|
|
60
|
-
"turn": 0,
|
|
61
|
-
"score": 0
|
|
35
|
+
"default": 100.0
|
|
62
36
|
}
|
|
63
37
|
]
|
|
64
38
|
},
|
|
65
39
|
"traits": [
|
|
66
40
|
{
|
|
67
41
|
"name": "ArmyBattleBattleFlow",
|
|
68
|
-
"linkedEntity": "ArmyBattle",
|
|
69
42
|
"category": "interaction",
|
|
43
|
+
"linkedEntity": "ArmyBattle",
|
|
44
|
+
"emits": [
|
|
45
|
+
{
|
|
46
|
+
"event": "ArmyBattleLoaded",
|
|
47
|
+
"description": "Fired when ArmyBattle finishes loading",
|
|
48
|
+
"scope": "internal",
|
|
49
|
+
"payload": [
|
|
50
|
+
{
|
|
51
|
+
"name": "id",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"required": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "turn",
|
|
57
|
+
"type": "number"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "score",
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "armySize",
|
|
65
|
+
"type": "number"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "morale",
|
|
69
|
+
"type": "number"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"event": "ArmyBattleLoadFailed",
|
|
75
|
+
"description": "Fired when ArmyBattle fails to load",
|
|
76
|
+
"scope": "internal",
|
|
77
|
+
"payload": [
|
|
78
|
+
{
|
|
79
|
+
"name": "message",
|
|
80
|
+
"type": "string"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
],
|
|
70
85
|
"stateMachine": {
|
|
71
86
|
"states": [
|
|
72
87
|
{
|
|
@@ -90,7 +105,11 @@
|
|
|
90
105
|
},
|
|
91
106
|
{
|
|
92
107
|
"key": "START",
|
|
93
|
-
"name": "Start
|
|
108
|
+
"name": "Start"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"key": "NAVIGATE",
|
|
112
|
+
"name": "Navigate"
|
|
94
113
|
},
|
|
95
114
|
{
|
|
96
115
|
"key": "END_TURN",
|
|
@@ -100,25 +119,35 @@
|
|
|
100
119
|
"key": "PAUSE",
|
|
101
120
|
"name": "Pause"
|
|
102
121
|
},
|
|
122
|
+
{
|
|
123
|
+
"key": "GAME_OVER",
|
|
124
|
+
"name": "Game Over"
|
|
125
|
+
},
|
|
103
126
|
{
|
|
104
127
|
"key": "RESUME",
|
|
105
128
|
"name": "Resume"
|
|
106
129
|
},
|
|
107
130
|
{
|
|
108
|
-
"key": "
|
|
109
|
-
"name": "
|
|
131
|
+
"key": "CLOSE",
|
|
132
|
+
"name": "Close"
|
|
110
133
|
},
|
|
111
134
|
{
|
|
112
135
|
"key": "RESTART",
|
|
113
136
|
"name": "Restart"
|
|
114
137
|
},
|
|
115
138
|
{
|
|
116
|
-
"key": "
|
|
117
|
-
"name": "
|
|
139
|
+
"key": "ArmyBattleLoaded",
|
|
140
|
+
"name": "ArmyBattle loaded"
|
|
118
141
|
},
|
|
119
142
|
{
|
|
120
|
-
"key": "
|
|
121
|
-
"name": "
|
|
143
|
+
"key": "ArmyBattleLoadFailed",
|
|
144
|
+
"name": "ArmyBattle load failed",
|
|
145
|
+
"payload": [
|
|
146
|
+
{
|
|
147
|
+
"name": "message",
|
|
148
|
+
"type": "string"
|
|
149
|
+
}
|
|
150
|
+
]
|
|
122
151
|
}
|
|
123
152
|
],
|
|
124
153
|
"transitions": [
|
|
@@ -129,29 +158,35 @@
|
|
|
129
158
|
"effects": [
|
|
130
159
|
[
|
|
131
160
|
"fetch",
|
|
132
|
-
"ArmyBattle"
|
|
161
|
+
"ArmyBattle",
|
|
162
|
+
{
|
|
163
|
+
"emit": {
|
|
164
|
+
"success": "ArmyBattleLoaded",
|
|
165
|
+
"failure": "ArmyBattleLoadFailed"
|
|
166
|
+
}
|
|
167
|
+
}
|
|
133
168
|
],
|
|
134
169
|
[
|
|
135
170
|
"render-ui",
|
|
136
171
|
"main",
|
|
137
172
|
{
|
|
138
|
-
"type": "game-shell",
|
|
139
|
-
"appName": "Strategy Game",
|
|
140
|
-
"showTopBar": true,
|
|
141
173
|
"children": [
|
|
142
174
|
{
|
|
175
|
+
"subtitle": "Turn-Based Strategy",
|
|
143
176
|
"type": "game-menu",
|
|
144
177
|
"title": "Army Battle",
|
|
145
|
-
"subtitle": "Turn-Based Strategy",
|
|
146
178
|
"menuItems": [
|
|
147
179
|
{
|
|
148
180
|
"label": "Start Battle",
|
|
149
|
-
"
|
|
150
|
-
"
|
|
181
|
+
"variant": "primary",
|
|
182
|
+
"event": "START"
|
|
151
183
|
}
|
|
152
184
|
]
|
|
153
185
|
}
|
|
154
|
-
]
|
|
186
|
+
],
|
|
187
|
+
"showTopBar": true,
|
|
188
|
+
"type": "game-shell",
|
|
189
|
+
"appName": "Strategy Game"
|
|
155
190
|
}
|
|
156
191
|
]
|
|
157
192
|
]
|
|
@@ -165,7 +200,6 @@
|
|
|
165
200
|
"render-ui",
|
|
166
201
|
"main",
|
|
167
202
|
{
|
|
168
|
-
"type": "game-shell",
|
|
169
203
|
"appName": "Strategy Game",
|
|
170
204
|
"showTopBar": true,
|
|
171
205
|
"children": [
|
|
@@ -177,16 +211,22 @@
|
|
|
177
211
|
"value": "@entity.turn"
|
|
178
212
|
},
|
|
179
213
|
{
|
|
180
|
-
"
|
|
181
|
-
"
|
|
214
|
+
"value": "@entity.score",
|
|
215
|
+
"label": "Score"
|
|
182
216
|
}
|
|
183
217
|
]
|
|
184
218
|
}
|
|
185
|
-
]
|
|
219
|
+
],
|
|
220
|
+
"type": "game-shell"
|
|
186
221
|
}
|
|
187
222
|
]
|
|
188
223
|
]
|
|
189
224
|
},
|
|
225
|
+
{
|
|
226
|
+
"from": "menu",
|
|
227
|
+
"to": "menu",
|
|
228
|
+
"event": "NAVIGATE"
|
|
229
|
+
},
|
|
190
230
|
{
|
|
191
231
|
"from": "playing",
|
|
192
232
|
"to": "playing",
|
|
@@ -198,16 +238,13 @@
|
|
|
198
238
|
[
|
|
199
239
|
"+",
|
|
200
240
|
"@entity.turn",
|
|
201
|
-
1
|
|
241
|
+
1.0
|
|
202
242
|
]
|
|
203
243
|
],
|
|
204
244
|
[
|
|
205
245
|
"render-ui",
|
|
206
246
|
"main",
|
|
207
247
|
{
|
|
208
|
-
"type": "game-shell",
|
|
209
|
-
"appName": "Strategy Game",
|
|
210
|
-
"showTopBar": true,
|
|
211
248
|
"children": [
|
|
212
249
|
{
|
|
213
250
|
"type": "game-hud",
|
|
@@ -217,28 +254,19 @@
|
|
|
217
254
|
"value": "@entity.turn"
|
|
218
255
|
},
|
|
219
256
|
{
|
|
220
|
-
"
|
|
221
|
-
"
|
|
257
|
+
"value": "@entity.score",
|
|
258
|
+
"label": "Score"
|
|
222
259
|
}
|
|
223
260
|
]
|
|
224
261
|
}
|
|
225
|
-
]
|
|
262
|
+
],
|
|
263
|
+
"showTopBar": true,
|
|
264
|
+
"type": "game-shell",
|
|
265
|
+
"appName": "Strategy Game"
|
|
226
266
|
}
|
|
227
267
|
]
|
|
228
268
|
]
|
|
229
269
|
},
|
|
230
|
-
{
|
|
231
|
-
"from": "menu",
|
|
232
|
-
"to": "menu",
|
|
233
|
-
"event": "NAVIGATE",
|
|
234
|
-
"effects": []
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
"from": "paused",
|
|
238
|
-
"to": "paused",
|
|
239
|
-
"event": "NAVIGATE",
|
|
240
|
-
"effects": []
|
|
241
|
-
},
|
|
242
270
|
{
|
|
243
271
|
"from": "playing",
|
|
244
272
|
"to": "paused",
|
|
@@ -252,8 +280,8 @@
|
|
|
252
280
|
"title": "Paused",
|
|
253
281
|
"menuItems": [
|
|
254
282
|
{
|
|
255
|
-
"label": "Resume",
|
|
256
283
|
"event": "RESUME",
|
|
284
|
+
"label": "Resume",
|
|
257
285
|
"variant": "primary"
|
|
258
286
|
},
|
|
259
287
|
{
|
|
@@ -267,28 +295,36 @@
|
|
|
267
295
|
]
|
|
268
296
|
},
|
|
269
297
|
{
|
|
270
|
-
"from": "
|
|
271
|
-
"to": "
|
|
272
|
-
"event": "
|
|
298
|
+
"from": "playing",
|
|
299
|
+
"to": "gameover",
|
|
300
|
+
"event": "GAME_OVER",
|
|
273
301
|
"effects": [
|
|
274
|
-
[
|
|
275
|
-
"render-ui",
|
|
276
|
-
"modal",
|
|
277
|
-
null
|
|
278
|
-
],
|
|
279
302
|
[
|
|
280
303
|
"render-ui",
|
|
281
304
|
"main",
|
|
282
305
|
{
|
|
306
|
+
"showTopBar": true,
|
|
283
307
|
"type": "game-shell",
|
|
284
308
|
"appName": "Strategy Game",
|
|
285
|
-
"showTopBar": true,
|
|
286
309
|
"children": [
|
|
287
310
|
{
|
|
288
|
-
"
|
|
311
|
+
"title": "Battle Over",
|
|
312
|
+
"menuItems": [
|
|
313
|
+
{
|
|
314
|
+
"label": "Play Again",
|
|
315
|
+
"variant": "primary",
|
|
316
|
+
"event": "RESTART"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"label": "Main Menu",
|
|
320
|
+
"event": "RESTART",
|
|
321
|
+
"variant": "secondary"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"type": "game-over-screen",
|
|
289
325
|
"stats": [
|
|
290
326
|
{
|
|
291
|
-
"label": "
|
|
327
|
+
"label": "Turns",
|
|
292
328
|
"value": "@entity.turn"
|
|
293
329
|
},
|
|
294
330
|
{
|
|
@@ -302,10 +338,15 @@
|
|
|
302
338
|
]
|
|
303
339
|
]
|
|
304
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"from": "paused",
|
|
343
|
+
"to": "paused",
|
|
344
|
+
"event": "NAVIGATE"
|
|
345
|
+
},
|
|
305
346
|
{
|
|
306
347
|
"from": "paused",
|
|
307
348
|
"to": "playing",
|
|
308
|
-
"event": "
|
|
349
|
+
"event": "RESUME",
|
|
309
350
|
"effects": [
|
|
310
351
|
[
|
|
311
352
|
"render-ui",
|
|
@@ -316,22 +357,22 @@
|
|
|
316
357
|
"render-ui",
|
|
317
358
|
"main",
|
|
318
359
|
{
|
|
319
|
-
"type": "game-shell",
|
|
320
360
|
"appName": "Strategy Game",
|
|
361
|
+
"type": "game-shell",
|
|
321
362
|
"showTopBar": true,
|
|
322
363
|
"children": [
|
|
323
364
|
{
|
|
324
|
-
"type": "game-hud",
|
|
325
365
|
"stats": [
|
|
326
366
|
{
|
|
327
367
|
"label": "Turn",
|
|
328
368
|
"value": "@entity.turn"
|
|
329
369
|
},
|
|
330
370
|
{
|
|
331
|
-
"
|
|
332
|
-
"
|
|
371
|
+
"value": "@entity.score",
|
|
372
|
+
"label": "Score"
|
|
333
373
|
}
|
|
334
|
-
]
|
|
374
|
+
],
|
|
375
|
+
"type": "game-hud"
|
|
335
376
|
}
|
|
336
377
|
]
|
|
337
378
|
}
|
|
@@ -339,121 +380,155 @@
|
|
|
339
380
|
]
|
|
340
381
|
},
|
|
341
382
|
{
|
|
342
|
-
"from": "
|
|
343
|
-
"to": "
|
|
344
|
-
"event": "
|
|
383
|
+
"from": "paused",
|
|
384
|
+
"to": "playing",
|
|
385
|
+
"event": "CLOSE",
|
|
345
386
|
"effects": [
|
|
387
|
+
[
|
|
388
|
+
"render-ui",
|
|
389
|
+
"modal",
|
|
390
|
+
null
|
|
391
|
+
],
|
|
346
392
|
[
|
|
347
393
|
"render-ui",
|
|
348
394
|
"main",
|
|
349
395
|
{
|
|
350
396
|
"type": "game-shell",
|
|
351
|
-
"appName": "Strategy Game",
|
|
352
|
-
"showTopBar": true,
|
|
353
397
|
"children": [
|
|
354
398
|
{
|
|
355
|
-
"type": "game-
|
|
356
|
-
"title": "Battle Over",
|
|
399
|
+
"type": "game-hud",
|
|
357
400
|
"stats": [
|
|
358
401
|
{
|
|
359
|
-
"label": "
|
|
402
|
+
"label": "Turn",
|
|
360
403
|
"value": "@entity.turn"
|
|
361
404
|
},
|
|
362
405
|
{
|
|
363
406
|
"label": "Score",
|
|
364
407
|
"value": "@entity.score"
|
|
365
408
|
}
|
|
366
|
-
],
|
|
367
|
-
"menuItems": [
|
|
368
|
-
{
|
|
369
|
-
"label": "Play Again",
|
|
370
|
-
"event": "RESTART",
|
|
371
|
-
"variant": "primary"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
"label": "Main Menu",
|
|
375
|
-
"event": "RESTART",
|
|
376
|
-
"variant": "secondary"
|
|
377
|
-
}
|
|
378
409
|
]
|
|
379
410
|
}
|
|
380
|
-
]
|
|
411
|
+
],
|
|
412
|
+
"appName": "Strategy Game",
|
|
413
|
+
"showTopBar": true
|
|
381
414
|
}
|
|
382
415
|
]
|
|
383
416
|
]
|
|
384
417
|
},
|
|
385
418
|
{
|
|
386
|
-
"from": "
|
|
419
|
+
"from": "paused",
|
|
387
420
|
"to": "menu",
|
|
388
421
|
"event": "RESTART",
|
|
389
422
|
"effects": [
|
|
423
|
+
[
|
|
424
|
+
"render-ui",
|
|
425
|
+
"modal",
|
|
426
|
+
null
|
|
427
|
+
],
|
|
390
428
|
[
|
|
391
429
|
"render-ui",
|
|
392
430
|
"main",
|
|
393
431
|
{
|
|
394
432
|
"type": "game-shell",
|
|
395
|
-
"appName": "Strategy Game",
|
|
396
|
-
"showTopBar": true,
|
|
397
433
|
"children": [
|
|
398
434
|
{
|
|
399
|
-
"type": "game-menu",
|
|
400
435
|
"title": "Army Battle",
|
|
436
|
+
"type": "game-menu",
|
|
401
437
|
"subtitle": "Turn-Based Strategy",
|
|
402
438
|
"menuItems": [
|
|
403
439
|
{
|
|
404
|
-
"label": "Start Battle",
|
|
405
440
|
"event": "START",
|
|
406
|
-
"variant": "primary"
|
|
441
|
+
"variant": "primary",
|
|
442
|
+
"label": "Start Battle"
|
|
407
443
|
}
|
|
408
444
|
]
|
|
409
445
|
}
|
|
410
|
-
]
|
|
446
|
+
],
|
|
447
|
+
"showTopBar": true,
|
|
448
|
+
"appName": "Strategy Game"
|
|
411
449
|
}
|
|
412
450
|
]
|
|
413
451
|
]
|
|
414
452
|
},
|
|
415
453
|
{
|
|
416
|
-
"from": "
|
|
454
|
+
"from": "gameover",
|
|
417
455
|
"to": "menu",
|
|
418
456
|
"event": "RESTART",
|
|
419
457
|
"effects": [
|
|
420
|
-
[
|
|
421
|
-
"render-ui",
|
|
422
|
-
"modal",
|
|
423
|
-
null
|
|
424
|
-
],
|
|
425
458
|
[
|
|
426
459
|
"render-ui",
|
|
427
460
|
"main",
|
|
428
461
|
{
|
|
429
|
-
"type": "game-shell",
|
|
430
462
|
"appName": "Strategy Game",
|
|
431
|
-
"showTopBar": true,
|
|
432
463
|
"children": [
|
|
433
464
|
{
|
|
434
|
-
"type": "game-menu",
|
|
435
|
-
"title": "Army Battle",
|
|
436
465
|
"subtitle": "Turn-Based Strategy",
|
|
437
466
|
"menuItems": [
|
|
438
467
|
{
|
|
439
|
-
"label": "Start Battle",
|
|
440
468
|
"event": "START",
|
|
441
|
-
"variant": "primary"
|
|
469
|
+
"variant": "primary",
|
|
470
|
+
"label": "Start Battle"
|
|
442
471
|
}
|
|
443
|
-
]
|
|
472
|
+
],
|
|
473
|
+
"type": "game-menu",
|
|
474
|
+
"title": "Army Battle"
|
|
444
475
|
}
|
|
445
|
-
]
|
|
476
|
+
],
|
|
477
|
+
"type": "game-shell",
|
|
478
|
+
"showTopBar": true
|
|
446
479
|
}
|
|
447
480
|
]
|
|
448
481
|
]
|
|
449
482
|
}
|
|
450
483
|
]
|
|
451
|
-
}
|
|
484
|
+
},
|
|
485
|
+
"scope": "collection"
|
|
452
486
|
},
|
|
453
487
|
{
|
|
454
488
|
"name": "ArmyBattleCombatLog",
|
|
455
|
-
"linkedEntity": "ArmyBattle",
|
|
456
489
|
"category": "interaction",
|
|
490
|
+
"linkedEntity": "ArmyBattle",
|
|
491
|
+
"emits": [
|
|
492
|
+
{
|
|
493
|
+
"event": "ArmyBattleLoaded",
|
|
494
|
+
"description": "Fired when ArmyBattle finishes loading",
|
|
495
|
+
"scope": "internal",
|
|
496
|
+
"payload": [
|
|
497
|
+
{
|
|
498
|
+
"name": "id",
|
|
499
|
+
"type": "string",
|
|
500
|
+
"required": true
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "turn",
|
|
504
|
+
"type": "number"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"name": "score",
|
|
508
|
+
"type": "number"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "armySize",
|
|
512
|
+
"type": "number"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "morale",
|
|
516
|
+
"type": "number"
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"event": "ArmyBattleLoadFailed",
|
|
522
|
+
"description": "Fired when ArmyBattle fails to load",
|
|
523
|
+
"scope": "internal",
|
|
524
|
+
"payload": [
|
|
525
|
+
{
|
|
526
|
+
"name": "message",
|
|
527
|
+
"type": "string"
|
|
528
|
+
}
|
|
529
|
+
]
|
|
530
|
+
}
|
|
531
|
+
],
|
|
457
532
|
"stateMachine": {
|
|
458
533
|
"states": [
|
|
459
534
|
{
|
|
@@ -480,6 +555,20 @@
|
|
|
480
555
|
{
|
|
481
556
|
"key": "CLEAR",
|
|
482
557
|
"name": "Clear"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"key": "ArmyBattleLoaded",
|
|
561
|
+
"name": "ArmyBattle loaded"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"key": "ArmyBattleLoadFailed",
|
|
565
|
+
"name": "ArmyBattle load failed",
|
|
566
|
+
"payload": [
|
|
567
|
+
{
|
|
568
|
+
"name": "message",
|
|
569
|
+
"type": "string"
|
|
570
|
+
}
|
|
571
|
+
]
|
|
483
572
|
}
|
|
484
573
|
],
|
|
485
574
|
"transitions": [
|
|
@@ -490,7 +579,13 @@
|
|
|
490
579
|
"effects": [
|
|
491
580
|
[
|
|
492
581
|
"fetch",
|
|
493
|
-
"ArmyBattle"
|
|
582
|
+
"ArmyBattle",
|
|
583
|
+
{
|
|
584
|
+
"emit": {
|
|
585
|
+
"failure": "ArmyBattleLoadFailed",
|
|
586
|
+
"success": "ArmyBattleLoaded"
|
|
587
|
+
}
|
|
588
|
+
}
|
|
494
589
|
]
|
|
495
590
|
]
|
|
496
591
|
},
|
|
@@ -503,19 +598,19 @@
|
|
|
503
598
|
"render-ui",
|
|
504
599
|
"main",
|
|
505
600
|
{
|
|
506
|
-
"type": "game-shell",
|
|
507
|
-
"appName": "Strategy Game",
|
|
508
|
-
"showTopBar": true,
|
|
509
601
|
"children": [
|
|
510
602
|
{
|
|
603
|
+
"maxVisible": 10.0,
|
|
511
604
|
"type": "combat-log",
|
|
512
605
|
"events": "@ArmyBattle",
|
|
513
|
-
"maxVisible": 10,
|
|
514
606
|
"autoScroll": true,
|
|
515
607
|
"showTimestamps": true,
|
|
516
608
|
"title": "Combat Log"
|
|
517
609
|
}
|
|
518
|
-
]
|
|
610
|
+
],
|
|
611
|
+
"showTopBar": true,
|
|
612
|
+
"type": "game-shell",
|
|
613
|
+
"appName": "Strategy Game"
|
|
519
614
|
}
|
|
520
615
|
]
|
|
521
616
|
]
|
|
@@ -529,25 +624,26 @@
|
|
|
529
624
|
"render-ui",
|
|
530
625
|
"main",
|
|
531
626
|
{
|
|
532
|
-
"type": "game-shell",
|
|
533
|
-
"appName": "Strategy Game",
|
|
534
|
-
"showTopBar": true,
|
|
535
627
|
"children": [
|
|
536
628
|
{
|
|
537
|
-
"type": "combat-log",
|
|
538
|
-
"events": "@ArmyBattle",
|
|
539
|
-
"maxVisible": 10,
|
|
540
629
|
"autoScroll": true,
|
|
630
|
+
"events": "@ArmyBattle",
|
|
541
631
|
"showTimestamps": true,
|
|
632
|
+
"type": "combat-log",
|
|
633
|
+
"maxVisible": 10.0,
|
|
542
634
|
"title": "Combat Log"
|
|
543
635
|
}
|
|
544
|
-
]
|
|
636
|
+
],
|
|
637
|
+
"appName": "Strategy Game",
|
|
638
|
+
"type": "game-shell",
|
|
639
|
+
"showTopBar": true
|
|
545
640
|
}
|
|
546
641
|
]
|
|
547
642
|
]
|
|
548
643
|
}
|
|
549
644
|
]
|
|
550
|
-
}
|
|
645
|
+
},
|
|
646
|
+
"scope": "collection"
|
|
551
647
|
}
|
|
552
648
|
],
|
|
553
649
|
"pages": [
|
|
@@ -587,21 +683,61 @@
|
|
|
587
683
|
},
|
|
588
684
|
{
|
|
589
685
|
"name": "defense",
|
|
590
|
-
"type": "number"
|
|
591
|
-
"default": 0
|
|
686
|
+
"type": "number"
|
|
592
687
|
},
|
|
593
688
|
{
|
|
594
689
|
"name": "explored",
|
|
595
|
-
"type": "boolean"
|
|
596
|
-
"default": false
|
|
690
|
+
"type": "boolean"
|
|
597
691
|
}
|
|
598
692
|
]
|
|
599
693
|
},
|
|
600
694
|
"traits": [
|
|
601
695
|
{
|
|
602
696
|
"name": "TerritoryNavigation",
|
|
603
|
-
"linkedEntity": "Territory",
|
|
604
697
|
"category": "interaction",
|
|
698
|
+
"linkedEntity": "Territory",
|
|
699
|
+
"emits": [
|
|
700
|
+
{
|
|
701
|
+
"event": "TerritoryLoaded",
|
|
702
|
+
"description": "Fired when Territory finishes loading",
|
|
703
|
+
"scope": "internal",
|
|
704
|
+
"payload": [
|
|
705
|
+
{
|
|
706
|
+
"name": "id",
|
|
707
|
+
"type": "string",
|
|
708
|
+
"required": true
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"name": "name",
|
|
712
|
+
"type": "string",
|
|
713
|
+
"required": true
|
|
714
|
+
},
|
|
715
|
+
{
|
|
716
|
+
"name": "owner",
|
|
717
|
+
"type": "string"
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"name": "defense",
|
|
721
|
+
"type": "number"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"name": "explored",
|
|
725
|
+
"type": "boolean"
|
|
726
|
+
}
|
|
727
|
+
]
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
"event": "TerritoryLoadFailed",
|
|
731
|
+
"description": "Fired when Territory fails to load",
|
|
732
|
+
"scope": "internal",
|
|
733
|
+
"payload": [
|
|
734
|
+
{
|
|
735
|
+
"name": "message",
|
|
736
|
+
"type": "string"
|
|
737
|
+
}
|
|
738
|
+
]
|
|
739
|
+
}
|
|
740
|
+
],
|
|
605
741
|
"stateMachine": {
|
|
606
742
|
"states": [
|
|
607
743
|
{
|
|
@@ -622,14 +758,7 @@
|
|
|
622
758
|
},
|
|
623
759
|
{
|
|
624
760
|
"key": "TRAVEL",
|
|
625
|
-
"name": "Travel"
|
|
626
|
-
"payload": [
|
|
627
|
-
{
|
|
628
|
-
"name": "zoneId",
|
|
629
|
-
"type": "string",
|
|
630
|
-
"required": true
|
|
631
|
-
}
|
|
632
|
-
]
|
|
761
|
+
"name": "Travel"
|
|
633
762
|
},
|
|
634
763
|
{
|
|
635
764
|
"key": "ARRIVE",
|
|
@@ -638,6 +767,20 @@
|
|
|
638
767
|
{
|
|
639
768
|
"key": "BACK",
|
|
640
769
|
"name": "Back"
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
"key": "TerritoryLoaded",
|
|
773
|
+
"name": "Territory loaded"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"key": "TerritoryLoadFailed",
|
|
777
|
+
"name": "Territory load failed",
|
|
778
|
+
"payload": [
|
|
779
|
+
{
|
|
780
|
+
"name": "message",
|
|
781
|
+
"type": "string"
|
|
782
|
+
}
|
|
783
|
+
]
|
|
641
784
|
}
|
|
642
785
|
],
|
|
643
786
|
"transitions": [
|
|
@@ -648,97 +791,100 @@
|
|
|
648
791
|
"effects": [
|
|
649
792
|
[
|
|
650
793
|
"fetch",
|
|
651
|
-
"Territory"
|
|
794
|
+
"Territory",
|
|
795
|
+
{
|
|
796
|
+
"emit": {
|
|
797
|
+
"failure": "TerritoryLoadFailed",
|
|
798
|
+
"success": "TerritoryLoaded"
|
|
799
|
+
}
|
|
800
|
+
}
|
|
652
801
|
],
|
|
653
802
|
[
|
|
654
803
|
"render-ui",
|
|
655
804
|
"main",
|
|
656
805
|
{
|
|
657
|
-
"type": "game-shell",
|
|
658
806
|
"appName": "Strategy Game",
|
|
659
807
|
"showTopBar": true,
|
|
808
|
+
"type": "game-shell",
|
|
660
809
|
"children": [
|
|
661
810
|
{
|
|
662
|
-
"type": "stack",
|
|
663
|
-
"direction": "vertical",
|
|
664
811
|
"gap": "lg",
|
|
812
|
+
"type": "stack",
|
|
665
813
|
"children": [
|
|
666
814
|
{
|
|
667
|
-
"type": "stack",
|
|
668
|
-
"direction": "horizontal",
|
|
669
|
-
"gap": "md",
|
|
670
815
|
"justify": "space-between",
|
|
816
|
+
"gap": "md",
|
|
671
817
|
"children": [
|
|
672
818
|
{
|
|
673
|
-
"type": "stack",
|
|
674
|
-
"direction": "horizontal",
|
|
675
|
-
"gap": "md",
|
|
676
819
|
"children": [
|
|
677
820
|
{
|
|
678
821
|
"type": "icon",
|
|
679
|
-
"
|
|
680
|
-
"
|
|
822
|
+
"size": "lg",
|
|
823
|
+
"name": "map"
|
|
681
824
|
},
|
|
682
825
|
{
|
|
683
|
-
"type": "typography",
|
|
684
826
|
"content": "Territory Map",
|
|
827
|
+
"type": "typography",
|
|
685
828
|
"variant": "h2"
|
|
686
829
|
}
|
|
687
|
-
]
|
|
830
|
+
],
|
|
831
|
+
"direction": "horizontal",
|
|
832
|
+
"gap": "md",
|
|
833
|
+
"type": "stack"
|
|
688
834
|
},
|
|
689
835
|
{
|
|
690
|
-
"type": "status-dot",
|
|
691
836
|
"status": "active",
|
|
692
|
-
"
|
|
693
|
-
"
|
|
837
|
+
"label": "Exploring",
|
|
838
|
+
"type": "status-dot",
|
|
839
|
+
"pulse": false
|
|
694
840
|
}
|
|
695
|
-
]
|
|
841
|
+
],
|
|
842
|
+
"type": "stack",
|
|
843
|
+
"direction": "horizontal"
|
|
696
844
|
},
|
|
697
845
|
{
|
|
698
846
|
"type": "divider"
|
|
699
847
|
},
|
|
700
848
|
{
|
|
701
|
-
"
|
|
849
|
+
"zoom": 10.0,
|
|
702
850
|
"markers": [],
|
|
703
|
-
"
|
|
704
|
-
"
|
|
851
|
+
"type": "map-view",
|
|
852
|
+
"height": "200px"
|
|
705
853
|
},
|
|
706
854
|
{
|
|
707
|
-
"type": "data-grid",
|
|
708
|
-
"entity": "Territory",
|
|
709
855
|
"emptyIcon": "compass",
|
|
710
|
-
"
|
|
856
|
+
"type": "data-grid",
|
|
711
857
|
"emptyDescription": "Explore to discover new territorys.",
|
|
712
858
|
"itemActions": [
|
|
713
859
|
{
|
|
714
|
-
"
|
|
715
|
-
"
|
|
860
|
+
"event": "TRAVEL",
|
|
861
|
+
"label": "Travel"
|
|
716
862
|
}
|
|
717
863
|
],
|
|
864
|
+
"emptyTitle": "No territorys discovered",
|
|
718
865
|
"renderItem": [
|
|
719
866
|
"fn",
|
|
720
867
|
"item",
|
|
721
868
|
{
|
|
722
|
-
"type": "stack",
|
|
723
869
|
"direction": "vertical",
|
|
724
|
-
"
|
|
870
|
+
"type": "stack",
|
|
725
871
|
"children": [
|
|
726
872
|
{
|
|
727
|
-
"type": "stack",
|
|
728
873
|
"direction": "horizontal",
|
|
729
|
-
"justify": "space-between",
|
|
730
874
|
"align": "center",
|
|
875
|
+
"type": "stack",
|
|
876
|
+
"justify": "space-between",
|
|
731
877
|
"children": [
|
|
732
878
|
{
|
|
879
|
+
"align": "center",
|
|
733
880
|
"type": "stack",
|
|
734
|
-
"direction": "horizontal",
|
|
735
881
|
"gap": "sm",
|
|
736
|
-
"
|
|
882
|
+
"direction": "horizontal",
|
|
737
883
|
"children": [
|
|
738
884
|
{
|
|
739
|
-
"
|
|
885
|
+
"size": "sm",
|
|
740
886
|
"name": "map-pin",
|
|
741
|
-
"
|
|
887
|
+
"type": "icon"
|
|
742
888
|
},
|
|
743
889
|
{
|
|
744
890
|
"type": "typography",
|
|
@@ -758,11 +904,14 @@
|
|
|
758
904
|
"variant": "caption",
|
|
759
905
|
"content": "@item.defense"
|
|
760
906
|
}
|
|
761
|
-
]
|
|
907
|
+
],
|
|
908
|
+
"gap": "sm"
|
|
762
909
|
}
|
|
763
|
-
]
|
|
910
|
+
],
|
|
911
|
+
"entity": "Territory"
|
|
764
912
|
}
|
|
765
|
-
]
|
|
913
|
+
],
|
|
914
|
+
"direction": "vertical"
|
|
766
915
|
}
|
|
767
916
|
]
|
|
768
917
|
}
|
|
@@ -783,15 +932,13 @@
|
|
|
783
932
|
"showTopBar": true,
|
|
784
933
|
"children": [
|
|
785
934
|
{
|
|
786
|
-
"type": "stack",
|
|
787
935
|
"direction": "vertical",
|
|
788
|
-
"gap": "lg",
|
|
789
936
|
"align": "center",
|
|
790
937
|
"children": [
|
|
791
938
|
{
|
|
939
|
+
"gap": "md",
|
|
792
940
|
"type": "stack",
|
|
793
941
|
"direction": "horizontal",
|
|
794
|
-
"gap": "md",
|
|
795
942
|
"children": [
|
|
796
943
|
{
|
|
797
944
|
"type": "icon",
|
|
@@ -813,7 +960,9 @@
|
|
|
813
960
|
"content": "Traveling to the destination territorys map.",
|
|
814
961
|
"variant": "body"
|
|
815
962
|
}
|
|
816
|
-
]
|
|
963
|
+
],
|
|
964
|
+
"gap": "lg",
|
|
965
|
+
"type": "stack"
|
|
817
966
|
}
|
|
818
967
|
]
|
|
819
968
|
}
|
|
@@ -827,89 +976,83 @@
|
|
|
827
976
|
"effects": [
|
|
828
977
|
[
|
|
829
978
|
"fetch",
|
|
830
|
-
"Territory"
|
|
979
|
+
"Territory",
|
|
980
|
+
{
|
|
981
|
+
"emit": {
|
|
982
|
+
"success": "TerritoryLoaded",
|
|
983
|
+
"failure": "TerritoryLoadFailed"
|
|
984
|
+
}
|
|
985
|
+
}
|
|
831
986
|
],
|
|
832
987
|
[
|
|
833
988
|
"render-ui",
|
|
834
989
|
"main",
|
|
835
990
|
{
|
|
836
|
-
"type": "game-shell",
|
|
837
991
|
"appName": "Strategy Game",
|
|
838
992
|
"showTopBar": true,
|
|
839
993
|
"children": [
|
|
840
994
|
{
|
|
841
|
-
"type": "stack",
|
|
842
|
-
"direction": "vertical",
|
|
843
|
-
"gap": "lg",
|
|
844
995
|
"children": [
|
|
845
996
|
{
|
|
846
997
|
"type": "stack",
|
|
847
|
-
"direction": "horizontal",
|
|
848
998
|
"gap": "md",
|
|
849
|
-
"justify": "space-between",
|
|
850
999
|
"children": [
|
|
851
1000
|
{
|
|
852
1001
|
"type": "stack",
|
|
853
|
-
"direction": "horizontal",
|
|
854
|
-
"gap": "md",
|
|
855
1002
|
"children": [
|
|
856
1003
|
{
|
|
857
|
-
"
|
|
1004
|
+
"size": "lg",
|
|
858
1005
|
"name": "map",
|
|
859
|
-
"
|
|
1006
|
+
"type": "icon"
|
|
860
1007
|
},
|
|
861
1008
|
{
|
|
862
1009
|
"type": "typography",
|
|
863
1010
|
"content": "Territorys Map",
|
|
864
1011
|
"variant": "h2"
|
|
865
1012
|
}
|
|
866
|
-
]
|
|
1013
|
+
],
|
|
1014
|
+
"gap": "md",
|
|
1015
|
+
"direction": "horizontal"
|
|
867
1016
|
},
|
|
868
1017
|
{
|
|
869
1018
|
"type": "status-dot",
|
|
870
|
-
"
|
|
871
|
-
"
|
|
1019
|
+
"label": "Entered",
|
|
1020
|
+
"status": "success"
|
|
872
1021
|
}
|
|
873
|
-
]
|
|
1022
|
+
],
|
|
1023
|
+
"justify": "space-between",
|
|
1024
|
+
"direction": "horizontal"
|
|
874
1025
|
},
|
|
875
1026
|
{
|
|
876
1027
|
"type": "divider"
|
|
877
1028
|
},
|
|
878
1029
|
{
|
|
879
1030
|
"type": "data-grid",
|
|
880
|
-
"entity": "Territory",
|
|
881
|
-
"emptyIcon": "inbox",
|
|
882
|
-
"emptyTitle": "Nothing here",
|
|
883
|
-
"emptyDescription": "This zone is empty.",
|
|
884
1031
|
"renderItem": [
|
|
885
1032
|
"fn",
|
|
886
1033
|
"item",
|
|
887
1034
|
{
|
|
888
|
-
"type": "stack",
|
|
889
|
-
"direction": "vertical",
|
|
890
|
-
"gap": "sm",
|
|
891
1035
|
"children": [
|
|
892
1036
|
{
|
|
893
1037
|
"type": "stack",
|
|
894
1038
|
"direction": "horizontal",
|
|
895
|
-
"justify": "space-between",
|
|
896
1039
|
"align": "center",
|
|
897
1040
|
"children": [
|
|
898
1041
|
{
|
|
899
|
-
"type": "stack",
|
|
900
1042
|
"direction": "horizontal",
|
|
901
1043
|
"gap": "sm",
|
|
1044
|
+
"type": "stack",
|
|
902
1045
|
"align": "center",
|
|
903
1046
|
"children": [
|
|
904
1047
|
{
|
|
905
|
-
"type": "icon",
|
|
906
1048
|
"name": "map-pin",
|
|
907
|
-
"size": "sm"
|
|
1049
|
+
"size": "sm",
|
|
1050
|
+
"type": "icon"
|
|
908
1051
|
},
|
|
909
1052
|
{
|
|
1053
|
+
"content": "@item.name",
|
|
910
1054
|
"type": "typography",
|
|
911
|
-
"variant": "h4"
|
|
912
|
-
"content": "@item.name"
|
|
1055
|
+
"variant": "h4"
|
|
913
1056
|
}
|
|
914
1057
|
]
|
|
915
1058
|
},
|
|
@@ -917,38 +1060,50 @@
|
|
|
917
1060
|
"type": "badge",
|
|
918
1061
|
"label": "@item.owner"
|
|
919
1062
|
}
|
|
920
|
-
]
|
|
1063
|
+
],
|
|
1064
|
+
"justify": "space-between"
|
|
921
1065
|
},
|
|
922
1066
|
{
|
|
923
|
-
"type": "typography",
|
|
924
1067
|
"variant": "caption",
|
|
925
|
-
"content": "@item.defense"
|
|
1068
|
+
"content": "@item.defense",
|
|
1069
|
+
"type": "typography"
|
|
926
1070
|
}
|
|
927
|
-
]
|
|
1071
|
+
],
|
|
1072
|
+
"gap": "sm",
|
|
1073
|
+
"direction": "vertical",
|
|
1074
|
+
"type": "stack"
|
|
928
1075
|
}
|
|
929
|
-
]
|
|
1076
|
+
],
|
|
1077
|
+
"emptyDescription": "This zone is empty.",
|
|
1078
|
+
"emptyTitle": "Nothing here",
|
|
1079
|
+
"entity": "Territory",
|
|
1080
|
+
"emptyIcon": "inbox"
|
|
930
1081
|
},
|
|
931
1082
|
{
|
|
932
1083
|
"type": "divider"
|
|
933
1084
|
},
|
|
934
1085
|
{
|
|
935
1086
|
"type": "stack",
|
|
936
|
-
"direction": "horizontal",
|
|
937
1087
|
"gap": "sm",
|
|
938
1088
|
"justify": "end",
|
|
939
1089
|
"children": [
|
|
940
1090
|
{
|
|
941
|
-
"
|
|
942
|
-
"label": "Back to Map",
|
|
943
|
-
"event": "BACK",
|
|
1091
|
+
"icon": "arrow-left",
|
|
944
1092
|
"variant": "ghost",
|
|
945
|
-
"
|
|
1093
|
+
"label": "Back to Map",
|
|
1094
|
+
"type": "button",
|
|
1095
|
+
"event": "BACK"
|
|
946
1096
|
}
|
|
947
|
-
]
|
|
1097
|
+
],
|
|
1098
|
+
"direction": "horizontal"
|
|
948
1099
|
}
|
|
949
|
-
]
|
|
1100
|
+
],
|
|
1101
|
+
"type": "stack",
|
|
1102
|
+
"direction": "vertical",
|
|
1103
|
+
"gap": "lg"
|
|
950
1104
|
}
|
|
951
|
-
]
|
|
1105
|
+
],
|
|
1106
|
+
"type": "game-shell"
|
|
952
1107
|
}
|
|
953
1108
|
]
|
|
954
1109
|
]
|
|
@@ -960,7 +1115,13 @@
|
|
|
960
1115
|
"effects": [
|
|
961
1116
|
[
|
|
962
1117
|
"fetch",
|
|
963
|
-
"Territory"
|
|
1118
|
+
"Territory",
|
|
1119
|
+
{
|
|
1120
|
+
"emit": {
|
|
1121
|
+
"failure": "TerritoryLoadFailed",
|
|
1122
|
+
"success": "TerritoryLoaded"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
964
1125
|
],
|
|
965
1126
|
[
|
|
966
1127
|
"render-ui",
|
|
@@ -968,43 +1129,39 @@
|
|
|
968
1129
|
{
|
|
969
1130
|
"type": "game-shell",
|
|
970
1131
|
"appName": "Strategy Game",
|
|
971
|
-
"showTopBar": true,
|
|
972
1132
|
"children": [
|
|
973
1133
|
{
|
|
974
|
-
"type": "stack",
|
|
975
|
-
"direction": "vertical",
|
|
976
|
-
"gap": "lg",
|
|
977
1134
|
"children": [
|
|
978
1135
|
{
|
|
979
|
-
"type": "stack",
|
|
980
1136
|
"direction": "horizontal",
|
|
981
1137
|
"gap": "md",
|
|
982
|
-
"
|
|
1138
|
+
"type": "stack",
|
|
983
1139
|
"children": [
|
|
984
1140
|
{
|
|
985
|
-
"type": "stack",
|
|
986
|
-
"direction": "horizontal",
|
|
987
|
-
"gap": "md",
|
|
988
1141
|
"children": [
|
|
989
1142
|
{
|
|
1143
|
+
"size": "lg",
|
|
990
1144
|
"type": "icon",
|
|
991
|
-
"name": "map"
|
|
992
|
-
"size": "lg"
|
|
1145
|
+
"name": "map"
|
|
993
1146
|
},
|
|
994
1147
|
{
|
|
1148
|
+
"variant": "h2",
|
|
995
1149
|
"type": "typography",
|
|
996
|
-
"content": "Territory Map"
|
|
997
|
-
"variant": "h2"
|
|
1150
|
+
"content": "Territory Map"
|
|
998
1151
|
}
|
|
999
|
-
]
|
|
1152
|
+
],
|
|
1153
|
+
"direction": "horizontal",
|
|
1154
|
+
"type": "stack",
|
|
1155
|
+
"gap": "md"
|
|
1000
1156
|
},
|
|
1001
1157
|
{
|
|
1002
|
-
"type": "status-dot",
|
|
1003
1158
|
"status": "active",
|
|
1004
|
-
"
|
|
1005
|
-
"label": "Exploring"
|
|
1159
|
+
"type": "status-dot",
|
|
1160
|
+
"label": "Exploring",
|
|
1161
|
+
"pulse": false
|
|
1006
1162
|
}
|
|
1007
|
-
]
|
|
1163
|
+
],
|
|
1164
|
+
"justify": "space-between"
|
|
1008
1165
|
},
|
|
1009
1166
|
{
|
|
1010
1167
|
"type": "divider"
|
|
@@ -1013,12 +1170,9 @@
|
|
|
1013
1170
|
"type": "map-view",
|
|
1014
1171
|
"markers": [],
|
|
1015
1172
|
"height": "200px",
|
|
1016
|
-
"zoom": 10
|
|
1173
|
+
"zoom": 10.0
|
|
1017
1174
|
},
|
|
1018
1175
|
{
|
|
1019
|
-
"type": "data-grid",
|
|
1020
|
-
"entity": "Territory",
|
|
1021
|
-
"emptyIcon": "compass",
|
|
1022
1176
|
"emptyTitle": "No territorys discovered",
|
|
1023
1177
|
"emptyDescription": "Explore to discover new territorys.",
|
|
1024
1178
|
"itemActions": [
|
|
@@ -1032,19 +1186,15 @@
|
|
|
1032
1186
|
"item",
|
|
1033
1187
|
{
|
|
1034
1188
|
"type": "stack",
|
|
1035
|
-
"direction": "vertical",
|
|
1036
1189
|
"gap": "sm",
|
|
1190
|
+
"direction": "vertical",
|
|
1037
1191
|
"children": [
|
|
1038
1192
|
{
|
|
1193
|
+
"align": "center",
|
|
1039
1194
|
"type": "stack",
|
|
1040
1195
|
"direction": "horizontal",
|
|
1041
|
-
"justify": "space-between",
|
|
1042
|
-
"align": "center",
|
|
1043
1196
|
"children": [
|
|
1044
1197
|
{
|
|
1045
|
-
"type": "stack",
|
|
1046
|
-
"direction": "horizontal",
|
|
1047
|
-
"gap": "sm",
|
|
1048
1198
|
"align": "center",
|
|
1049
1199
|
"children": [
|
|
1050
1200
|
{
|
|
@@ -1057,39 +1207,50 @@
|
|
|
1057
1207
|
"variant": "h4",
|
|
1058
1208
|
"content": "@item.name"
|
|
1059
1209
|
}
|
|
1060
|
-
]
|
|
1210
|
+
],
|
|
1211
|
+
"direction": "horizontal",
|
|
1212
|
+
"type": "stack",
|
|
1213
|
+
"gap": "sm"
|
|
1061
1214
|
},
|
|
1062
1215
|
{
|
|
1063
|
-
"
|
|
1064
|
-
"
|
|
1216
|
+
"label": "@item.owner",
|
|
1217
|
+
"type": "badge"
|
|
1065
1218
|
}
|
|
1066
|
-
]
|
|
1219
|
+
],
|
|
1220
|
+
"justify": "space-between"
|
|
1067
1221
|
},
|
|
1068
1222
|
{
|
|
1223
|
+
"content": "@item.defense",
|
|
1069
1224
|
"type": "typography",
|
|
1070
|
-
"variant": "caption"
|
|
1071
|
-
"content": "@item.defense"
|
|
1225
|
+
"variant": "caption"
|
|
1072
1226
|
}
|
|
1073
1227
|
]
|
|
1074
1228
|
}
|
|
1075
|
-
]
|
|
1229
|
+
],
|
|
1230
|
+
"type": "data-grid",
|
|
1231
|
+
"emptyIcon": "compass",
|
|
1232
|
+
"entity": "Territory"
|
|
1076
1233
|
}
|
|
1077
|
-
]
|
|
1234
|
+
],
|
|
1235
|
+
"direction": "vertical",
|
|
1236
|
+
"type": "stack",
|
|
1237
|
+
"gap": "lg"
|
|
1078
1238
|
}
|
|
1079
|
-
]
|
|
1239
|
+
],
|
|
1240
|
+
"showTopBar": true
|
|
1080
1241
|
}
|
|
1081
1242
|
]
|
|
1082
1243
|
]
|
|
1083
1244
|
}
|
|
1084
1245
|
]
|
|
1085
|
-
}
|
|
1246
|
+
},
|
|
1247
|
+
"scope": "collection"
|
|
1086
1248
|
}
|
|
1087
1249
|
],
|
|
1088
1250
|
"pages": [
|
|
1089
1251
|
{
|
|
1090
|
-
"name": "
|
|
1252
|
+
"name": "Map",
|
|
1091
1253
|
"path": "/map",
|
|
1092
|
-
"isInitial": true,
|
|
1093
1254
|
"traits": [
|
|
1094
1255
|
{
|
|
1095
1256
|
"ref": "TerritoryNavigation"
|
|
@@ -1111,31 +1272,68 @@
|
|
|
1111
1272
|
},
|
|
1112
1273
|
{
|
|
1113
1274
|
"name": "gold",
|
|
1114
|
-
"type": "number"
|
|
1115
|
-
"default": 0
|
|
1275
|
+
"type": "number"
|
|
1116
1276
|
},
|
|
1117
1277
|
{
|
|
1118
1278
|
"name": "food",
|
|
1119
|
-
"type": "number"
|
|
1120
|
-
"default": 0
|
|
1279
|
+
"type": "number"
|
|
1121
1280
|
},
|
|
1122
1281
|
{
|
|
1123
1282
|
"name": "wood",
|
|
1124
|
-
"type": "number"
|
|
1125
|
-
"default": 0
|
|
1283
|
+
"type": "number"
|
|
1126
1284
|
},
|
|
1127
1285
|
{
|
|
1128
1286
|
"name": "iron",
|
|
1129
|
-
"type": "number"
|
|
1130
|
-
"default": 0
|
|
1287
|
+
"type": "number"
|
|
1131
1288
|
}
|
|
1132
1289
|
]
|
|
1133
1290
|
},
|
|
1134
1291
|
"traits": [
|
|
1135
1292
|
{
|
|
1136
1293
|
"name": "ResourceDisplay",
|
|
1137
|
-
"linkedEntity": "Resource",
|
|
1138
1294
|
"category": "interaction",
|
|
1295
|
+
"linkedEntity": "Resource",
|
|
1296
|
+
"emits": [
|
|
1297
|
+
{
|
|
1298
|
+
"event": "ResourceLoaded",
|
|
1299
|
+
"description": "Fired when Resource finishes loading",
|
|
1300
|
+
"scope": "internal",
|
|
1301
|
+
"payload": [
|
|
1302
|
+
{
|
|
1303
|
+
"name": "id",
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"required": true
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "gold",
|
|
1309
|
+
"type": "number"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "food",
|
|
1313
|
+
"type": "number"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "wood",
|
|
1317
|
+
"type": "number"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "iron",
|
|
1321
|
+
"type": "number"
|
|
1322
|
+
}
|
|
1323
|
+
]
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"event": "ResourceLoadFailed",
|
|
1327
|
+
"description": "Fired when Resource fails to load",
|
|
1328
|
+
"scope": "internal",
|
|
1329
|
+
"payload": [
|
|
1330
|
+
{
|
|
1331
|
+
"name": "message",
|
|
1332
|
+
"type": "string"
|
|
1333
|
+
}
|
|
1334
|
+
]
|
|
1335
|
+
}
|
|
1336
|
+
],
|
|
1139
1337
|
"stateMachine": {
|
|
1140
1338
|
"states": [
|
|
1141
1339
|
{
|
|
@@ -1165,6 +1363,20 @@
|
|
|
1165
1363
|
{
|
|
1166
1364
|
"key": "REFRESHED",
|
|
1167
1365
|
"name": "Refreshed"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"key": "ResourceLoaded",
|
|
1369
|
+
"name": "Resource loaded"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"key": "ResourceLoadFailed",
|
|
1373
|
+
"name": "Resource load failed",
|
|
1374
|
+
"payload": [
|
|
1375
|
+
{
|
|
1376
|
+
"name": "message",
|
|
1377
|
+
"type": "string"
|
|
1378
|
+
}
|
|
1379
|
+
]
|
|
1168
1380
|
}
|
|
1169
1381
|
],
|
|
1170
1382
|
"transitions": [
|
|
@@ -1175,23 +1387,25 @@
|
|
|
1175
1387
|
"effects": [
|
|
1176
1388
|
[
|
|
1177
1389
|
"fetch",
|
|
1178
|
-
"Resource"
|
|
1390
|
+
"Resource",
|
|
1391
|
+
{
|
|
1392
|
+
"emit": {
|
|
1393
|
+
"success": "ResourceLoaded",
|
|
1394
|
+
"failure": "ResourceLoadFailed"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1179
1397
|
],
|
|
1180
1398
|
[
|
|
1181
1399
|
"render-ui",
|
|
1182
1400
|
"main",
|
|
1183
1401
|
{
|
|
1184
1402
|
"type": "game-shell",
|
|
1185
|
-
"appName": "Strategy Game",
|
|
1186
|
-
"showTopBar": true,
|
|
1187
1403
|
"children": [
|
|
1188
1404
|
{
|
|
1189
|
-
"type": "scaled-diagram",
|
|
1190
1405
|
"children": [
|
|
1191
1406
|
{
|
|
1192
|
-
"type": "stack",
|
|
1193
1407
|
"direction": "vertical",
|
|
1194
|
-
"
|
|
1408
|
+
"type": "stack",
|
|
1195
1409
|
"children": [
|
|
1196
1410
|
{
|
|
1197
1411
|
"type": "breadcrumb",
|
|
@@ -1206,47 +1420,44 @@
|
|
|
1206
1420
|
]
|
|
1207
1421
|
},
|
|
1208
1422
|
{
|
|
1209
|
-
"type": "stack",
|
|
1210
|
-
"direction": "horizontal",
|
|
1211
|
-
"gap": "md",
|
|
1212
|
-
"justify": "space-between",
|
|
1213
1423
|
"children": [
|
|
1214
1424
|
{
|
|
1215
|
-
"type": "stack",
|
|
1216
|
-
"direction": "horizontal",
|
|
1217
1425
|
"gap": "md",
|
|
1218
1426
|
"children": [
|
|
1219
1427
|
{
|
|
1220
|
-
"type": "icon",
|
|
1221
1428
|
"name": "database",
|
|
1429
|
+
"type": "icon",
|
|
1222
1430
|
"size": "lg"
|
|
1223
1431
|
},
|
|
1224
1432
|
{
|
|
1225
|
-
"
|
|
1433
|
+
"variant": "h2",
|
|
1226
1434
|
"content": "Resources",
|
|
1227
|
-
"
|
|
1435
|
+
"type": "typography"
|
|
1228
1436
|
}
|
|
1229
|
-
]
|
|
1437
|
+
],
|
|
1438
|
+
"direction": "horizontal",
|
|
1439
|
+
"type": "stack"
|
|
1230
1440
|
},
|
|
1231
1441
|
{
|
|
1232
|
-
"
|
|
1442
|
+
"icon": "refresh-cw",
|
|
1233
1443
|
"label": "Refresh",
|
|
1234
|
-
"event": "REFRESH",
|
|
1235
1444
|
"variant": "secondary",
|
|
1236
|
-
"
|
|
1445
|
+
"type": "button",
|
|
1446
|
+
"event": "REFRESH"
|
|
1237
1447
|
}
|
|
1238
|
-
]
|
|
1448
|
+
],
|
|
1449
|
+
"gap": "md",
|
|
1450
|
+
"direction": "horizontal",
|
|
1451
|
+
"justify": "space-between",
|
|
1452
|
+
"type": "stack"
|
|
1239
1453
|
},
|
|
1240
1454
|
{
|
|
1241
1455
|
"type": "divider"
|
|
1242
1456
|
},
|
|
1243
1457
|
{
|
|
1244
|
-
"type": "box",
|
|
1245
|
-
"padding": "md",
|
|
1246
1458
|
"children": [
|
|
1247
1459
|
{
|
|
1248
|
-
"
|
|
1249
|
-
"columns": 3,
|
|
1460
|
+
"columns": 3.0,
|
|
1250
1461
|
"children": [
|
|
1251
1462
|
{
|
|
1252
1463
|
"type": "stat-display",
|
|
@@ -1261,8 +1472,6 @@
|
|
|
1261
1472
|
]
|
|
1262
1473
|
},
|
|
1263
1474
|
{
|
|
1264
|
-
"type": "stat-display",
|
|
1265
|
-
"label": "Food",
|
|
1266
1475
|
"value": [
|
|
1267
1476
|
"object/get",
|
|
1268
1477
|
[
|
|
@@ -1270,7 +1479,9 @@
|
|
|
1270
1479
|
"@entity"
|
|
1271
1480
|
],
|
|
1272
1481
|
"food"
|
|
1273
|
-
]
|
|
1482
|
+
],
|
|
1483
|
+
"type": "stat-display",
|
|
1484
|
+
"label": "Food"
|
|
1274
1485
|
},
|
|
1275
1486
|
{
|
|
1276
1487
|
"type": "stat-display",
|
|
@@ -1285,8 +1496,8 @@
|
|
|
1285
1496
|
]
|
|
1286
1497
|
},
|
|
1287
1498
|
{
|
|
1288
|
-
"type": "stat-display",
|
|
1289
1499
|
"label": "Iron",
|
|
1500
|
+
"type": "stat-display",
|
|
1290
1501
|
"value": [
|
|
1291
1502
|
"object/get",
|
|
1292
1503
|
[
|
|
@@ -1296,66 +1507,69 @@
|
|
|
1296
1507
|
"iron"
|
|
1297
1508
|
]
|
|
1298
1509
|
}
|
|
1299
|
-
]
|
|
1510
|
+
],
|
|
1511
|
+
"type": "simple-grid"
|
|
1300
1512
|
}
|
|
1301
|
-
]
|
|
1513
|
+
],
|
|
1514
|
+
"type": "box",
|
|
1515
|
+
"padding": "md"
|
|
1302
1516
|
},
|
|
1303
1517
|
{
|
|
1304
1518
|
"type": "divider"
|
|
1305
1519
|
},
|
|
1306
1520
|
{
|
|
1307
|
-
"
|
|
1308
|
-
"columns": 2,
|
|
1309
|
-
"gap": "md",
|
|
1521
|
+
"columns": 2.0,
|
|
1310
1522
|
"children": [
|
|
1311
1523
|
{
|
|
1312
|
-
"type": "card",
|
|
1313
1524
|
"children": [
|
|
1314
1525
|
{
|
|
1315
1526
|
"type": "typography",
|
|
1316
1527
|
"variant": "caption",
|
|
1317
1528
|
"content": "Chart View"
|
|
1318
1529
|
}
|
|
1319
|
-
]
|
|
1530
|
+
],
|
|
1531
|
+
"type": "card"
|
|
1320
1532
|
},
|
|
1321
1533
|
{
|
|
1322
|
-
"type": "card",
|
|
1323
1534
|
"children": [
|
|
1324
1535
|
{
|
|
1325
1536
|
"type": "typography",
|
|
1326
|
-
"
|
|
1327
|
-
"
|
|
1537
|
+
"content": "Graph View",
|
|
1538
|
+
"variant": "caption"
|
|
1328
1539
|
}
|
|
1329
|
-
]
|
|
1540
|
+
],
|
|
1541
|
+
"type": "card"
|
|
1330
1542
|
}
|
|
1331
|
-
]
|
|
1543
|
+
],
|
|
1544
|
+
"type": "grid",
|
|
1545
|
+
"gap": "md"
|
|
1332
1546
|
},
|
|
1333
1547
|
{
|
|
1334
1548
|
"type": "line-chart",
|
|
1335
1549
|
"data": [
|
|
1336
1550
|
{
|
|
1337
1551
|
"date": "Jan",
|
|
1338
|
-
"value": 12
|
|
1552
|
+
"value": 12.0
|
|
1339
1553
|
},
|
|
1340
1554
|
{
|
|
1341
|
-
"
|
|
1342
|
-
"
|
|
1555
|
+
"value": 19.0,
|
|
1556
|
+
"date": "Feb"
|
|
1343
1557
|
},
|
|
1344
1558
|
{
|
|
1345
|
-
"
|
|
1346
|
-
"
|
|
1559
|
+
"value": 15.0,
|
|
1560
|
+
"date": "Mar"
|
|
1347
1561
|
},
|
|
1348
1562
|
{
|
|
1349
1563
|
"date": "Apr",
|
|
1350
|
-
"value": 25
|
|
1564
|
+
"value": 25.0
|
|
1351
1565
|
},
|
|
1352
1566
|
{
|
|
1353
|
-
"
|
|
1354
|
-
"
|
|
1567
|
+
"value": 22.0,
|
|
1568
|
+
"date": "May"
|
|
1355
1569
|
},
|
|
1356
1570
|
{
|
|
1357
1571
|
"date": "Jun",
|
|
1358
|
-
"value": 30
|
|
1572
|
+
"value": 30.0
|
|
1359
1573
|
}
|
|
1360
1574
|
],
|
|
1361
1575
|
"xKey": "date",
|
|
@@ -1370,51 +1584,55 @@
|
|
|
1370
1584
|
"color": "primary"
|
|
1371
1585
|
},
|
|
1372
1586
|
{
|
|
1373
|
-
"
|
|
1374
|
-
"
|
|
1587
|
+
"color": "muted",
|
|
1588
|
+
"label": "Previous"
|
|
1375
1589
|
}
|
|
1376
1590
|
]
|
|
1377
1591
|
},
|
|
1378
1592
|
{
|
|
1379
1593
|
"type": "graph-view",
|
|
1594
|
+
"width": 400.0,
|
|
1380
1595
|
"nodes": [
|
|
1381
1596
|
{
|
|
1382
1597
|
"id": "a",
|
|
1383
|
-
"
|
|
1384
|
-
"
|
|
1385
|
-
"
|
|
1598
|
+
"x": 50.0,
|
|
1599
|
+
"y": 100.0,
|
|
1600
|
+
"label": "Start"
|
|
1386
1601
|
},
|
|
1387
1602
|
{
|
|
1603
|
+
"y": 50.0,
|
|
1388
1604
|
"id": "b",
|
|
1389
|
-
"
|
|
1390
|
-
"
|
|
1391
|
-
"y": 50
|
|
1605
|
+
"x": 200.0,
|
|
1606
|
+
"label": "Process"
|
|
1392
1607
|
},
|
|
1393
1608
|
{
|
|
1394
1609
|
"id": "c",
|
|
1395
1610
|
"label": "End",
|
|
1396
|
-
"
|
|
1397
|
-
"
|
|
1611
|
+
"y": 100.0,
|
|
1612
|
+
"x": 350.0
|
|
1398
1613
|
}
|
|
1399
1614
|
],
|
|
1615
|
+
"height": 200.0,
|
|
1400
1616
|
"edges": [
|
|
1401
1617
|
{
|
|
1402
1618
|
"from": "a",
|
|
1403
1619
|
"to": "b"
|
|
1404
1620
|
},
|
|
1405
1621
|
{
|
|
1406
|
-
"
|
|
1407
|
-
"
|
|
1622
|
+
"to": "c",
|
|
1623
|
+
"from": "b"
|
|
1408
1624
|
}
|
|
1409
|
-
]
|
|
1410
|
-
"width": 400,
|
|
1411
|
-
"height": 200
|
|
1625
|
+
]
|
|
1412
1626
|
}
|
|
1413
|
-
]
|
|
1627
|
+
],
|
|
1628
|
+
"gap": "lg"
|
|
1414
1629
|
}
|
|
1415
|
-
]
|
|
1630
|
+
],
|
|
1631
|
+
"type": "scaled-diagram"
|
|
1416
1632
|
}
|
|
1417
|
-
]
|
|
1633
|
+
],
|
|
1634
|
+
"appName": "Strategy Game",
|
|
1635
|
+
"showTopBar": true
|
|
1418
1636
|
}
|
|
1419
1637
|
]
|
|
1420
1638
|
]
|
|
@@ -1426,23 +1644,27 @@
|
|
|
1426
1644
|
"effects": [
|
|
1427
1645
|
[
|
|
1428
1646
|
"fetch",
|
|
1429
|
-
"Resource"
|
|
1647
|
+
"Resource",
|
|
1648
|
+
{
|
|
1649
|
+
"emit": {
|
|
1650
|
+
"success": "ResourceLoaded",
|
|
1651
|
+
"failure": "ResourceLoadFailed"
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1430
1654
|
],
|
|
1431
1655
|
[
|
|
1432
1656
|
"render-ui",
|
|
1433
1657
|
"main",
|
|
1434
1658
|
{
|
|
1435
|
-
"type": "game-shell",
|
|
1436
1659
|
"appName": "Strategy Game",
|
|
1437
|
-
"showTopBar": true,
|
|
1438
1660
|
"children": [
|
|
1439
1661
|
{
|
|
1440
1662
|
"type": "scaled-diagram",
|
|
1441
1663
|
"children": [
|
|
1442
1664
|
{
|
|
1665
|
+
"gap": "lg",
|
|
1443
1666
|
"type": "stack",
|
|
1444
1667
|
"direction": "vertical",
|
|
1445
|
-
"gap": "lg",
|
|
1446
1668
|
"children": [
|
|
1447
1669
|
{
|
|
1448
1670
|
"type": "breadcrumb",
|
|
@@ -1458,46 +1680,43 @@
|
|
|
1458
1680
|
},
|
|
1459
1681
|
{
|
|
1460
1682
|
"type": "stack",
|
|
1461
|
-
"direction": "horizontal",
|
|
1462
|
-
"gap": "md",
|
|
1463
|
-
"justify": "space-between",
|
|
1464
1683
|
"children": [
|
|
1465
1684
|
{
|
|
1466
|
-
"type": "stack",
|
|
1467
1685
|
"direction": "horizontal",
|
|
1468
1686
|
"gap": "md",
|
|
1469
1687
|
"children": [
|
|
1470
1688
|
{
|
|
1471
|
-
"type": "icon",
|
|
1472
1689
|
"name": "database",
|
|
1473
|
-
"size": "lg"
|
|
1690
|
+
"size": "lg",
|
|
1691
|
+
"type": "icon"
|
|
1474
1692
|
},
|
|
1475
1693
|
{
|
|
1694
|
+
"variant": "h2",
|
|
1476
1695
|
"type": "typography",
|
|
1477
|
-
"content": "Resources"
|
|
1478
|
-
"variant": "h2"
|
|
1696
|
+
"content": "Resources"
|
|
1479
1697
|
}
|
|
1480
|
-
]
|
|
1698
|
+
],
|
|
1699
|
+
"type": "stack"
|
|
1481
1700
|
},
|
|
1482
1701
|
{
|
|
1483
1702
|
"type": "button",
|
|
1484
|
-
"label": "Refresh",
|
|
1485
|
-
"event": "REFRESH",
|
|
1486
1703
|
"variant": "secondary",
|
|
1487
|
-
"icon": "refresh-cw"
|
|
1704
|
+
"icon": "refresh-cw",
|
|
1705
|
+
"event": "REFRESH",
|
|
1706
|
+
"label": "Refresh"
|
|
1488
1707
|
}
|
|
1489
|
-
]
|
|
1708
|
+
],
|
|
1709
|
+
"justify": "space-between",
|
|
1710
|
+
"gap": "md",
|
|
1711
|
+
"direction": "horizontal"
|
|
1490
1712
|
},
|
|
1491
1713
|
{
|
|
1492
1714
|
"type": "divider"
|
|
1493
1715
|
},
|
|
1494
1716
|
{
|
|
1495
|
-
"type": "box",
|
|
1496
|
-
"padding": "md",
|
|
1497
1717
|
"children": [
|
|
1498
1718
|
{
|
|
1499
1719
|
"type": "simple-grid",
|
|
1500
|
-
"columns": 3,
|
|
1501
1720
|
"children": [
|
|
1502
1721
|
{
|
|
1503
1722
|
"type": "stat-display",
|
|
@@ -1512,8 +1731,8 @@
|
|
|
1512
1731
|
]
|
|
1513
1732
|
},
|
|
1514
1733
|
{
|
|
1515
|
-
"type": "stat-display",
|
|
1516
1734
|
"label": "Food",
|
|
1735
|
+
"type": "stat-display",
|
|
1517
1736
|
"value": [
|
|
1518
1737
|
"object/get",
|
|
1519
1738
|
[
|
|
@@ -1524,8 +1743,6 @@
|
|
|
1524
1743
|
]
|
|
1525
1744
|
},
|
|
1526
1745
|
{
|
|
1527
|
-
"type": "stat-display",
|
|
1528
|
-
"label": "Wood",
|
|
1529
1746
|
"value": [
|
|
1530
1747
|
"object/get",
|
|
1531
1748
|
[
|
|
@@ -1533,11 +1750,12 @@
|
|
|
1533
1750
|
"@entity"
|
|
1534
1751
|
],
|
|
1535
1752
|
"wood"
|
|
1536
|
-
]
|
|
1753
|
+
],
|
|
1754
|
+
"label": "Wood",
|
|
1755
|
+
"type": "stat-display"
|
|
1537
1756
|
},
|
|
1538
1757
|
{
|
|
1539
1758
|
"type": "stat-display",
|
|
1540
|
-
"label": "Iron",
|
|
1541
1759
|
"value": [
|
|
1542
1760
|
"object/get",
|
|
1543
1761
|
[
|
|
@@ -1545,127 +1763,133 @@
|
|
|
1545
1763
|
"@entity"
|
|
1546
1764
|
],
|
|
1547
1765
|
"iron"
|
|
1548
|
-
]
|
|
1766
|
+
],
|
|
1767
|
+
"label": "Iron"
|
|
1549
1768
|
}
|
|
1550
|
-
]
|
|
1769
|
+
],
|
|
1770
|
+
"columns": 3.0
|
|
1551
1771
|
}
|
|
1552
|
-
]
|
|
1772
|
+
],
|
|
1773
|
+
"type": "box",
|
|
1774
|
+
"padding": "md"
|
|
1553
1775
|
},
|
|
1554
1776
|
{
|
|
1555
1777
|
"type": "divider"
|
|
1556
1778
|
},
|
|
1557
1779
|
{
|
|
1558
|
-
"type": "grid",
|
|
1559
|
-
"columns": 2,
|
|
1560
|
-
"gap": "md",
|
|
1561
1780
|
"children": [
|
|
1562
1781
|
{
|
|
1563
1782
|
"type": "card",
|
|
1564
1783
|
"children": [
|
|
1565
1784
|
{
|
|
1566
|
-
"
|
|
1785
|
+
"content": "Chart View",
|
|
1567
1786
|
"variant": "caption",
|
|
1568
|
-
"
|
|
1787
|
+
"type": "typography"
|
|
1569
1788
|
}
|
|
1570
1789
|
]
|
|
1571
1790
|
},
|
|
1572
1791
|
{
|
|
1573
|
-
"type": "card",
|
|
1574
1792
|
"children": [
|
|
1575
1793
|
{
|
|
1576
|
-
"
|
|
1794
|
+
"content": "Graph View",
|
|
1577
1795
|
"variant": "caption",
|
|
1578
|
-
"
|
|
1796
|
+
"type": "typography"
|
|
1579
1797
|
}
|
|
1580
|
-
]
|
|
1798
|
+
],
|
|
1799
|
+
"type": "card"
|
|
1581
1800
|
}
|
|
1582
|
-
]
|
|
1801
|
+
],
|
|
1802
|
+
"type": "grid",
|
|
1803
|
+
"columns": 2.0,
|
|
1804
|
+
"gap": "md"
|
|
1583
1805
|
},
|
|
1584
1806
|
{
|
|
1585
|
-
"
|
|
1807
|
+
"yKey": "value",
|
|
1808
|
+
"xKey": "date",
|
|
1586
1809
|
"data": [
|
|
1587
1810
|
{
|
|
1588
|
-
"
|
|
1589
|
-
"
|
|
1811
|
+
"value": 12.0,
|
|
1812
|
+
"date": "Jan"
|
|
1590
1813
|
},
|
|
1591
1814
|
{
|
|
1592
|
-
"
|
|
1593
|
-
"
|
|
1815
|
+
"value": 19.0,
|
|
1816
|
+
"date": "Feb"
|
|
1594
1817
|
},
|
|
1595
1818
|
{
|
|
1596
1819
|
"date": "Mar",
|
|
1597
|
-
"value": 15
|
|
1820
|
+
"value": 15.0
|
|
1598
1821
|
},
|
|
1599
1822
|
{
|
|
1600
1823
|
"date": "Apr",
|
|
1601
|
-
"value": 25
|
|
1824
|
+
"value": 25.0
|
|
1602
1825
|
},
|
|
1603
1826
|
{
|
|
1604
|
-
"
|
|
1605
|
-
"
|
|
1827
|
+
"value": 22.0,
|
|
1828
|
+
"date": "May"
|
|
1606
1829
|
},
|
|
1607
1830
|
{
|
|
1608
1831
|
"date": "Jun",
|
|
1609
|
-
"value": 30
|
|
1832
|
+
"value": 30.0
|
|
1610
1833
|
}
|
|
1611
1834
|
],
|
|
1612
|
-
"
|
|
1613
|
-
"
|
|
1614
|
-
"title": "Trend"
|
|
1835
|
+
"title": "Trend",
|
|
1836
|
+
"type": "line-chart"
|
|
1615
1837
|
},
|
|
1616
1838
|
{
|
|
1617
|
-
"type": "chart-legend",
|
|
1618
1839
|
"items": [
|
|
1619
1840
|
{
|
|
1620
|
-
"
|
|
1621
|
-
"
|
|
1841
|
+
"color": "primary",
|
|
1842
|
+
"label": "Current"
|
|
1622
1843
|
},
|
|
1623
1844
|
{
|
|
1624
1845
|
"label": "Previous",
|
|
1625
1846
|
"color": "muted"
|
|
1626
1847
|
}
|
|
1627
|
-
]
|
|
1848
|
+
],
|
|
1849
|
+
"type": "chart-legend"
|
|
1628
1850
|
},
|
|
1629
1851
|
{
|
|
1630
|
-
"
|
|
1852
|
+
"edges": [
|
|
1853
|
+
{
|
|
1854
|
+
"from": "a",
|
|
1855
|
+
"to": "b"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"to": "c",
|
|
1859
|
+
"from": "b"
|
|
1860
|
+
}
|
|
1861
|
+
],
|
|
1862
|
+
"width": 400.0,
|
|
1631
1863
|
"nodes": [
|
|
1632
1864
|
{
|
|
1865
|
+
"x": 50.0,
|
|
1633
1866
|
"id": "a",
|
|
1634
|
-
"
|
|
1635
|
-
"
|
|
1636
|
-
"y": 100
|
|
1867
|
+
"y": 100.0,
|
|
1868
|
+
"label": "Start"
|
|
1637
1869
|
},
|
|
1638
1870
|
{
|
|
1639
|
-
"id": "b",
|
|
1640
1871
|
"label": "Process",
|
|
1641
|
-
"
|
|
1642
|
-
"
|
|
1872
|
+
"y": 50.0,
|
|
1873
|
+
"id": "b",
|
|
1874
|
+
"x": 200.0
|
|
1643
1875
|
},
|
|
1644
1876
|
{
|
|
1645
1877
|
"id": "c",
|
|
1878
|
+
"y": 100.0,
|
|
1646
1879
|
"label": "End",
|
|
1647
|
-
"x": 350
|
|
1648
|
-
"y": 100
|
|
1649
|
-
}
|
|
1650
|
-
],
|
|
1651
|
-
"edges": [
|
|
1652
|
-
{
|
|
1653
|
-
"from": "a",
|
|
1654
|
-
"to": "b"
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"from": "b",
|
|
1658
|
-
"to": "c"
|
|
1880
|
+
"x": 350.0
|
|
1659
1881
|
}
|
|
1660
1882
|
],
|
|
1661
|
-
"
|
|
1662
|
-
"height": 200
|
|
1883
|
+
"type": "graph-view",
|
|
1884
|
+
"height": 200.0
|
|
1663
1885
|
}
|
|
1664
1886
|
]
|
|
1665
1887
|
}
|
|
1666
1888
|
]
|
|
1667
1889
|
}
|
|
1668
|
-
]
|
|
1890
|
+
],
|
|
1891
|
+
"showTopBar": true,
|
|
1892
|
+
"type": "game-shell"
|
|
1669
1893
|
}
|
|
1670
1894
|
]
|
|
1671
1895
|
]
|
|
@@ -1677,30 +1901,34 @@
|
|
|
1677
1901
|
"effects": [
|
|
1678
1902
|
[
|
|
1679
1903
|
"fetch",
|
|
1680
|
-
"Resource"
|
|
1904
|
+
"Resource",
|
|
1905
|
+
{
|
|
1906
|
+
"emit": {
|
|
1907
|
+
"success": "ResourceLoaded",
|
|
1908
|
+
"failure": "ResourceLoadFailed"
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1681
1911
|
],
|
|
1682
1912
|
[
|
|
1683
1913
|
"render-ui",
|
|
1684
1914
|
"main",
|
|
1685
1915
|
{
|
|
1916
|
+
"showTopBar": true,
|
|
1686
1917
|
"type": "game-shell",
|
|
1687
1918
|
"appName": "Strategy Game",
|
|
1688
|
-
"showTopBar": true,
|
|
1689
1919
|
"children": [
|
|
1690
1920
|
{
|
|
1691
|
-
"type": "scaled-diagram",
|
|
1692
1921
|
"children": [
|
|
1693
1922
|
{
|
|
1694
1923
|
"type": "stack",
|
|
1695
1924
|
"direction": "vertical",
|
|
1696
|
-
"gap": "lg",
|
|
1697
1925
|
"children": [
|
|
1698
1926
|
{
|
|
1699
1927
|
"type": "breadcrumb",
|
|
1700
1928
|
"items": [
|
|
1701
1929
|
{
|
|
1702
|
-
"
|
|
1703
|
-
"
|
|
1930
|
+
"href": "/",
|
|
1931
|
+
"label": "Home"
|
|
1704
1932
|
},
|
|
1705
1933
|
{
|
|
1706
1934
|
"label": "Resources"
|
|
@@ -1708,34 +1936,34 @@
|
|
|
1708
1936
|
]
|
|
1709
1937
|
},
|
|
1710
1938
|
{
|
|
1711
|
-
"type": "stack",
|
|
1712
1939
|
"direction": "horizontal",
|
|
1713
|
-
"gap": "md",
|
|
1714
1940
|
"justify": "space-between",
|
|
1941
|
+
"type": "stack",
|
|
1942
|
+
"gap": "md",
|
|
1715
1943
|
"children": [
|
|
1716
1944
|
{
|
|
1717
1945
|
"type": "stack",
|
|
1718
|
-
"direction": "horizontal",
|
|
1719
|
-
"gap": "md",
|
|
1720
1946
|
"children": [
|
|
1721
1947
|
{
|
|
1722
1948
|
"type": "icon",
|
|
1723
|
-
"
|
|
1724
|
-
"
|
|
1949
|
+
"size": "lg",
|
|
1950
|
+
"name": "database"
|
|
1725
1951
|
},
|
|
1726
1952
|
{
|
|
1727
|
-
"type": "typography",
|
|
1728
1953
|
"content": "Resources",
|
|
1954
|
+
"type": "typography",
|
|
1729
1955
|
"variant": "h2"
|
|
1730
1956
|
}
|
|
1731
|
-
]
|
|
1957
|
+
],
|
|
1958
|
+
"direction": "horizontal",
|
|
1959
|
+
"gap": "md"
|
|
1732
1960
|
},
|
|
1733
1961
|
{
|
|
1734
|
-
"type": "button",
|
|
1735
1962
|
"label": "Refresh",
|
|
1963
|
+
"type": "button",
|
|
1964
|
+
"icon": "refresh-cw",
|
|
1736
1965
|
"event": "REFRESH",
|
|
1737
|
-
"variant": "secondary"
|
|
1738
|
-
"icon": "refresh-cw"
|
|
1966
|
+
"variant": "secondary"
|
|
1739
1967
|
}
|
|
1740
1968
|
]
|
|
1741
1969
|
},
|
|
@@ -1743,16 +1971,12 @@
|
|
|
1743
1971
|
"type": "divider"
|
|
1744
1972
|
},
|
|
1745
1973
|
{
|
|
1746
|
-
"type": "box",
|
|
1747
|
-
"padding": "md",
|
|
1748
1974
|
"children": [
|
|
1749
1975
|
{
|
|
1750
1976
|
"type": "simple-grid",
|
|
1751
|
-
"columns": 3,
|
|
1977
|
+
"columns": 3.0,
|
|
1752
1978
|
"children": [
|
|
1753
1979
|
{
|
|
1754
|
-
"type": "stat-display",
|
|
1755
|
-
"label": "Gold",
|
|
1756
1980
|
"value": [
|
|
1757
1981
|
"object/get",
|
|
1758
1982
|
[
|
|
@@ -1760,10 +1984,11 @@
|
|
|
1760
1984
|
"@entity"
|
|
1761
1985
|
],
|
|
1762
1986
|
"gold"
|
|
1763
|
-
]
|
|
1987
|
+
],
|
|
1988
|
+
"label": "Gold",
|
|
1989
|
+
"type": "stat-display"
|
|
1764
1990
|
},
|
|
1765
1991
|
{
|
|
1766
|
-
"type": "stat-display",
|
|
1767
1992
|
"label": "Food",
|
|
1768
1993
|
"value": [
|
|
1769
1994
|
"object/get",
|
|
@@ -1772,11 +1997,10 @@
|
|
|
1772
1997
|
"@entity"
|
|
1773
1998
|
],
|
|
1774
1999
|
"food"
|
|
1775
|
-
]
|
|
2000
|
+
],
|
|
2001
|
+
"type": "stat-display"
|
|
1776
2002
|
},
|
|
1777
2003
|
{
|
|
1778
|
-
"type": "stat-display",
|
|
1779
|
-
"label": "Wood",
|
|
1780
2004
|
"value": [
|
|
1781
2005
|
"object/get",
|
|
1782
2006
|
[
|
|
@@ -1784,11 +2008,11 @@
|
|
|
1784
2008
|
"@entity"
|
|
1785
2009
|
],
|
|
1786
2010
|
"wood"
|
|
1787
|
-
]
|
|
2011
|
+
],
|
|
2012
|
+
"type": "stat-display",
|
|
2013
|
+
"label": "Wood"
|
|
1788
2014
|
},
|
|
1789
2015
|
{
|
|
1790
|
-
"type": "stat-display",
|
|
1791
|
-
"label": "Iron",
|
|
1792
2016
|
"value": [
|
|
1793
2017
|
"object/get",
|
|
1794
2018
|
[
|
|
@@ -1796,76 +2020,79 @@
|
|
|
1796
2020
|
"@entity"
|
|
1797
2021
|
],
|
|
1798
2022
|
"iron"
|
|
1799
|
-
]
|
|
2023
|
+
],
|
|
2024
|
+
"type": "stat-display",
|
|
2025
|
+
"label": "Iron"
|
|
1800
2026
|
}
|
|
1801
2027
|
]
|
|
1802
2028
|
}
|
|
1803
|
-
]
|
|
2029
|
+
],
|
|
2030
|
+
"type": "box",
|
|
2031
|
+
"padding": "md"
|
|
1804
2032
|
},
|
|
1805
2033
|
{
|
|
1806
2034
|
"type": "divider"
|
|
1807
2035
|
},
|
|
1808
2036
|
{
|
|
1809
|
-
"type": "grid",
|
|
1810
|
-
"columns": 2,
|
|
1811
|
-
"gap": "md",
|
|
1812
2037
|
"children": [
|
|
1813
2038
|
{
|
|
1814
2039
|
"type": "card",
|
|
1815
2040
|
"children": [
|
|
1816
2041
|
{
|
|
2042
|
+
"content": "Chart View",
|
|
1817
2043
|
"type": "typography",
|
|
1818
|
-
"variant": "caption"
|
|
1819
|
-
"content": "Chart View"
|
|
2044
|
+
"variant": "caption"
|
|
1820
2045
|
}
|
|
1821
2046
|
]
|
|
1822
2047
|
},
|
|
1823
2048
|
{
|
|
1824
|
-
"type": "card",
|
|
1825
2049
|
"children": [
|
|
1826
2050
|
{
|
|
1827
2051
|
"type": "typography",
|
|
1828
2052
|
"variant": "caption",
|
|
1829
2053
|
"content": "Graph View"
|
|
1830
2054
|
}
|
|
1831
|
-
]
|
|
2055
|
+
],
|
|
2056
|
+
"type": "card"
|
|
1832
2057
|
}
|
|
1833
|
-
]
|
|
2058
|
+
],
|
|
2059
|
+
"columns": 2.0,
|
|
2060
|
+
"type": "grid",
|
|
2061
|
+
"gap": "md"
|
|
1834
2062
|
},
|
|
1835
2063
|
{
|
|
1836
|
-
"
|
|
2064
|
+
"xKey": "date",
|
|
2065
|
+
"yKey": "value",
|
|
1837
2066
|
"data": [
|
|
1838
2067
|
{
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
2068
|
+
"value": 12.0,
|
|
2069
|
+
"date": "Jan"
|
|
1841
2070
|
},
|
|
1842
2071
|
{
|
|
1843
|
-
"
|
|
1844
|
-
"
|
|
2072
|
+
"value": 19.0,
|
|
2073
|
+
"date": "Feb"
|
|
1845
2074
|
},
|
|
1846
2075
|
{
|
|
1847
2076
|
"date": "Mar",
|
|
1848
|
-
"value": 15
|
|
2077
|
+
"value": 15.0
|
|
1849
2078
|
},
|
|
1850
2079
|
{
|
|
1851
|
-
"
|
|
1852
|
-
"
|
|
2080
|
+
"value": 25.0,
|
|
2081
|
+
"date": "Apr"
|
|
1853
2082
|
},
|
|
1854
2083
|
{
|
|
1855
2084
|
"date": "May",
|
|
1856
|
-
"value": 22
|
|
2085
|
+
"value": 22.0
|
|
1857
2086
|
},
|
|
1858
2087
|
{
|
|
1859
|
-
"
|
|
1860
|
-
"
|
|
2088
|
+
"value": 30.0,
|
|
2089
|
+
"date": "Jun"
|
|
1861
2090
|
}
|
|
1862
2091
|
],
|
|
1863
|
-
"
|
|
1864
|
-
"yKey": "value",
|
|
2092
|
+
"type": "line-chart",
|
|
1865
2093
|
"title": "Trend"
|
|
1866
2094
|
},
|
|
1867
2095
|
{
|
|
1868
|
-
"type": "chart-legend",
|
|
1869
2096
|
"items": [
|
|
1870
2097
|
{
|
|
1871
2098
|
"label": "Current",
|
|
@@ -1875,46 +2102,49 @@
|
|
|
1875
2102
|
"label": "Previous",
|
|
1876
2103
|
"color": "muted"
|
|
1877
2104
|
}
|
|
1878
|
-
]
|
|
2105
|
+
],
|
|
2106
|
+
"type": "chart-legend"
|
|
1879
2107
|
},
|
|
1880
2108
|
{
|
|
2109
|
+
"edges": [
|
|
2110
|
+
{
|
|
2111
|
+
"from": "a",
|
|
2112
|
+
"to": "b"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"to": "c",
|
|
2116
|
+
"from": "b"
|
|
2117
|
+
}
|
|
2118
|
+
],
|
|
1881
2119
|
"type": "graph-view",
|
|
1882
2120
|
"nodes": [
|
|
1883
2121
|
{
|
|
2122
|
+
"x": 50.0,
|
|
1884
2123
|
"id": "a",
|
|
1885
2124
|
"label": "Start",
|
|
1886
|
-
"
|
|
1887
|
-
"y": 100
|
|
2125
|
+
"y": 100.0
|
|
1888
2126
|
},
|
|
1889
2127
|
{
|
|
2128
|
+
"y": 50.0,
|
|
1890
2129
|
"id": "b",
|
|
1891
|
-
"
|
|
1892
|
-
"
|
|
1893
|
-
"y": 50
|
|
2130
|
+
"x": 200.0,
|
|
2131
|
+
"label": "Process"
|
|
1894
2132
|
},
|
|
1895
2133
|
{
|
|
1896
2134
|
"id": "c",
|
|
1897
2135
|
"label": "End",
|
|
1898
|
-
"x": 350,
|
|
1899
|
-
"y": 100
|
|
1900
|
-
}
|
|
1901
|
-
],
|
|
1902
|
-
"edges": [
|
|
1903
|
-
{
|
|
1904
|
-
"from": "a",
|
|
1905
|
-
"to": "b"
|
|
1906
|
-
},
|
|
1907
|
-
{
|
|
1908
|
-
"from": "b",
|
|
1909
|
-
"to": "c"
|
|
2136
|
+
"x": 350.0,
|
|
2137
|
+
"y": 100.0
|
|
1910
2138
|
}
|
|
1911
2139
|
],
|
|
1912
|
-
"width": 400,
|
|
1913
|
-
"height": 200
|
|
2140
|
+
"width": 400.0,
|
|
2141
|
+
"height": 200.0
|
|
1914
2142
|
}
|
|
1915
|
-
]
|
|
2143
|
+
],
|
|
2144
|
+
"gap": "lg"
|
|
1916
2145
|
}
|
|
1917
|
-
]
|
|
2146
|
+
],
|
|
2147
|
+
"type": "scaled-diagram"
|
|
1918
2148
|
}
|
|
1919
2149
|
]
|
|
1920
2150
|
}
|
|
@@ -1928,7 +2158,13 @@
|
|
|
1928
2158
|
"effects": [
|
|
1929
2159
|
[
|
|
1930
2160
|
"fetch",
|
|
1931
|
-
"Resource"
|
|
2161
|
+
"Resource",
|
|
2162
|
+
{
|
|
2163
|
+
"emit": {
|
|
2164
|
+
"success": "ResourceLoaded",
|
|
2165
|
+
"failure": "ResourceLoadFailed"
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
1932
2168
|
],
|
|
1933
2169
|
[
|
|
1934
2170
|
"render-ui",
|
|
@@ -1942,16 +2178,16 @@
|
|
|
1942
2178
|
"type": "scaled-diagram",
|
|
1943
2179
|
"children": [
|
|
1944
2180
|
{
|
|
1945
|
-
"type": "stack",
|
|
1946
|
-
"direction": "vertical",
|
|
1947
2181
|
"gap": "lg",
|
|
2182
|
+
"direction": "vertical",
|
|
2183
|
+
"type": "stack",
|
|
1948
2184
|
"children": [
|
|
1949
2185
|
{
|
|
1950
2186
|
"type": "breadcrumb",
|
|
1951
2187
|
"items": [
|
|
1952
2188
|
{
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
2189
|
+
"href": "/",
|
|
2190
|
+
"label": "Home"
|
|
1955
2191
|
},
|
|
1956
2192
|
{
|
|
1957
2193
|
"label": "Resources"
|
|
@@ -1959,47 +2195,45 @@
|
|
|
1959
2195
|
]
|
|
1960
2196
|
},
|
|
1961
2197
|
{
|
|
1962
|
-
"type": "stack",
|
|
1963
|
-
"direction": "horizontal",
|
|
1964
2198
|
"gap": "md",
|
|
1965
|
-
"
|
|
2199
|
+
"direction": "horizontal",
|
|
1966
2200
|
"children": [
|
|
1967
2201
|
{
|
|
1968
|
-
"type": "stack",
|
|
1969
|
-
"direction": "horizontal",
|
|
1970
|
-
"gap": "md",
|
|
1971
2202
|
"children": [
|
|
1972
2203
|
{
|
|
1973
|
-
"type": "icon",
|
|
1974
2204
|
"name": "database",
|
|
1975
|
-
"size": "lg"
|
|
2205
|
+
"size": "lg",
|
|
2206
|
+
"type": "icon"
|
|
1976
2207
|
},
|
|
1977
2208
|
{
|
|
1978
2209
|
"type": "typography",
|
|
1979
2210
|
"content": "Resources",
|
|
1980
2211
|
"variant": "h2"
|
|
1981
2212
|
}
|
|
1982
|
-
]
|
|
2213
|
+
],
|
|
2214
|
+
"type": "stack",
|
|
2215
|
+
"gap": "md",
|
|
2216
|
+
"direction": "horizontal"
|
|
1983
2217
|
},
|
|
1984
2218
|
{
|
|
1985
2219
|
"type": "button",
|
|
1986
|
-
"label": "Refresh",
|
|
1987
|
-
"event": "REFRESH",
|
|
1988
2220
|
"variant": "secondary",
|
|
1989
|
-
"
|
|
2221
|
+
"event": "REFRESH",
|
|
2222
|
+
"icon": "refresh-cw",
|
|
2223
|
+
"label": "Refresh"
|
|
1990
2224
|
}
|
|
1991
|
-
]
|
|
2225
|
+
],
|
|
2226
|
+
"type": "stack",
|
|
2227
|
+
"justify": "space-between"
|
|
1992
2228
|
},
|
|
1993
2229
|
{
|
|
1994
2230
|
"type": "divider"
|
|
1995
2231
|
},
|
|
1996
2232
|
{
|
|
1997
2233
|
"type": "box",
|
|
1998
|
-
"padding": "md",
|
|
1999
2234
|
"children": [
|
|
2000
2235
|
{
|
|
2001
|
-
"
|
|
2002
|
-
"columns": 3,
|
|
2236
|
+
"columns": 3.0,
|
|
2003
2237
|
"children": [
|
|
2004
2238
|
{
|
|
2005
2239
|
"type": "stat-display",
|
|
@@ -2038,8 +2272,6 @@
|
|
|
2038
2272
|
]
|
|
2039
2273
|
},
|
|
2040
2274
|
{
|
|
2041
|
-
"type": "stat-display",
|
|
2042
|
-
"label": "Iron",
|
|
2043
2275
|
"value": [
|
|
2044
2276
|
"object/get",
|
|
2045
2277
|
[
|
|
@@ -2047,76 +2279,79 @@
|
|
|
2047
2279
|
"@entity"
|
|
2048
2280
|
],
|
|
2049
2281
|
"iron"
|
|
2050
|
-
]
|
|
2282
|
+
],
|
|
2283
|
+
"type": "stat-display",
|
|
2284
|
+
"label": "Iron"
|
|
2051
2285
|
}
|
|
2052
|
-
]
|
|
2286
|
+
],
|
|
2287
|
+
"type": "simple-grid"
|
|
2053
2288
|
}
|
|
2054
|
-
]
|
|
2289
|
+
],
|
|
2290
|
+
"padding": "md"
|
|
2055
2291
|
},
|
|
2056
2292
|
{
|
|
2057
2293
|
"type": "divider"
|
|
2058
2294
|
},
|
|
2059
2295
|
{
|
|
2060
|
-
"type": "grid",
|
|
2061
|
-
"columns": 2,
|
|
2062
2296
|
"gap": "md",
|
|
2297
|
+
"type": "grid",
|
|
2298
|
+
"columns": 2.0,
|
|
2063
2299
|
"children": [
|
|
2064
2300
|
{
|
|
2065
|
-
"type": "card",
|
|
2066
2301
|
"children": [
|
|
2067
2302
|
{
|
|
2303
|
+
"content": "Chart View",
|
|
2068
2304
|
"type": "typography",
|
|
2069
|
-
"variant": "caption"
|
|
2070
|
-
"content": "Chart View"
|
|
2305
|
+
"variant": "caption"
|
|
2071
2306
|
}
|
|
2072
|
-
]
|
|
2307
|
+
],
|
|
2308
|
+
"type": "card"
|
|
2073
2309
|
},
|
|
2074
2310
|
{
|
|
2075
2311
|
"type": "card",
|
|
2076
2312
|
"children": [
|
|
2077
2313
|
{
|
|
2078
2314
|
"type": "typography",
|
|
2079
|
-
"
|
|
2080
|
-
"
|
|
2315
|
+
"content": "Graph View",
|
|
2316
|
+
"variant": "caption"
|
|
2081
2317
|
}
|
|
2082
2318
|
]
|
|
2083
2319
|
}
|
|
2084
2320
|
]
|
|
2085
2321
|
},
|
|
2086
2322
|
{
|
|
2323
|
+
"title": "Trend",
|
|
2324
|
+
"yKey": "value",
|
|
2325
|
+
"xKey": "date",
|
|
2087
2326
|
"type": "line-chart",
|
|
2088
2327
|
"data": [
|
|
2089
2328
|
{
|
|
2090
2329
|
"date": "Jan",
|
|
2091
|
-
"value": 12
|
|
2330
|
+
"value": 12.0
|
|
2092
2331
|
},
|
|
2093
2332
|
{
|
|
2094
2333
|
"date": "Feb",
|
|
2095
|
-
"value": 19
|
|
2334
|
+
"value": 19.0
|
|
2096
2335
|
},
|
|
2097
2336
|
{
|
|
2098
|
-
"
|
|
2099
|
-
"
|
|
2337
|
+
"value": 15.0,
|
|
2338
|
+
"date": "Mar"
|
|
2100
2339
|
},
|
|
2101
2340
|
{
|
|
2102
|
-
"
|
|
2103
|
-
"
|
|
2341
|
+
"value": 25.0,
|
|
2342
|
+
"date": "Apr"
|
|
2104
2343
|
},
|
|
2105
2344
|
{
|
|
2106
2345
|
"date": "May",
|
|
2107
|
-
"value": 22
|
|
2346
|
+
"value": 22.0
|
|
2108
2347
|
},
|
|
2109
2348
|
{
|
|
2110
2349
|
"date": "Jun",
|
|
2111
|
-
"value": 30
|
|
2350
|
+
"value": 30.0
|
|
2112
2351
|
}
|
|
2113
|
-
]
|
|
2114
|
-
"xKey": "date",
|
|
2115
|
-
"yKey": "value",
|
|
2116
|
-
"title": "Trend"
|
|
2352
|
+
]
|
|
2117
2353
|
},
|
|
2118
2354
|
{
|
|
2119
|
-
"type": "chart-legend",
|
|
2120
2355
|
"items": [
|
|
2121
2356
|
{
|
|
2122
2357
|
"label": "Current",
|
|
@@ -2126,28 +2361,31 @@
|
|
|
2126
2361
|
"label": "Previous",
|
|
2127
2362
|
"color": "muted"
|
|
2128
2363
|
}
|
|
2129
|
-
]
|
|
2364
|
+
],
|
|
2365
|
+
"type": "chart-legend"
|
|
2130
2366
|
},
|
|
2131
2367
|
{
|
|
2368
|
+
"width": 400.0,
|
|
2369
|
+
"height": 200.0,
|
|
2132
2370
|
"type": "graph-view",
|
|
2133
2371
|
"nodes": [
|
|
2134
2372
|
{
|
|
2373
|
+
"y": 100.0,
|
|
2374
|
+
"x": 50.0,
|
|
2135
2375
|
"id": "a",
|
|
2136
|
-
"label": "Start"
|
|
2137
|
-
"x": 50,
|
|
2138
|
-
"y": 100
|
|
2376
|
+
"label": "Start"
|
|
2139
2377
|
},
|
|
2140
2378
|
{
|
|
2141
|
-
"id": "b",
|
|
2142
2379
|
"label": "Process",
|
|
2143
|
-
"
|
|
2144
|
-
"
|
|
2380
|
+
"y": 50.0,
|
|
2381
|
+
"x": 200.0,
|
|
2382
|
+
"id": "b"
|
|
2145
2383
|
},
|
|
2146
2384
|
{
|
|
2147
2385
|
"id": "c",
|
|
2386
|
+
"x": 350.0,
|
|
2148
2387
|
"label": "End",
|
|
2149
|
-
"
|
|
2150
|
-
"y": 100
|
|
2388
|
+
"y": 100.0
|
|
2151
2389
|
}
|
|
2152
2390
|
],
|
|
2153
2391
|
"edges": [
|
|
@@ -2156,12 +2394,10 @@
|
|
|
2156
2394
|
"to": "b"
|
|
2157
2395
|
},
|
|
2158
2396
|
{
|
|
2159
|
-
"
|
|
2160
|
-
"
|
|
2397
|
+
"to": "c",
|
|
2398
|
+
"from": "b"
|
|
2161
2399
|
}
|
|
2162
|
-
]
|
|
2163
|
-
"width": 400,
|
|
2164
|
-
"height": 200
|
|
2400
|
+
]
|
|
2165
2401
|
}
|
|
2166
2402
|
]
|
|
2167
2403
|
}
|
|
@@ -2179,23 +2415,26 @@
|
|
|
2179
2415
|
"effects": [
|
|
2180
2416
|
[
|
|
2181
2417
|
"fetch",
|
|
2182
|
-
"Resource"
|
|
2418
|
+
"Resource",
|
|
2419
|
+
{
|
|
2420
|
+
"emit": {
|
|
2421
|
+
"failure": "ResourceLoadFailed",
|
|
2422
|
+
"success": "ResourceLoaded"
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2183
2425
|
],
|
|
2184
2426
|
[
|
|
2185
2427
|
"render-ui",
|
|
2186
2428
|
"main",
|
|
2187
2429
|
{
|
|
2188
|
-
"type": "game-shell",
|
|
2189
2430
|
"appName": "Strategy Game",
|
|
2190
|
-
"showTopBar": true,
|
|
2191
2431
|
"children": [
|
|
2192
2432
|
{
|
|
2193
2433
|
"type": "scaled-diagram",
|
|
2194
2434
|
"children": [
|
|
2195
2435
|
{
|
|
2196
|
-
"type": "stack",
|
|
2197
2436
|
"direction": "vertical",
|
|
2198
|
-
"
|
|
2437
|
+
"type": "stack",
|
|
2199
2438
|
"children": [
|
|
2200
2439
|
{
|
|
2201
2440
|
"type": "breadcrumb",
|
|
@@ -2211,46 +2450,43 @@
|
|
|
2211
2450
|
},
|
|
2212
2451
|
{
|
|
2213
2452
|
"type": "stack",
|
|
2214
|
-
"direction": "horizontal",
|
|
2215
|
-
"gap": "md",
|
|
2216
2453
|
"justify": "space-between",
|
|
2454
|
+
"direction": "horizontal",
|
|
2217
2455
|
"children": [
|
|
2218
2456
|
{
|
|
2219
2457
|
"type": "stack",
|
|
2220
2458
|
"direction": "horizontal",
|
|
2221
|
-
"gap": "md",
|
|
2222
2459
|
"children": [
|
|
2223
2460
|
{
|
|
2461
|
+
"size": "lg",
|
|
2224
2462
|
"type": "icon",
|
|
2225
|
-
"name": "database"
|
|
2226
|
-
"size": "lg"
|
|
2463
|
+
"name": "database"
|
|
2227
2464
|
},
|
|
2228
2465
|
{
|
|
2466
|
+
"variant": "h2",
|
|
2229
2467
|
"type": "typography",
|
|
2230
|
-
"content": "Resources"
|
|
2231
|
-
"variant": "h2"
|
|
2468
|
+
"content": "Resources"
|
|
2232
2469
|
}
|
|
2233
|
-
]
|
|
2470
|
+
],
|
|
2471
|
+
"gap": "md"
|
|
2234
2472
|
},
|
|
2235
2473
|
{
|
|
2236
|
-
"type": "button",
|
|
2237
|
-
"label": "Refresh",
|
|
2238
2474
|
"event": "REFRESH",
|
|
2239
2475
|
"variant": "secondary",
|
|
2476
|
+
"label": "Refresh",
|
|
2477
|
+
"type": "button",
|
|
2240
2478
|
"icon": "refresh-cw"
|
|
2241
2479
|
}
|
|
2242
|
-
]
|
|
2480
|
+
],
|
|
2481
|
+
"gap": "md"
|
|
2243
2482
|
},
|
|
2244
2483
|
{
|
|
2245
2484
|
"type": "divider"
|
|
2246
2485
|
},
|
|
2247
2486
|
{
|
|
2248
|
-
"type": "box",
|
|
2249
|
-
"padding": "md",
|
|
2250
2487
|
"children": [
|
|
2251
2488
|
{
|
|
2252
|
-
"
|
|
2253
|
-
"columns": 3,
|
|
2489
|
+
"columns": 3.0,
|
|
2254
2490
|
"children": [
|
|
2255
2491
|
{
|
|
2256
2492
|
"type": "stat-display",
|
|
@@ -2266,7 +2502,6 @@
|
|
|
2266
2502
|
},
|
|
2267
2503
|
{
|
|
2268
2504
|
"type": "stat-display",
|
|
2269
|
-
"label": "Food",
|
|
2270
2505
|
"value": [
|
|
2271
2506
|
"object/get",
|
|
2272
2507
|
[
|
|
@@ -2274,11 +2509,11 @@
|
|
|
2274
2509
|
"@entity"
|
|
2275
2510
|
],
|
|
2276
2511
|
"food"
|
|
2277
|
-
]
|
|
2512
|
+
],
|
|
2513
|
+
"label": "Food"
|
|
2278
2514
|
},
|
|
2279
2515
|
{
|
|
2280
2516
|
"type": "stat-display",
|
|
2281
|
-
"label": "Wood",
|
|
2282
2517
|
"value": [
|
|
2283
2518
|
"object/get",
|
|
2284
2519
|
[
|
|
@@ -2286,11 +2521,10 @@
|
|
|
2286
2521
|
"@entity"
|
|
2287
2522
|
],
|
|
2288
2523
|
"wood"
|
|
2289
|
-
]
|
|
2524
|
+
],
|
|
2525
|
+
"label": "Wood"
|
|
2290
2526
|
},
|
|
2291
2527
|
{
|
|
2292
|
-
"type": "stat-display",
|
|
2293
|
-
"label": "Iron",
|
|
2294
2528
|
"value": [
|
|
2295
2529
|
"object/get",
|
|
2296
2530
|
[
|
|
@@ -2298,27 +2532,31 @@
|
|
|
2298
2532
|
"@entity"
|
|
2299
2533
|
],
|
|
2300
2534
|
"iron"
|
|
2301
|
-
]
|
|
2535
|
+
],
|
|
2536
|
+
"label": "Iron",
|
|
2537
|
+
"type": "stat-display"
|
|
2302
2538
|
}
|
|
2303
|
-
]
|
|
2539
|
+
],
|
|
2540
|
+
"type": "simple-grid"
|
|
2304
2541
|
}
|
|
2305
|
-
]
|
|
2542
|
+
],
|
|
2543
|
+
"type": "box",
|
|
2544
|
+
"padding": "md"
|
|
2306
2545
|
},
|
|
2307
2546
|
{
|
|
2308
2547
|
"type": "divider"
|
|
2309
2548
|
},
|
|
2310
2549
|
{
|
|
2311
|
-
"
|
|
2312
|
-
"columns": 2,
|
|
2550
|
+
"columns": 2.0,
|
|
2313
2551
|
"gap": "md",
|
|
2314
2552
|
"children": [
|
|
2315
2553
|
{
|
|
2316
2554
|
"type": "card",
|
|
2317
2555
|
"children": [
|
|
2318
2556
|
{
|
|
2319
|
-
"
|
|
2557
|
+
"content": "Chart View",
|
|
2320
2558
|
"variant": "caption",
|
|
2321
|
-
"
|
|
2559
|
+
"type": "typography"
|
|
2322
2560
|
}
|
|
2323
2561
|
]
|
|
2324
2562
|
},
|
|
@@ -2326,110 +2564,115 @@
|
|
|
2326
2564
|
"type": "card",
|
|
2327
2565
|
"children": [
|
|
2328
2566
|
{
|
|
2329
|
-
"type": "typography",
|
|
2330
2567
|
"variant": "caption",
|
|
2331
|
-
"content": "Graph View"
|
|
2568
|
+
"content": "Graph View",
|
|
2569
|
+
"type": "typography"
|
|
2332
2570
|
}
|
|
2333
2571
|
]
|
|
2334
2572
|
}
|
|
2335
|
-
]
|
|
2573
|
+
],
|
|
2574
|
+
"type": "grid"
|
|
2336
2575
|
},
|
|
2337
2576
|
{
|
|
2577
|
+
"title": "Trend",
|
|
2338
2578
|
"type": "line-chart",
|
|
2579
|
+
"xKey": "date",
|
|
2580
|
+
"yKey": "value",
|
|
2339
2581
|
"data": [
|
|
2340
2582
|
{
|
|
2341
2583
|
"date": "Jan",
|
|
2342
|
-
"value": 12
|
|
2584
|
+
"value": 12.0
|
|
2343
2585
|
},
|
|
2344
2586
|
{
|
|
2345
2587
|
"date": "Feb",
|
|
2346
|
-
"value": 19
|
|
2588
|
+
"value": 19.0
|
|
2347
2589
|
},
|
|
2348
2590
|
{
|
|
2349
|
-
"
|
|
2350
|
-
"
|
|
2591
|
+
"value": 15.0,
|
|
2592
|
+
"date": "Mar"
|
|
2351
2593
|
},
|
|
2352
2594
|
{
|
|
2353
|
-
"
|
|
2354
|
-
"
|
|
2595
|
+
"value": 25.0,
|
|
2596
|
+
"date": "Apr"
|
|
2355
2597
|
},
|
|
2356
2598
|
{
|
|
2357
|
-
"
|
|
2358
|
-
"
|
|
2599
|
+
"value": 22.0,
|
|
2600
|
+
"date": "May"
|
|
2359
2601
|
},
|
|
2360
2602
|
{
|
|
2361
2603
|
"date": "Jun",
|
|
2362
|
-
"value": 30
|
|
2604
|
+
"value": 30.0
|
|
2363
2605
|
}
|
|
2364
|
-
]
|
|
2365
|
-
"xKey": "date",
|
|
2366
|
-
"yKey": "value",
|
|
2367
|
-
"title": "Trend"
|
|
2606
|
+
]
|
|
2368
2607
|
},
|
|
2369
2608
|
{
|
|
2370
|
-
"type": "chart-legend",
|
|
2371
2609
|
"items": [
|
|
2372
2610
|
{
|
|
2373
2611
|
"label": "Current",
|
|
2374
2612
|
"color": "primary"
|
|
2375
2613
|
},
|
|
2376
2614
|
{
|
|
2377
|
-
"
|
|
2378
|
-
"
|
|
2615
|
+
"color": "muted",
|
|
2616
|
+
"label": "Previous"
|
|
2379
2617
|
}
|
|
2380
|
-
]
|
|
2618
|
+
],
|
|
2619
|
+
"type": "chart-legend"
|
|
2381
2620
|
},
|
|
2382
2621
|
{
|
|
2383
|
-
"
|
|
2622
|
+
"height": 200.0,
|
|
2623
|
+
"edges": [
|
|
2624
|
+
{
|
|
2625
|
+
"to": "b",
|
|
2626
|
+
"from": "a"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
"to": "c",
|
|
2630
|
+
"from": "b"
|
|
2631
|
+
}
|
|
2632
|
+
],
|
|
2384
2633
|
"nodes": [
|
|
2385
2634
|
{
|
|
2386
2635
|
"id": "a",
|
|
2387
2636
|
"label": "Start",
|
|
2388
|
-
"x": 50,
|
|
2389
|
-
"y": 100
|
|
2637
|
+
"x": 50.0,
|
|
2638
|
+
"y": 100.0
|
|
2390
2639
|
},
|
|
2391
2640
|
{
|
|
2392
2641
|
"id": "b",
|
|
2393
2642
|
"label": "Process",
|
|
2394
|
-
"x": 200,
|
|
2395
|
-
"y": 50
|
|
2643
|
+
"x": 200.0,
|
|
2644
|
+
"y": 50.0
|
|
2396
2645
|
},
|
|
2397
2646
|
{
|
|
2398
2647
|
"id": "c",
|
|
2399
|
-
"
|
|
2400
|
-
"x": 350,
|
|
2401
|
-
"
|
|
2402
|
-
}
|
|
2403
|
-
],
|
|
2404
|
-
"edges": [
|
|
2405
|
-
{
|
|
2406
|
-
"from": "a",
|
|
2407
|
-
"to": "b"
|
|
2408
|
-
},
|
|
2409
|
-
{
|
|
2410
|
-
"from": "b",
|
|
2411
|
-
"to": "c"
|
|
2648
|
+
"y": 100.0,
|
|
2649
|
+
"x": 350.0,
|
|
2650
|
+
"label": "End"
|
|
2412
2651
|
}
|
|
2413
2652
|
],
|
|
2414
|
-
"width": 400,
|
|
2415
|
-
"
|
|
2653
|
+
"width": 400.0,
|
|
2654
|
+
"type": "graph-view"
|
|
2416
2655
|
}
|
|
2417
|
-
]
|
|
2656
|
+
],
|
|
2657
|
+
"gap": "lg"
|
|
2418
2658
|
}
|
|
2419
2659
|
]
|
|
2420
2660
|
}
|
|
2421
|
-
]
|
|
2661
|
+
],
|
|
2662
|
+
"showTopBar": true,
|
|
2663
|
+
"type": "game-shell"
|
|
2422
2664
|
}
|
|
2423
2665
|
]
|
|
2424
2666
|
]
|
|
2425
2667
|
}
|
|
2426
2668
|
]
|
|
2427
|
-
}
|
|
2669
|
+
},
|
|
2670
|
+
"scope": "collection"
|
|
2428
2671
|
}
|
|
2429
2672
|
],
|
|
2430
2673
|
"pages": [
|
|
2431
2674
|
{
|
|
2432
|
-
"name": "
|
|
2675
|
+
"name": "Resources",
|
|
2433
2676
|
"path": "/resources",
|
|
2434
2677
|
"traits": [
|
|
2435
2678
|
{
|
|
@@ -2440,4 +2683,4 @@
|
|
|
2440
2683
|
]
|
|
2441
2684
|
}
|
|
2442
2685
|
]
|
|
2443
|
-
}
|
|
2686
|
+
}
|