@almadar/std 16.89.0 → 16.90.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.
@@ -2669,6 +2669,54 @@
2669
2669
  "scope": "external",
2670
2670
  "tier": "domain"
2671
2671
  },
2672
+ {
2673
+ "description": "Move-left intent (keyboard keyMap)",
2674
+ "event": "MOVE_LEFT",
2675
+ "payloadSchema": [
2676
+ {
2677
+ "name": "id",
2678
+ "type": "string"
2679
+ }
2680
+ ],
2681
+ "scope": "external",
2682
+ "tier": "domain"
2683
+ },
2684
+ {
2685
+ "description": "Move-right intent (keyboard keyMap)",
2686
+ "event": "MOVE_RIGHT",
2687
+ "payloadSchema": [
2688
+ {
2689
+ "name": "id",
2690
+ "type": "string"
2691
+ }
2692
+ ],
2693
+ "scope": "external",
2694
+ "tier": "domain"
2695
+ },
2696
+ {
2697
+ "description": "Move-up intent (keyboard keyMap)",
2698
+ "event": "MOVE_UP",
2699
+ "payloadSchema": [
2700
+ {
2701
+ "name": "id",
2702
+ "type": "string"
2703
+ }
2704
+ ],
2705
+ "scope": "external",
2706
+ "tier": "domain"
2707
+ },
2708
+ {
2709
+ "description": "Move-down intent (keyboard keyMap)",
2710
+ "event": "MOVE_DOWN",
2711
+ "payloadSchema": [
2712
+ {
2713
+ "name": "id",
2714
+ "type": "string"
2715
+ }
2716
+ ],
2717
+ "scope": "external",
2718
+ "tier": "domain"
2719
+ },
2672
2720
  {
2673
2721
  "description": "Player fires at an enemy unit",
2674
2722
  "event": "SHOOT",
@@ -2800,6 +2848,54 @@
2800
2848
  ],
2801
2849
  "tier": "domain"
2802
2850
  },
2851
+ {
2852
+ "description": "Move-left intent (keyboard keyMap)",
2853
+ "key": "MOVE_LEFT",
2854
+ "name": "Move Left",
2855
+ "payloadSchema": [
2856
+ {
2857
+ "name": "id",
2858
+ "type": "string"
2859
+ }
2860
+ ],
2861
+ "tier": "domain"
2862
+ },
2863
+ {
2864
+ "description": "Move-right intent (keyboard keyMap)",
2865
+ "key": "MOVE_RIGHT",
2866
+ "name": "Move Right",
2867
+ "payloadSchema": [
2868
+ {
2869
+ "name": "id",
2870
+ "type": "string"
2871
+ }
2872
+ ],
2873
+ "tier": "domain"
2874
+ },
2875
+ {
2876
+ "description": "Move-up intent (keyboard keyMap)",
2877
+ "key": "MOVE_UP",
2878
+ "name": "Move Up",
2879
+ "payloadSchema": [
2880
+ {
2881
+ "name": "id",
2882
+ "type": "string"
2883
+ }
2884
+ ],
2885
+ "tier": "domain"
2886
+ },
2887
+ {
2888
+ "description": "Move-down intent (keyboard keyMap)",
2889
+ "key": "MOVE_DOWN",
2890
+ "name": "Move Down",
2891
+ "payloadSchema": [
2892
+ {
2893
+ "name": "id",
2894
+ "type": "string"
2895
+ }
2896
+ ],
2897
+ "tier": "domain"
2898
+ },
2803
2899
  {
2804
2900
  "description": "Player fires at an enemy unit",
2805
2901
  "key": "SHOOT",
@@ -2948,6 +3044,16 @@
2948
3044
  "assetManifest": "@config.assetManifest",
2949
3045
  "effects": "@entity.effects",
2950
3046
  "features": "@config.features",
3047
+ "keyMap": {
3048
+ "ArrowDown": "MOVE_DOWN",
3049
+ "ArrowLeft": "MOVE_LEFT",
3050
+ "ArrowRight": "MOVE_RIGHT",
3051
+ "ArrowUp": "MOVE_UP",
3052
+ "KeyA": "MOVE_LEFT",
3053
+ "KeyD": "MOVE_RIGHT",
3054
+ "KeyS": "MOVE_DOWN",
3055
+ "KeyW": "MOVE_UP"
3056
+ },
2951
3057
  "projection": "flat",
2952
3058
  "scale": "@config.scale",
2953
3059
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3124,6 +3230,16 @@
3124
3230
  "assetManifest": "@config.assetManifest",
3125
3231
  "effects": "@entity.effects",
3126
3232
  "features": "@config.features",
3233
+ "keyMap": {
3234
+ "ArrowDown": "MOVE_DOWN",
3235
+ "ArrowLeft": "MOVE_LEFT",
3236
+ "ArrowRight": "MOVE_RIGHT",
3237
+ "ArrowUp": "MOVE_UP",
3238
+ "KeyA": "MOVE_LEFT",
3239
+ "KeyD": "MOVE_RIGHT",
3240
+ "KeyS": "MOVE_DOWN",
3241
+ "KeyW": "MOVE_UP"
3242
+ },
3127
3243
  "projection": "flat",
3128
3244
  "scale": "@config.scale",
3129
3245
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3275,6 +3391,16 @@
3275
3391
  "assetManifest": "@config.assetManifest",
3276
3392
  "effects": "@entity.effects",
3277
3393
  "features": "@config.features",
3394
+ "keyMap": {
3395
+ "ArrowDown": "MOVE_DOWN",
3396
+ "ArrowLeft": "MOVE_LEFT",
3397
+ "ArrowRight": "MOVE_RIGHT",
3398
+ "ArrowUp": "MOVE_UP",
3399
+ "KeyA": "MOVE_LEFT",
3400
+ "KeyD": "MOVE_RIGHT",
3401
+ "KeyS": "MOVE_DOWN",
3402
+ "KeyW": "MOVE_UP"
3403
+ },
3278
3404
  "projection": "flat",
3279
3405
  "scale": "@config.scale",
3280
3406
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3426,6 +3552,16 @@
3426
3552
  "assetManifest": "@config.assetManifest",
3427
3553
  "effects": "@entity.effects",
3428
3554
  "features": "@config.features",
3555
+ "keyMap": {
3556
+ "ArrowDown": "MOVE_DOWN",
3557
+ "ArrowLeft": "MOVE_LEFT",
3558
+ "ArrowRight": "MOVE_RIGHT",
3559
+ "ArrowUp": "MOVE_UP",
3560
+ "KeyA": "MOVE_LEFT",
3561
+ "KeyD": "MOVE_RIGHT",
3562
+ "KeyS": "MOVE_DOWN",
3563
+ "KeyW": "MOVE_UP"
3564
+ },
3429
3565
  "projection": "flat",
3430
3566
  "scale": "@config.scale",
3431
3567
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3544,6 +3680,186 @@
3544
3680
  "from": "playing",
3545
3681
  "to": "playing"
3546
3682
  },
3683
+ {
3684
+ "effects": [
3685
+ [
3686
+ "set",
3687
+ "@entity.units",
3688
+ [
3689
+ "array/map",
3690
+ "@entity.units",
3691
+ [
3692
+ "fn",
3693
+ "u",
3694
+ [
3695
+ "if",
3696
+ [
3697
+ "==",
3698
+ "@u.team",
3699
+ "player"
3700
+ ],
3701
+ [
3702
+ "object/merge",
3703
+ "@u",
3704
+ {
3705
+ "animation": "walk",
3706
+ "position": {
3707
+ "x": [
3708
+ "math/max",
3709
+ 0.0,
3710
+ [
3711
+ "-",
3712
+ "@u.position.x",
3713
+ 1.0
3714
+ ]
3715
+ ],
3716
+ "y": "@u.position.y"
3717
+ }
3718
+ }
3719
+ ],
3720
+ "@u"
3721
+ ]
3722
+ ]
3723
+ ]
3724
+ ]
3725
+ ],
3726
+ "event": "MOVE_LEFT",
3727
+ "from": "playing",
3728
+ "to": "playing"
3729
+ },
3730
+ {
3731
+ "effects": [
3732
+ [
3733
+ "set",
3734
+ "@entity.units",
3735
+ [
3736
+ "array/map",
3737
+ "@entity.units",
3738
+ [
3739
+ "fn",
3740
+ "u",
3741
+ [
3742
+ "if",
3743
+ [
3744
+ "==",
3745
+ "@u.team",
3746
+ "player"
3747
+ ],
3748
+ [
3749
+ "object/merge",
3750
+ "@u",
3751
+ {
3752
+ "animation": "walk",
3753
+ "position": {
3754
+ "x": [
3755
+ "+",
3756
+ "@u.position.x",
3757
+ 1.0
3758
+ ],
3759
+ "y": "@u.position.y"
3760
+ }
3761
+ }
3762
+ ],
3763
+ "@u"
3764
+ ]
3765
+ ]
3766
+ ]
3767
+ ]
3768
+ ],
3769
+ "event": "MOVE_RIGHT",
3770
+ "from": "playing",
3771
+ "to": "playing"
3772
+ },
3773
+ {
3774
+ "effects": [
3775
+ [
3776
+ "set",
3777
+ "@entity.units",
3778
+ [
3779
+ "array/map",
3780
+ "@entity.units",
3781
+ [
3782
+ "fn",
3783
+ "u",
3784
+ [
3785
+ "if",
3786
+ [
3787
+ "==",
3788
+ "@u.team",
3789
+ "player"
3790
+ ],
3791
+ [
3792
+ "object/merge",
3793
+ "@u",
3794
+ {
3795
+ "animation": "walk",
3796
+ "position": {
3797
+ "x": "@u.position.x",
3798
+ "y": [
3799
+ "math/max",
3800
+ 0.0,
3801
+ [
3802
+ "-",
3803
+ "@u.position.y",
3804
+ 1.0
3805
+ ]
3806
+ ]
3807
+ }
3808
+ }
3809
+ ],
3810
+ "@u"
3811
+ ]
3812
+ ]
3813
+ ]
3814
+ ]
3815
+ ],
3816
+ "event": "MOVE_UP",
3817
+ "from": "playing",
3818
+ "to": "playing"
3819
+ },
3820
+ {
3821
+ "effects": [
3822
+ [
3823
+ "set",
3824
+ "@entity.units",
3825
+ [
3826
+ "array/map",
3827
+ "@entity.units",
3828
+ [
3829
+ "fn",
3830
+ "u",
3831
+ [
3832
+ "if",
3833
+ [
3834
+ "==",
3835
+ "@u.team",
3836
+ "player"
3837
+ ],
3838
+ [
3839
+ "object/merge",
3840
+ "@u",
3841
+ {
3842
+ "animation": "walk",
3843
+ "position": {
3844
+ "x": "@u.position.x",
3845
+ "y": [
3846
+ "+",
3847
+ "@u.position.y",
3848
+ 1.0
3849
+ ]
3850
+ }
3851
+ }
3852
+ ],
3853
+ "@u"
3854
+ ]
3855
+ ]
3856
+ ]
3857
+ ]
3858
+ ],
3859
+ "event": "MOVE_DOWN",
3860
+ "from": "playing",
3861
+ "to": "playing"
3862
+ },
3547
3863
  {
3548
3864
  "effects": [
3549
3865
  [
@@ -3760,6 +4076,16 @@
3760
4076
  "assetManifest": "@config.assetManifest",
3761
4077
  "effects": "@entity.effects",
3762
4078
  "features": "@config.features",
4079
+ "keyMap": {
4080
+ "ArrowDown": "MOVE_DOWN",
4081
+ "ArrowLeft": "MOVE_LEFT",
4082
+ "ArrowRight": "MOVE_RIGHT",
4083
+ "ArrowUp": "MOVE_UP",
4084
+ "KeyA": "MOVE_LEFT",
4085
+ "KeyD": "MOVE_RIGHT",
4086
+ "KeyS": "MOVE_DOWN",
4087
+ "KeyW": "MOVE_UP"
4088
+ },
3763
4089
  "projection": "flat",
3764
4090
  "scale": "@config.scale",
3765
4091
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3990,6 +4316,16 @@
3990
4316
  "assetManifest": "@config.assetManifest",
3991
4317
  "effects": "@entity.effects",
3992
4318
  "features": "@config.features",
4319
+ "keyMap": {
4320
+ "ArrowDown": "MOVE_DOWN",
4321
+ "ArrowLeft": "MOVE_LEFT",
4322
+ "ArrowRight": "MOVE_RIGHT",
4323
+ "ArrowUp": "MOVE_UP",
4324
+ "KeyA": "MOVE_LEFT",
4325
+ "KeyD": "MOVE_RIGHT",
4326
+ "KeyS": "MOVE_DOWN",
4327
+ "KeyW": "MOVE_UP"
4328
+ },
3993
4329
  "projection": "flat",
3994
4330
  "scale": "@config.scale",
3995
4331
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4136,6 +4472,16 @@
4136
4472
  "assetManifest": "@config.assetManifest",
4137
4473
  "effects": "@entity.effects",
4138
4474
  "features": "@config.features",
4475
+ "keyMap": {
4476
+ "ArrowDown": "MOVE_DOWN",
4477
+ "ArrowLeft": "MOVE_LEFT",
4478
+ "ArrowRight": "MOVE_RIGHT",
4479
+ "ArrowUp": "MOVE_UP",
4480
+ "KeyA": "MOVE_LEFT",
4481
+ "KeyD": "MOVE_RIGHT",
4482
+ "KeyS": "MOVE_DOWN",
4483
+ "KeyW": "MOVE_UP"
4484
+ },
4139
4485
  "projection": "flat",
4140
4486
  "scale": "@config.scale",
4141
4487
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4305,6 +4651,16 @@
4305
4651
  "assetManifest": "@config.assetManifest",
4306
4652
  "effects": "@entity.effects",
4307
4653
  "features": "@config.features",
4654
+ "keyMap": {
4655
+ "ArrowDown": "MOVE_DOWN",
4656
+ "ArrowLeft": "MOVE_LEFT",
4657
+ "ArrowRight": "MOVE_RIGHT",
4658
+ "ArrowUp": "MOVE_UP",
4659
+ "KeyA": "MOVE_LEFT",
4660
+ "KeyD": "MOVE_RIGHT",
4661
+ "KeyS": "MOVE_DOWN",
4662
+ "KeyW": "MOVE_UP"
4663
+ },
4308
4664
  "projection": "flat",
4309
4665
  "scale": "@config.scale",
4310
4666
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4486,6 +4842,16 @@
4486
4842
  "assetManifest": "@config.assetManifest",
4487
4843
  "effects": "@entity.effects",
4488
4844
  "features": "@config.features",
4845
+ "keyMap": {
4846
+ "ArrowDown": "MOVE_DOWN",
4847
+ "ArrowLeft": "MOVE_LEFT",
4848
+ "ArrowRight": "MOVE_RIGHT",
4849
+ "ArrowUp": "MOVE_UP",
4850
+ "KeyA": "MOVE_LEFT",
4851
+ "KeyD": "MOVE_RIGHT",
4852
+ "KeyS": "MOVE_DOWN",
4853
+ "KeyW": "MOVE_UP"
4854
+ },
4489
4855
  "projection": "flat",
4490
4856
  "scale": "@config.scale",
4491
4857
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4662,6 +5028,16 @@
4662
5028
  "assetManifest": "@config.assetManifest",
4663
5029
  "effects": "@entity.effects",
4664
5030
  "features": "@config.features",
5031
+ "keyMap": {
5032
+ "ArrowDown": "MOVE_DOWN",
5033
+ "ArrowLeft": "MOVE_LEFT",
5034
+ "ArrowRight": "MOVE_RIGHT",
5035
+ "ArrowUp": "MOVE_UP",
5036
+ "KeyA": "MOVE_LEFT",
5037
+ "KeyD": "MOVE_RIGHT",
5038
+ "KeyS": "MOVE_DOWN",
5039
+ "KeyW": "MOVE_UP"
5040
+ },
4665
5041
  "projection": "flat",
4666
5042
  "scale": "@config.scale",
4667
5043
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4806,6 +5182,16 @@
4806
5182
  "assetManifest": "@config.assetManifest",
4807
5183
  "effects": "@entity.effects",
4808
5184
  "features": "@config.features",
5185
+ "keyMap": {
5186
+ "ArrowDown": "MOVE_DOWN",
5187
+ "ArrowLeft": "MOVE_LEFT",
5188
+ "ArrowRight": "MOVE_RIGHT",
5189
+ "ArrowUp": "MOVE_UP",
5190
+ "KeyA": "MOVE_LEFT",
5191
+ "KeyD": "MOVE_RIGHT",
5192
+ "KeyS": "MOVE_DOWN",
5193
+ "KeyW": "MOVE_UP"
5194
+ },
4809
5195
  "projection": "flat",
4810
5196
  "scale": "@config.scale",
4811
5197
  "selectedUnitId": "@entity.selectedUnitId",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/std",
3
- "version": "16.89.0",
3
+ "version": "16.90.0",
4
4
  "description": "Standard library operators for Almadar (math, string, array, etc.)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",