@almadar/std 16.78.2 → 16.78.3
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/ui/game/2d/molecules/ui-feature-renderer.orb +41 -3
- package/behaviors/registry/ui/game/2d/organisms/ui-card-battler-board.orb +66 -364
- package/behaviors/registry/ui/game/2d/organisms/ui-visual-novel-board.orb +54 -354
- package/dist/behaviors/registry/ui/game/2d/molecules/ui-feature-renderer.orb +41 -3
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-card-battler-board.orb +66 -364
- package/dist/behaviors/registry/ui/game/2d/organisms/ui-visual-novel-board.orb +54 -354
- package/dist/registry/ui/game/2d/molecules/ui-feature-renderer.orb +41 -3
- package/dist/registry/ui/game/2d/organisms/ui-card-battler-board.orb +66 -364
- package/dist/registry/ui/game/2d/organisms/ui-visual-novel-board.orb +54 -354
- package/package.json +1 -1
|
@@ -68,57 +68,6 @@
|
|
|
68
68
|
"default": "start",
|
|
69
69
|
"name": "currentNodeId",
|
|
70
70
|
"type": "string"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"name": "currentNode",
|
|
74
|
-
"properties": {
|
|
75
|
-
"backgroundKey": {
|
|
76
|
-
"name": "backgroundKey",
|
|
77
|
-
"required": false,
|
|
78
|
-
"type": "string"
|
|
79
|
-
},
|
|
80
|
-
"choices": {
|
|
81
|
-
"items": {
|
|
82
|
-
"properties": {
|
|
83
|
-
"label": {
|
|
84
|
-
"name": "label",
|
|
85
|
-
"required": true,
|
|
86
|
-
"type": "string"
|
|
87
|
-
},
|
|
88
|
-
"nextId": {
|
|
89
|
-
"name": "nextId",
|
|
90
|
-
"required": true,
|
|
91
|
-
"type": "string"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"type": "object"
|
|
95
|
-
},
|
|
96
|
-
"name": "choices",
|
|
97
|
-
"required": false,
|
|
98
|
-
"type": "array"
|
|
99
|
-
},
|
|
100
|
-
"id": {
|
|
101
|
-
"name": "id",
|
|
102
|
-
"required": true,
|
|
103
|
-
"type": "string"
|
|
104
|
-
},
|
|
105
|
-
"portraitKey": {
|
|
106
|
-
"name": "portraitKey",
|
|
107
|
-
"required": false,
|
|
108
|
-
"type": "string"
|
|
109
|
-
},
|
|
110
|
-
"speaker": {
|
|
111
|
-
"name": "speaker",
|
|
112
|
-
"required": true,
|
|
113
|
-
"type": "string"
|
|
114
|
-
},
|
|
115
|
-
"text": {
|
|
116
|
-
"name": "text",
|
|
117
|
-
"required": true,
|
|
118
|
-
"type": "string"
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
"type": "object"
|
|
122
71
|
}
|
|
123
72
|
],
|
|
124
73
|
"name": "VisualNovelBoardItem",
|
|
@@ -462,19 +411,25 @@
|
|
|
462
411
|
},
|
|
463
412
|
"emits": [
|
|
464
413
|
{
|
|
465
|
-
"description": "Emits UI:{
|
|
414
|
+
"description": "Emits UI:{chooseEvent} with {choiceIndex} when the player selects a branching choice",
|
|
466
415
|
"event": "CHOOSE",
|
|
467
416
|
"payloadSchema": [
|
|
468
417
|
{
|
|
469
|
-
"name": "
|
|
470
|
-
"
|
|
418
|
+
"name": "choiceIndex",
|
|
419
|
+
"required": true,
|
|
420
|
+
"type": "number"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "nextId",
|
|
424
|
+
"required": true,
|
|
425
|
+
"type": "string"
|
|
471
426
|
}
|
|
472
427
|
],
|
|
473
428
|
"scope": "external",
|
|
474
429
|
"tier": "essential"
|
|
475
430
|
},
|
|
476
431
|
{
|
|
477
|
-
"description": "Emits UI:{advanceEvent} with {} to advance to the
|
|
432
|
+
"description": "Emits UI:{advanceEvent} with {} to advance to the next node",
|
|
478
433
|
"event": "ADVANCE",
|
|
479
434
|
"payloadSchema": [
|
|
480
435
|
{
|
|
@@ -500,7 +455,6 @@
|
|
|
500
455
|
],
|
|
501
456
|
"entityContract": {
|
|
502
457
|
"provides": [
|
|
503
|
-
"currentNode",
|
|
504
458
|
"currentNodeId",
|
|
505
459
|
"nodes"
|
|
506
460
|
],
|
|
@@ -517,19 +471,25 @@
|
|
|
517
471
|
"name": "Initialize"
|
|
518
472
|
},
|
|
519
473
|
{
|
|
520
|
-
"description": "Emits UI:{
|
|
474
|
+
"description": "Emits UI:{chooseEvent} with {choiceIndex} when the player selects a branching choice",
|
|
521
475
|
"key": "CHOOSE",
|
|
522
476
|
"name": "Choose",
|
|
523
477
|
"payloadSchema": [
|
|
524
478
|
{
|
|
525
|
-
"name": "
|
|
526
|
-
"
|
|
479
|
+
"name": "choiceIndex",
|
|
480
|
+
"required": true,
|
|
481
|
+
"type": "number"
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
"name": "nextId",
|
|
485
|
+
"required": true,
|
|
486
|
+
"type": "string"
|
|
527
487
|
}
|
|
528
488
|
],
|
|
529
489
|
"tier": "essential"
|
|
530
490
|
},
|
|
531
491
|
{
|
|
532
|
-
"description": "Emits UI:{advanceEvent} with {} to advance to the
|
|
492
|
+
"description": "Emits UI:{advanceEvent} with {} to advance to the next node",
|
|
533
493
|
"key": "ADVANCE",
|
|
534
494
|
"name": "Advance",
|
|
535
495
|
"payloadSchema": [
|
|
@@ -572,61 +532,18 @@
|
|
|
572
532
|
"@entity.currentNodeId",
|
|
573
533
|
"@config.startNodeId"
|
|
574
534
|
],
|
|
575
|
-
[
|
|
576
|
-
"set",
|
|
577
|
-
"@entity.currentNode",
|
|
578
|
-
[
|
|
579
|
-
"array/first",
|
|
580
|
-
[
|
|
581
|
-
"array/filter",
|
|
582
|
-
"@entity.nodes",
|
|
583
|
-
[
|
|
584
|
-
"fn",
|
|
585
|
-
"n",
|
|
586
|
-
[
|
|
587
|
-
"==",
|
|
588
|
-
[
|
|
589
|
-
"object/get",
|
|
590
|
-
"@n",
|
|
591
|
-
"id"
|
|
592
|
-
],
|
|
593
|
-
"@entity.currentNodeId"
|
|
594
|
-
]
|
|
595
|
-
]
|
|
596
|
-
]
|
|
597
|
-
]
|
|
598
|
-
],
|
|
599
535
|
[
|
|
600
536
|
"render-ui",
|
|
601
537
|
"main",
|
|
602
538
|
{
|
|
603
|
-
"
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
],
|
|
612
|
-
"text": [
|
|
613
|
-
"object/get",
|
|
614
|
-
"@entity.currentNode",
|
|
615
|
-
"text"
|
|
616
|
-
],
|
|
617
|
-
"type": "dialogue-bubble"
|
|
618
|
-
}
|
|
619
|
-
],
|
|
620
|
-
"hud": {
|
|
621
|
-
"stats": [
|
|
622
|
-
{
|
|
623
|
-
"label": "Chapter",
|
|
624
|
-
"value": "@entity.currentNodeId"
|
|
625
|
-
}
|
|
626
|
-
],
|
|
627
|
-
"type": "game-hud"
|
|
628
|
-
},
|
|
629
|
-
"type": "game-shell"
|
|
539
|
+
"advanceEvent": "ADVANCE",
|
|
540
|
+
"chooseEvent": "CHOOSE",
|
|
541
|
+
"currentNodeId": "@entity.currentNodeId",
|
|
542
|
+
"nodes": "@entity.nodes",
|
|
543
|
+
"portraitScale": "@config.portraitScale",
|
|
544
|
+
"restartEvent": "RESTART",
|
|
545
|
+
"type": "visual-novel-board",
|
|
546
|
+
"typewriterSpeed": "@config.typewriterSpeed"
|
|
630
547
|
}
|
|
631
548
|
]
|
|
632
549
|
],
|
|
@@ -639,220 +556,46 @@
|
|
|
639
556
|
[
|
|
640
557
|
"set",
|
|
641
558
|
"@entity.currentNodeId",
|
|
642
|
-
|
|
643
|
-
"object/get",
|
|
644
|
-
"@payload.choice",
|
|
645
|
-
"next"
|
|
646
|
-
]
|
|
647
|
-
],
|
|
648
|
-
[
|
|
649
|
-
"set",
|
|
650
|
-
"@entity.currentNode",
|
|
651
|
-
[
|
|
652
|
-
"array/first",
|
|
653
|
-
[
|
|
654
|
-
"array/filter",
|
|
655
|
-
"@entity.nodes",
|
|
656
|
-
[
|
|
657
|
-
"fn",
|
|
658
|
-
"n",
|
|
659
|
-
[
|
|
660
|
-
"==",
|
|
661
|
-
[
|
|
662
|
-
"object/get",
|
|
663
|
-
"@n",
|
|
664
|
-
"id"
|
|
665
|
-
],
|
|
666
|
-
"@entity.currentNodeId"
|
|
667
|
-
]
|
|
668
|
-
]
|
|
669
|
-
]
|
|
670
|
-
]
|
|
559
|
+
"@payload.nextId"
|
|
671
560
|
],
|
|
672
561
|
[
|
|
673
562
|
"render-ui",
|
|
674
563
|
"main",
|
|
675
564
|
{
|
|
676
|
-
"
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
],
|
|
685
|
-
"text": [
|
|
686
|
-
"object/get",
|
|
687
|
-
"@entity.currentNode",
|
|
688
|
-
"text"
|
|
689
|
-
],
|
|
690
|
-
"type": "dialogue-bubble"
|
|
691
|
-
}
|
|
692
|
-
],
|
|
693
|
-
"hud": {
|
|
694
|
-
"stats": [
|
|
695
|
-
{
|
|
696
|
-
"label": "Chapter",
|
|
697
|
-
"value": "@entity.currentNodeId"
|
|
698
|
-
}
|
|
699
|
-
],
|
|
700
|
-
"type": "game-hud"
|
|
701
|
-
},
|
|
702
|
-
"type": "game-shell"
|
|
565
|
+
"advanceEvent": "ADVANCE",
|
|
566
|
+
"chooseEvent": "CHOOSE",
|
|
567
|
+
"currentNodeId": "@entity.currentNodeId",
|
|
568
|
+
"nodes": "@entity.nodes",
|
|
569
|
+
"portraitScale": "@config.portraitScale",
|
|
570
|
+
"restartEvent": "RESTART",
|
|
571
|
+
"type": "visual-novel-board",
|
|
572
|
+
"typewriterSpeed": "@config.typewriterSpeed"
|
|
703
573
|
}
|
|
704
574
|
]
|
|
705
575
|
],
|
|
706
576
|
"event": "CHOOSE",
|
|
707
577
|
"from": "playing",
|
|
708
|
-
"guard": [
|
|
709
|
-
"and",
|
|
710
|
-
[
|
|
711
|
-
"!=",
|
|
712
|
-
"@payload.choice",
|
|
713
|
-
null
|
|
714
|
-
],
|
|
715
|
-
[
|
|
716
|
-
"!=",
|
|
717
|
-
[
|
|
718
|
-
"object/get",
|
|
719
|
-
"@payload.choice",
|
|
720
|
-
"next"
|
|
721
|
-
],
|
|
722
|
-
""
|
|
723
|
-
]
|
|
724
|
-
],
|
|
725
578
|
"to": "playing"
|
|
726
579
|
},
|
|
727
580
|
{
|
|
728
581
|
"effects": [
|
|
729
|
-
[
|
|
730
|
-
"set",
|
|
731
|
-
"@entity.currentNodeId",
|
|
732
|
-
[
|
|
733
|
-
"object/get",
|
|
734
|
-
[
|
|
735
|
-
"array/nth",
|
|
736
|
-
[
|
|
737
|
-
"object/get",
|
|
738
|
-
[
|
|
739
|
-
"array/first",
|
|
740
|
-
[
|
|
741
|
-
"array/filter",
|
|
742
|
-
"@entity.nodes",
|
|
743
|
-
[
|
|
744
|
-
"fn",
|
|
745
|
-
"n",
|
|
746
|
-
[
|
|
747
|
-
"==",
|
|
748
|
-
[
|
|
749
|
-
"object/get",
|
|
750
|
-
"@n",
|
|
751
|
-
"id"
|
|
752
|
-
],
|
|
753
|
-
"@entity.currentNodeId"
|
|
754
|
-
]
|
|
755
|
-
]
|
|
756
|
-
]
|
|
757
|
-
],
|
|
758
|
-
"choices"
|
|
759
|
-
],
|
|
760
|
-
0.0
|
|
761
|
-
],
|
|
762
|
-
"nextId"
|
|
763
|
-
]
|
|
764
|
-
],
|
|
765
|
-
[
|
|
766
|
-
"set",
|
|
767
|
-
"@entity.currentNode",
|
|
768
|
-
[
|
|
769
|
-
"array/first",
|
|
770
|
-
[
|
|
771
|
-
"array/filter",
|
|
772
|
-
"@entity.nodes",
|
|
773
|
-
[
|
|
774
|
-
"fn",
|
|
775
|
-
"n",
|
|
776
|
-
[
|
|
777
|
-
"==",
|
|
778
|
-
[
|
|
779
|
-
"object/get",
|
|
780
|
-
"@n",
|
|
781
|
-
"id"
|
|
782
|
-
],
|
|
783
|
-
"@entity.currentNodeId"
|
|
784
|
-
]
|
|
785
|
-
]
|
|
786
|
-
]
|
|
787
|
-
]
|
|
788
|
-
],
|
|
789
582
|
[
|
|
790
583
|
"render-ui",
|
|
791
584
|
"main",
|
|
792
585
|
{
|
|
793
|
-
"
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
],
|
|
802
|
-
"text": [
|
|
803
|
-
"object/get",
|
|
804
|
-
"@entity.currentNode",
|
|
805
|
-
"text"
|
|
806
|
-
],
|
|
807
|
-
"type": "dialogue-bubble"
|
|
808
|
-
}
|
|
809
|
-
],
|
|
810
|
-
"hud": {
|
|
811
|
-
"stats": [
|
|
812
|
-
{
|
|
813
|
-
"label": "Chapter",
|
|
814
|
-
"value": "@entity.currentNodeId"
|
|
815
|
-
}
|
|
816
|
-
],
|
|
817
|
-
"type": "game-hud"
|
|
818
|
-
},
|
|
819
|
-
"type": "game-shell"
|
|
586
|
+
"advanceEvent": "ADVANCE",
|
|
587
|
+
"chooseEvent": "CHOOSE",
|
|
588
|
+
"currentNodeId": "@entity.currentNodeId",
|
|
589
|
+
"nodes": "@entity.nodes",
|
|
590
|
+
"portraitScale": "@config.portraitScale",
|
|
591
|
+
"restartEvent": "RESTART",
|
|
592
|
+
"type": "visual-novel-board",
|
|
593
|
+
"typewriterSpeed": "@config.typewriterSpeed"
|
|
820
594
|
}
|
|
821
595
|
]
|
|
822
596
|
],
|
|
823
597
|
"event": "ADVANCE",
|
|
824
598
|
"from": "playing",
|
|
825
|
-
"guard": [
|
|
826
|
-
">",
|
|
827
|
-
[
|
|
828
|
-
"array/len",
|
|
829
|
-
[
|
|
830
|
-
"object/get",
|
|
831
|
-
[
|
|
832
|
-
"array/first",
|
|
833
|
-
[
|
|
834
|
-
"array/filter",
|
|
835
|
-
"@entity.nodes",
|
|
836
|
-
[
|
|
837
|
-
"fn",
|
|
838
|
-
"n",
|
|
839
|
-
[
|
|
840
|
-
"==",
|
|
841
|
-
[
|
|
842
|
-
"object/get",
|
|
843
|
-
"@n",
|
|
844
|
-
"id"
|
|
845
|
-
],
|
|
846
|
-
"@entity.currentNodeId"
|
|
847
|
-
]
|
|
848
|
-
]
|
|
849
|
-
]
|
|
850
|
-
],
|
|
851
|
-
"choices"
|
|
852
|
-
]
|
|
853
|
-
],
|
|
854
|
-
0.0
|
|
855
|
-
],
|
|
856
599
|
"to": "playing"
|
|
857
600
|
},
|
|
858
601
|
{
|
|
@@ -862,61 +605,18 @@
|
|
|
862
605
|
"@entity.currentNodeId",
|
|
863
606
|
"@config.startNodeId"
|
|
864
607
|
],
|
|
865
|
-
[
|
|
866
|
-
"set",
|
|
867
|
-
"@entity.currentNode",
|
|
868
|
-
[
|
|
869
|
-
"array/first",
|
|
870
|
-
[
|
|
871
|
-
"array/filter",
|
|
872
|
-
"@entity.nodes",
|
|
873
|
-
[
|
|
874
|
-
"fn",
|
|
875
|
-
"n",
|
|
876
|
-
[
|
|
877
|
-
"==",
|
|
878
|
-
[
|
|
879
|
-
"object/get",
|
|
880
|
-
"@n",
|
|
881
|
-
"id"
|
|
882
|
-
],
|
|
883
|
-
"@entity.currentNodeId"
|
|
884
|
-
]
|
|
885
|
-
]
|
|
886
|
-
]
|
|
887
|
-
]
|
|
888
|
-
],
|
|
889
608
|
[
|
|
890
609
|
"render-ui",
|
|
891
610
|
"main",
|
|
892
611
|
{
|
|
893
|
-
"
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
],
|
|
902
|
-
"text": [
|
|
903
|
-
"object/get",
|
|
904
|
-
"@entity.currentNode",
|
|
905
|
-
"text"
|
|
906
|
-
],
|
|
907
|
-
"type": "dialogue-bubble"
|
|
908
|
-
}
|
|
909
|
-
],
|
|
910
|
-
"hud": {
|
|
911
|
-
"stats": [
|
|
912
|
-
{
|
|
913
|
-
"label": "Chapter",
|
|
914
|
-
"value": "@entity.currentNodeId"
|
|
915
|
-
}
|
|
916
|
-
],
|
|
917
|
-
"type": "game-hud"
|
|
918
|
-
},
|
|
919
|
-
"type": "game-shell"
|
|
612
|
+
"advanceEvent": "ADVANCE",
|
|
613
|
+
"chooseEvent": "CHOOSE",
|
|
614
|
+
"currentNodeId": "@entity.currentNodeId",
|
|
615
|
+
"nodes": "@entity.nodes",
|
|
616
|
+
"portraitScale": "@config.portraitScale",
|
|
617
|
+
"restartEvent": "RESTART",
|
|
618
|
+
"type": "visual-novel-board",
|
|
619
|
+
"typewriterSpeed": "@config.typewriterSpeed"
|
|
920
620
|
}
|
|
921
621
|
]
|
|
922
622
|
],
|
|
@@ -931,4 +631,4 @@
|
|
|
931
631
|
}
|
|
932
632
|
],
|
|
933
633
|
"version": "1.0.0"
|
|
934
|
-
}
|
|
634
|
+
}
|
|
@@ -239,6 +239,16 @@
|
|
|
239
239
|
"description": "Called when feature is clicked",
|
|
240
240
|
"event": "FEATURE_CLICK",
|
|
241
241
|
"payloadSchema": [
|
|
242
|
+
{
|
|
243
|
+
"name": "x",
|
|
244
|
+
"required": true,
|
|
245
|
+
"type": "number"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"name": "y",
|
|
249
|
+
"required": true,
|
|
250
|
+
"type": "number"
|
|
251
|
+
},
|
|
242
252
|
{
|
|
243
253
|
"name": "feature",
|
|
244
254
|
"properties": [
|
|
@@ -284,6 +294,16 @@
|
|
|
284
294
|
"description": "Called when feature is hovered",
|
|
285
295
|
"event": "FEATURE_HOVER",
|
|
286
296
|
"payloadSchema": [
|
|
297
|
+
{
|
|
298
|
+
"name": "x",
|
|
299
|
+
"required": true,
|
|
300
|
+
"type": "number"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"name": "y",
|
|
304
|
+
"required": true,
|
|
305
|
+
"type": "number"
|
|
306
|
+
},
|
|
287
307
|
{
|
|
288
308
|
"name": "feature",
|
|
289
309
|
"properties": [
|
|
@@ -345,6 +365,16 @@
|
|
|
345
365
|
"key": "FEATURE_CLICK",
|
|
346
366
|
"name": "Feature Click",
|
|
347
367
|
"payloadSchema": [
|
|
368
|
+
{
|
|
369
|
+
"name": "x",
|
|
370
|
+
"required": true,
|
|
371
|
+
"type": "number"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "y",
|
|
375
|
+
"required": true,
|
|
376
|
+
"type": "number"
|
|
377
|
+
},
|
|
348
378
|
{
|
|
349
379
|
"name": "feature",
|
|
350
380
|
"properties": [
|
|
@@ -390,6 +420,16 @@
|
|
|
390
420
|
"key": "FEATURE_HOVER",
|
|
391
421
|
"name": "Feature Hover",
|
|
392
422
|
"payloadSchema": [
|
|
423
|
+
{
|
|
424
|
+
"name": "x",
|
|
425
|
+
"required": true,
|
|
426
|
+
"type": "number"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "y",
|
|
430
|
+
"required": true,
|
|
431
|
+
"type": "number"
|
|
432
|
+
},
|
|
393
433
|
{
|
|
394
434
|
"name": "feature",
|
|
395
435
|
"properties": [
|
|
@@ -445,8 +485,6 @@
|
|
|
445
485
|
"main",
|
|
446
486
|
{
|
|
447
487
|
"features": "@config.features",
|
|
448
|
-
"onTileClick": "FEATURE_CLICK",
|
|
449
|
-
"onTileHover": "FEATURE_HOVER",
|
|
450
488
|
"projection": "isometric",
|
|
451
489
|
"scale": "@config.cellSize",
|
|
452
490
|
"tileClickEvent": "FEATURE_CLICK",
|
|
@@ -466,4 +504,4 @@
|
|
|
466
504
|
}
|
|
467
505
|
],
|
|
468
506
|
"version": "1.0.0"
|
|
469
|
-
}
|
|
507
|
+
}
|