@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.
@@ -2805,7 +2805,7 @@
2805
2805
  "tier": "domain"
2806
2806
  },
2807
2807
  {
2808
- "description": "Emitted when a car moves to a new tile",
2808
+ "description": "Emitted when a car moves to a new tile (click-to-move)",
2809
2809
  "event": "MOVE",
2810
2810
  "payloadSchema": [
2811
2811
  {
@@ -2827,6 +2827,54 @@
2827
2827
  "scope": "external",
2828
2828
  "tier": "domain"
2829
2829
  },
2830
+ {
2831
+ "description": "Steer-left intent (keyboard keyMap)",
2832
+ "event": "MOVE_LEFT",
2833
+ "payloadSchema": [
2834
+ {
2835
+ "name": "id",
2836
+ "type": "string"
2837
+ }
2838
+ ],
2839
+ "scope": "external",
2840
+ "tier": "domain"
2841
+ },
2842
+ {
2843
+ "description": "Steer-right intent (keyboard keyMap)",
2844
+ "event": "MOVE_RIGHT",
2845
+ "payloadSchema": [
2846
+ {
2847
+ "name": "id",
2848
+ "type": "string"
2849
+ }
2850
+ ],
2851
+ "scope": "external",
2852
+ "tier": "domain"
2853
+ },
2854
+ {
2855
+ "description": "Accelerate/up intent (keyboard keyMap)",
2856
+ "event": "MOVE_UP",
2857
+ "payloadSchema": [
2858
+ {
2859
+ "name": "id",
2860
+ "type": "string"
2861
+ }
2862
+ ],
2863
+ "scope": "external",
2864
+ "tier": "domain"
2865
+ },
2866
+ {
2867
+ "description": "Brake/down intent (keyboard keyMap)",
2868
+ "event": "MOVE_DOWN",
2869
+ "payloadSchema": [
2870
+ {
2871
+ "name": "id",
2872
+ "type": "string"
2873
+ }
2874
+ ],
2875
+ "scope": "external",
2876
+ "tier": "domain"
2877
+ },
2830
2878
  {
2831
2879
  "description": "Emitted when a lap is completed",
2832
2880
  "event": "LAP_COMPLETE",
@@ -2906,7 +2954,7 @@
2906
2954
  "name": "Initialize"
2907
2955
  },
2908
2956
  {
2909
- "description": "Emitted when a car moves to a new tile",
2957
+ "description": "Emitted when a car moves to a new tile (click-to-move)",
2910
2958
  "key": "MOVE",
2911
2959
  "name": "Move",
2912
2960
  "payloadSchema": [
@@ -2928,6 +2976,54 @@
2928
2976
  ],
2929
2977
  "tier": "domain"
2930
2978
  },
2979
+ {
2980
+ "description": "Steer-left intent (keyboard keyMap)",
2981
+ "key": "MOVE_LEFT",
2982
+ "name": "Move Left",
2983
+ "payloadSchema": [
2984
+ {
2985
+ "name": "id",
2986
+ "type": "string"
2987
+ }
2988
+ ],
2989
+ "tier": "domain"
2990
+ },
2991
+ {
2992
+ "description": "Steer-right intent (keyboard keyMap)",
2993
+ "key": "MOVE_RIGHT",
2994
+ "name": "Move Right",
2995
+ "payloadSchema": [
2996
+ {
2997
+ "name": "id",
2998
+ "type": "string"
2999
+ }
3000
+ ],
3001
+ "tier": "domain"
3002
+ },
3003
+ {
3004
+ "description": "Accelerate/up intent (keyboard keyMap)",
3005
+ "key": "MOVE_UP",
3006
+ "name": "Move Up",
3007
+ "payloadSchema": [
3008
+ {
3009
+ "name": "id",
3010
+ "type": "string"
3011
+ }
3012
+ ],
3013
+ "tier": "domain"
3014
+ },
3015
+ {
3016
+ "description": "Brake/down intent (keyboard keyMap)",
3017
+ "key": "MOVE_DOWN",
3018
+ "name": "Move Down",
3019
+ "payloadSchema": [
3020
+ {
3021
+ "name": "id",
3022
+ "type": "string"
3023
+ }
3024
+ ],
3025
+ "tier": "domain"
3026
+ },
2931
3027
  {
2932
3028
  "description": "Emitted when a lap is completed",
2933
3029
  "key": "LAP_COMPLETE",
@@ -3086,6 +3182,16 @@
3086
3182
  "assetManifest": "@config.assetManifest",
3087
3183
  "effects": "@entity.effects",
3088
3184
  "features": "@config.features",
3185
+ "keyMap": {
3186
+ "ArrowDown": "MOVE_DOWN",
3187
+ "ArrowLeft": "MOVE_LEFT",
3188
+ "ArrowRight": "MOVE_RIGHT",
3189
+ "ArrowUp": "MOVE_UP",
3190
+ "KeyA": "MOVE_LEFT",
3191
+ "KeyD": "MOVE_RIGHT",
3192
+ "KeyS": "MOVE_DOWN",
3193
+ "KeyW": "MOVE_UP"
3194
+ },
3089
3195
  "projection": "flat",
3090
3196
  "scale": "@config.scale",
3091
3197
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3246,6 +3352,16 @@
3246
3352
  "assetManifest": "@config.assetManifest",
3247
3353
  "effects": "@entity.effects",
3248
3354
  "features": "@config.features",
3355
+ "keyMap": {
3356
+ "ArrowDown": "MOVE_DOWN",
3357
+ "ArrowLeft": "MOVE_LEFT",
3358
+ "ArrowRight": "MOVE_RIGHT",
3359
+ "ArrowUp": "MOVE_UP",
3360
+ "KeyA": "MOVE_LEFT",
3361
+ "KeyD": "MOVE_RIGHT",
3362
+ "KeyS": "MOVE_DOWN",
3363
+ "KeyW": "MOVE_UP"
3364
+ },
3249
3365
  "projection": "flat",
3250
3366
  "scale": "@config.scale",
3251
3367
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3413,6 +3529,16 @@
3413
3529
  "assetManifest": "@config.assetManifest",
3414
3530
  "effects": "@entity.effects",
3415
3531
  "features": "@config.features",
3532
+ "keyMap": {
3533
+ "ArrowDown": "MOVE_DOWN",
3534
+ "ArrowLeft": "MOVE_LEFT",
3535
+ "ArrowRight": "MOVE_RIGHT",
3536
+ "ArrowUp": "MOVE_UP",
3537
+ "KeyA": "MOVE_LEFT",
3538
+ "KeyD": "MOVE_RIGHT",
3539
+ "KeyS": "MOVE_DOWN",
3540
+ "KeyW": "MOVE_UP"
3541
+ },
3416
3542
  "projection": "flat",
3417
3543
  "scale": "@config.scale",
3418
3544
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3515,6 +3641,210 @@
3515
3641
  ],
3516
3642
  "to": "racing"
3517
3643
  },
3644
+ {
3645
+ "effects": [
3646
+ [
3647
+ "set",
3648
+ "@entity.units",
3649
+ [
3650
+ "array/map",
3651
+ "@entity.units",
3652
+ [
3653
+ "fn",
3654
+ "u",
3655
+ [
3656
+ "if",
3657
+ [
3658
+ "==",
3659
+ "@u.team",
3660
+ "player"
3661
+ ],
3662
+ [
3663
+ "object/merge",
3664
+ "@u",
3665
+ {
3666
+ "animation": "walk",
3667
+ "position": {
3668
+ "x": [
3669
+ "math/max",
3670
+ 0.0,
3671
+ [
3672
+ "-",
3673
+ "@u.position.x",
3674
+ 1.0
3675
+ ]
3676
+ ],
3677
+ "y": "@u.position.y"
3678
+ },
3679
+ "previousPosition": "@u.position"
3680
+ }
3681
+ ],
3682
+ "@u"
3683
+ ]
3684
+ ]
3685
+ ]
3686
+ ]
3687
+ ],
3688
+ "event": "MOVE_LEFT",
3689
+ "from": "racing",
3690
+ "guard": [
3691
+ "==",
3692
+ "@entity.result",
3693
+ "none"
3694
+ ],
3695
+ "to": "racing"
3696
+ },
3697
+ {
3698
+ "effects": [
3699
+ [
3700
+ "set",
3701
+ "@entity.units",
3702
+ [
3703
+ "array/map",
3704
+ "@entity.units",
3705
+ [
3706
+ "fn",
3707
+ "u",
3708
+ [
3709
+ "if",
3710
+ [
3711
+ "==",
3712
+ "@u.team",
3713
+ "player"
3714
+ ],
3715
+ [
3716
+ "object/merge",
3717
+ "@u",
3718
+ {
3719
+ "animation": "walk",
3720
+ "position": {
3721
+ "x": [
3722
+ "+",
3723
+ "@u.position.x",
3724
+ 1.0
3725
+ ],
3726
+ "y": "@u.position.y"
3727
+ },
3728
+ "previousPosition": "@u.position"
3729
+ }
3730
+ ],
3731
+ "@u"
3732
+ ]
3733
+ ]
3734
+ ]
3735
+ ]
3736
+ ],
3737
+ "event": "MOVE_RIGHT",
3738
+ "from": "racing",
3739
+ "guard": [
3740
+ "==",
3741
+ "@entity.result",
3742
+ "none"
3743
+ ],
3744
+ "to": "racing"
3745
+ },
3746
+ {
3747
+ "effects": [
3748
+ [
3749
+ "set",
3750
+ "@entity.units",
3751
+ [
3752
+ "array/map",
3753
+ "@entity.units",
3754
+ [
3755
+ "fn",
3756
+ "u",
3757
+ [
3758
+ "if",
3759
+ [
3760
+ "==",
3761
+ "@u.team",
3762
+ "player"
3763
+ ],
3764
+ [
3765
+ "object/merge",
3766
+ "@u",
3767
+ {
3768
+ "animation": "walk",
3769
+ "position": {
3770
+ "x": "@u.position.x",
3771
+ "y": [
3772
+ "math/max",
3773
+ 0.0,
3774
+ [
3775
+ "-",
3776
+ "@u.position.y",
3777
+ 1.0
3778
+ ]
3779
+ ]
3780
+ },
3781
+ "previousPosition": "@u.position"
3782
+ }
3783
+ ],
3784
+ "@u"
3785
+ ]
3786
+ ]
3787
+ ]
3788
+ ]
3789
+ ],
3790
+ "event": "MOVE_UP",
3791
+ "from": "racing",
3792
+ "guard": [
3793
+ "==",
3794
+ "@entity.result",
3795
+ "none"
3796
+ ],
3797
+ "to": "racing"
3798
+ },
3799
+ {
3800
+ "effects": [
3801
+ [
3802
+ "set",
3803
+ "@entity.units",
3804
+ [
3805
+ "array/map",
3806
+ "@entity.units",
3807
+ [
3808
+ "fn",
3809
+ "u",
3810
+ [
3811
+ "if",
3812
+ [
3813
+ "==",
3814
+ "@u.team",
3815
+ "player"
3816
+ ],
3817
+ [
3818
+ "object/merge",
3819
+ "@u",
3820
+ {
3821
+ "animation": "walk",
3822
+ "position": {
3823
+ "x": "@u.position.x",
3824
+ "y": [
3825
+ "+",
3826
+ "@u.position.y",
3827
+ 1.0
3828
+ ]
3829
+ },
3830
+ "previousPosition": "@u.position"
3831
+ }
3832
+ ],
3833
+ "@u"
3834
+ ]
3835
+ ]
3836
+ ]
3837
+ ]
3838
+ ],
3839
+ "event": "MOVE_DOWN",
3840
+ "from": "racing",
3841
+ "guard": [
3842
+ "==",
3843
+ "@entity.result",
3844
+ "none"
3845
+ ],
3846
+ "to": "racing"
3847
+ },
3518
3848
  {
3519
3849
  "effects": [
3520
3850
  [
@@ -3547,6 +3877,16 @@
3547
3877
  "assetManifest": "@config.assetManifest",
3548
3878
  "effects": "@entity.effects",
3549
3879
  "features": "@config.features",
3880
+ "keyMap": {
3881
+ "ArrowDown": "MOVE_DOWN",
3882
+ "ArrowLeft": "MOVE_LEFT",
3883
+ "ArrowRight": "MOVE_RIGHT",
3884
+ "ArrowUp": "MOVE_UP",
3885
+ "KeyA": "MOVE_LEFT",
3886
+ "KeyD": "MOVE_RIGHT",
3887
+ "KeyS": "MOVE_DOWN",
3888
+ "KeyW": "MOVE_UP"
3889
+ },
3550
3890
  "projection": "flat",
3551
3891
  "scale": "@config.scale",
3552
3892
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3677,6 +4017,16 @@
3677
4017
  "assetManifest": "@config.assetManifest",
3678
4018
  "effects": "@entity.effects",
3679
4019
  "features": "@config.features",
4020
+ "keyMap": {
4021
+ "ArrowDown": "MOVE_DOWN",
4022
+ "ArrowLeft": "MOVE_LEFT",
4023
+ "ArrowRight": "MOVE_RIGHT",
4024
+ "ArrowUp": "MOVE_UP",
4025
+ "KeyA": "MOVE_LEFT",
4026
+ "KeyD": "MOVE_RIGHT",
4027
+ "KeyS": "MOVE_DOWN",
4028
+ "KeyW": "MOVE_UP"
4029
+ },
3680
4030
  "projection": "flat",
3681
4031
  "scale": "@config.scale",
3682
4032
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3821,6 +4171,16 @@
3821
4171
  "assetManifest": "@config.assetManifest",
3822
4172
  "effects": "@entity.effects",
3823
4173
  "features": "@config.features",
4174
+ "keyMap": {
4175
+ "ArrowDown": "MOVE_DOWN",
4176
+ "ArrowLeft": "MOVE_LEFT",
4177
+ "ArrowRight": "MOVE_RIGHT",
4178
+ "ArrowUp": "MOVE_UP",
4179
+ "KeyA": "MOVE_LEFT",
4180
+ "KeyD": "MOVE_RIGHT",
4181
+ "KeyS": "MOVE_DOWN",
4182
+ "KeyW": "MOVE_UP"
4183
+ },
3824
4184
  "projection": "flat",
3825
4185
  "scale": "@config.scale",
3826
4186
  "selectedUnitId": "@entity.selectedUnitId",
@@ -3964,6 +4324,16 @@
3964
4324
  "assetManifest": "@config.assetManifest",
3965
4325
  "effects": "@entity.effects",
3966
4326
  "features": "@config.features",
4327
+ "keyMap": {
4328
+ "ArrowDown": "MOVE_DOWN",
4329
+ "ArrowLeft": "MOVE_LEFT",
4330
+ "ArrowRight": "MOVE_RIGHT",
4331
+ "ArrowUp": "MOVE_UP",
4332
+ "KeyA": "MOVE_LEFT",
4333
+ "KeyD": "MOVE_RIGHT",
4334
+ "KeyS": "MOVE_DOWN",
4335
+ "KeyW": "MOVE_UP"
4336
+ },
3967
4337
  "projection": "flat",
3968
4338
  "scale": "@config.scale",
3969
4339
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4094,6 +4464,16 @@
4094
4464
  "assetManifest": "@config.assetManifest",
4095
4465
  "effects": "@entity.effects",
4096
4466
  "features": "@config.features",
4467
+ "keyMap": {
4468
+ "ArrowDown": "MOVE_DOWN",
4469
+ "ArrowLeft": "MOVE_LEFT",
4470
+ "ArrowRight": "MOVE_RIGHT",
4471
+ "ArrowUp": "MOVE_UP",
4472
+ "KeyA": "MOVE_LEFT",
4473
+ "KeyD": "MOVE_RIGHT",
4474
+ "KeyS": "MOVE_DOWN",
4475
+ "KeyW": "MOVE_UP"
4476
+ },
4097
4477
  "projection": "flat",
4098
4478
  "scale": "@config.scale",
4099
4479
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4254,6 +4634,16 @@
4254
4634
  "assetManifest": "@config.assetManifest",
4255
4635
  "effects": "@entity.effects",
4256
4636
  "features": "@config.features",
4637
+ "keyMap": {
4638
+ "ArrowDown": "MOVE_DOWN",
4639
+ "ArrowLeft": "MOVE_LEFT",
4640
+ "ArrowRight": "MOVE_RIGHT",
4641
+ "ArrowUp": "MOVE_UP",
4642
+ "KeyA": "MOVE_LEFT",
4643
+ "KeyD": "MOVE_RIGHT",
4644
+ "KeyS": "MOVE_DOWN",
4645
+ "KeyW": "MOVE_UP"
4646
+ },
4257
4647
  "projection": "flat",
4258
4648
  "scale": "@config.scale",
4259
4649
  "selectedUnitId": "@entity.selectedUnitId",
@@ -4377,6 +4767,16 @@
4377
4767
  "assetManifest": "@config.assetManifest",
4378
4768
  "effects": "@entity.effects",
4379
4769
  "features": "@config.features",
4770
+ "keyMap": {
4771
+ "ArrowDown": "MOVE_DOWN",
4772
+ "ArrowLeft": "MOVE_LEFT",
4773
+ "ArrowRight": "MOVE_RIGHT",
4774
+ "ArrowUp": "MOVE_UP",
4775
+ "KeyA": "MOVE_LEFT",
4776
+ "KeyD": "MOVE_RIGHT",
4777
+ "KeyS": "MOVE_DOWN",
4778
+ "KeyW": "MOVE_UP"
4779
+ },
4380
4780
  "projection": "flat",
4381
4781
  "scale": "@config.scale",
4382
4782
  "selectedUnitId": "@entity.selectedUnitId",