hytopia 0.1.60 → 0.1.62

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.
Files changed (38) hide show
  1. package/bin/scripts.js +6 -4
  2. package/boilerplate/assets/map.json +2 -1
  3. package/docs/server.blocktypeoptions.customcollideroptions.md +2 -0
  4. package/docs/server.blocktypeoptions.id.md +2 -0
  5. package/docs/server.blocktypeoptions.isliquid.md +2 -0
  6. package/docs/server.blocktypeoptions.md +8 -2
  7. package/docs/server.blocktypeoptions.name.md +2 -0
  8. package/docs/server.blocktypeoptions.textureuri.md +2 -0
  9. package/docs/server.collisiongroup.md +168 -0
  10. package/docs/server.entity.md +35 -0
  11. package/docs/server.entity.opacity.md +13 -0
  12. package/docs/server.entity.setopacity.md +53 -0
  13. package/docs/server.entityeventpayload.md +9 -0
  14. package/docs/server.entityeventpayload.setopacity.entity.md +11 -0
  15. package/docs/server.entityeventpayload.setopacity.md +70 -0
  16. package/docs/server.entityeventpayload.setopacity.opacity.md +11 -0
  17. package/docs/server.entityeventtype.md +14 -0
  18. package/docs/server.entityoptions.md +19 -0
  19. package/docs/server.entityoptions.opacity.md +13 -0
  20. package/docs/server.playerentitycontroller.md +19 -0
  21. package/docs/server.playerentitycontroller.stickstoplatforms.md +13 -0
  22. package/docs/server.playerentitycontrolleroptions.md +19 -0
  23. package/docs/server.playerentitycontrolleroptions.stickstoplatforms.md +13 -0
  24. package/examples/big-world/package.json +3 -2
  25. package/examples/block-entity/package.json +3 -2
  26. package/examples/custom-ui/package.json +3 -2
  27. package/examples/entity-controller/package.json +3 -2
  28. package/examples/entity-spawn/package.json +3 -2
  29. package/examples/payload-game/package.json +3 -2
  30. package/examples/wall-dodge-game/assets/map.json +3995 -0
  31. package/examples/wall-dodge-game/assets/textures/water.png +0 -0
  32. package/examples/wall-dodge-game/assets/ui/index.html +249 -0
  33. package/examples/wall-dodge-game/index.ts +336 -0
  34. package/examples/wall-dodge-game/package.json +16 -0
  35. package/package.json +1 -1
  36. package/server.api.json +512 -5
  37. package/server.d.ts +48 -12
  38. package/server.js +71 -71
package/server.api.json CHANGED
@@ -3864,7 +3864,7 @@
3864
3864
  {
3865
3865
  "kind": "PropertySignature",
3866
3866
  "canonicalReference": "server!BlockTypeOptions#customColliderOptions:member",
3867
- "docComment": "",
3867
+ "docComment": "/**\n * The custom collider options for the block type.\n */\n",
3868
3868
  "excerptTokens": [
3869
3869
  {
3870
3870
  "kind": "Content",
@@ -3892,7 +3892,7 @@
3892
3892
  {
3893
3893
  "kind": "PropertySignature",
3894
3894
  "canonicalReference": "server!BlockTypeOptions#id:member",
3895
- "docComment": "",
3895
+ "docComment": "/**\n * The unique numeric identifier for the block type.\n */\n",
3896
3896
  "excerptTokens": [
3897
3897
  {
3898
3898
  "kind": "Content",
@@ -3919,7 +3919,7 @@
3919
3919
  {
3920
3920
  "kind": "PropertySignature",
3921
3921
  "canonicalReference": "server!BlockTypeOptions#isLiquid:member",
3922
- "docComment": "",
3922
+ "docComment": "/**\n * Whether the block type is a liquid.\n */\n",
3923
3923
  "excerptTokens": [
3924
3924
  {
3925
3925
  "kind": "Content",
@@ -3946,7 +3946,7 @@
3946
3946
  {
3947
3947
  "kind": "PropertySignature",
3948
3948
  "canonicalReference": "server!BlockTypeOptions#name:member",
3949
- "docComment": "",
3949
+ "docComment": "/**\n * The name of the block type.\n */\n",
3950
3950
  "excerptTokens": [
3951
3951
  {
3952
3952
  "kind": "Content",
@@ -3973,7 +3973,7 @@
3973
3973
  {
3974
3974
  "kind": "PropertySignature",
3975
3975
  "canonicalReference": "server!BlockTypeOptions#textureUri:member",
3976
- "docComment": "",
3976
+ "docComment": "/**\n * The URI of the texture asset for the block type.\n */\n",
3977
3977
  "excerptTokens": [
3978
3978
  {
3979
3979
  "kind": "Content",
@@ -8649,6 +8649,258 @@
8649
8649
  "releaseTag": "Public",
8650
8650
  "name": "ENTITY_SENSOR"
8651
8651
  },
8652
+ {
8653
+ "kind": "EnumMember",
8654
+ "canonicalReference": "server!CollisionGroup.GROUP_1:member",
8655
+ "docComment": "",
8656
+ "excerptTokens": [
8657
+ {
8658
+ "kind": "Content",
8659
+ "text": "GROUP_1 = "
8660
+ },
8661
+ {
8662
+ "kind": "Content",
8663
+ "text": "16"
8664
+ }
8665
+ ],
8666
+ "initializerTokenRange": {
8667
+ "startIndex": 1,
8668
+ "endIndex": 2
8669
+ },
8670
+ "releaseTag": "Public",
8671
+ "name": "GROUP_1"
8672
+ },
8673
+ {
8674
+ "kind": "EnumMember",
8675
+ "canonicalReference": "server!CollisionGroup.GROUP_10:member",
8676
+ "docComment": "",
8677
+ "excerptTokens": [
8678
+ {
8679
+ "kind": "Content",
8680
+ "text": "GROUP_10 = "
8681
+ },
8682
+ {
8683
+ "kind": "Content",
8684
+ "text": "8192"
8685
+ }
8686
+ ],
8687
+ "initializerTokenRange": {
8688
+ "startIndex": 1,
8689
+ "endIndex": 2
8690
+ },
8691
+ "releaseTag": "Public",
8692
+ "name": "GROUP_10"
8693
+ },
8694
+ {
8695
+ "kind": "EnumMember",
8696
+ "canonicalReference": "server!CollisionGroup.GROUP_11:member",
8697
+ "docComment": "",
8698
+ "excerptTokens": [
8699
+ {
8700
+ "kind": "Content",
8701
+ "text": "GROUP_11 = "
8702
+ },
8703
+ {
8704
+ "kind": "Content",
8705
+ "text": "16384"
8706
+ }
8707
+ ],
8708
+ "initializerTokenRange": {
8709
+ "startIndex": 1,
8710
+ "endIndex": 2
8711
+ },
8712
+ "releaseTag": "Public",
8713
+ "name": "GROUP_11"
8714
+ },
8715
+ {
8716
+ "kind": "EnumMember",
8717
+ "canonicalReference": "server!CollisionGroup.GROUP_12:member",
8718
+ "docComment": "",
8719
+ "excerptTokens": [
8720
+ {
8721
+ "kind": "Content",
8722
+ "text": "GROUP_12 = "
8723
+ },
8724
+ {
8725
+ "kind": "Content",
8726
+ "text": "32768"
8727
+ }
8728
+ ],
8729
+ "initializerTokenRange": {
8730
+ "startIndex": 1,
8731
+ "endIndex": 2
8732
+ },
8733
+ "releaseTag": "Public",
8734
+ "name": "GROUP_12"
8735
+ },
8736
+ {
8737
+ "kind": "EnumMember",
8738
+ "canonicalReference": "server!CollisionGroup.GROUP_2:member",
8739
+ "docComment": "",
8740
+ "excerptTokens": [
8741
+ {
8742
+ "kind": "Content",
8743
+ "text": "GROUP_2 = "
8744
+ },
8745
+ {
8746
+ "kind": "Content",
8747
+ "text": "32"
8748
+ }
8749
+ ],
8750
+ "initializerTokenRange": {
8751
+ "startIndex": 1,
8752
+ "endIndex": 2
8753
+ },
8754
+ "releaseTag": "Public",
8755
+ "name": "GROUP_2"
8756
+ },
8757
+ {
8758
+ "kind": "EnumMember",
8759
+ "canonicalReference": "server!CollisionGroup.GROUP_3:member",
8760
+ "docComment": "",
8761
+ "excerptTokens": [
8762
+ {
8763
+ "kind": "Content",
8764
+ "text": "GROUP_3 = "
8765
+ },
8766
+ {
8767
+ "kind": "Content",
8768
+ "text": "64"
8769
+ }
8770
+ ],
8771
+ "initializerTokenRange": {
8772
+ "startIndex": 1,
8773
+ "endIndex": 2
8774
+ },
8775
+ "releaseTag": "Public",
8776
+ "name": "GROUP_3"
8777
+ },
8778
+ {
8779
+ "kind": "EnumMember",
8780
+ "canonicalReference": "server!CollisionGroup.GROUP_4:member",
8781
+ "docComment": "",
8782
+ "excerptTokens": [
8783
+ {
8784
+ "kind": "Content",
8785
+ "text": "GROUP_4 = "
8786
+ },
8787
+ {
8788
+ "kind": "Content",
8789
+ "text": "128"
8790
+ }
8791
+ ],
8792
+ "initializerTokenRange": {
8793
+ "startIndex": 1,
8794
+ "endIndex": 2
8795
+ },
8796
+ "releaseTag": "Public",
8797
+ "name": "GROUP_4"
8798
+ },
8799
+ {
8800
+ "kind": "EnumMember",
8801
+ "canonicalReference": "server!CollisionGroup.GROUP_5:member",
8802
+ "docComment": "",
8803
+ "excerptTokens": [
8804
+ {
8805
+ "kind": "Content",
8806
+ "text": "GROUP_5 = "
8807
+ },
8808
+ {
8809
+ "kind": "Content",
8810
+ "text": "256"
8811
+ }
8812
+ ],
8813
+ "initializerTokenRange": {
8814
+ "startIndex": 1,
8815
+ "endIndex": 2
8816
+ },
8817
+ "releaseTag": "Public",
8818
+ "name": "GROUP_5"
8819
+ },
8820
+ {
8821
+ "kind": "EnumMember",
8822
+ "canonicalReference": "server!CollisionGroup.GROUP_6:member",
8823
+ "docComment": "",
8824
+ "excerptTokens": [
8825
+ {
8826
+ "kind": "Content",
8827
+ "text": "GROUP_6 = "
8828
+ },
8829
+ {
8830
+ "kind": "Content",
8831
+ "text": "512"
8832
+ }
8833
+ ],
8834
+ "initializerTokenRange": {
8835
+ "startIndex": 1,
8836
+ "endIndex": 2
8837
+ },
8838
+ "releaseTag": "Public",
8839
+ "name": "GROUP_6"
8840
+ },
8841
+ {
8842
+ "kind": "EnumMember",
8843
+ "canonicalReference": "server!CollisionGroup.GROUP_7:member",
8844
+ "docComment": "",
8845
+ "excerptTokens": [
8846
+ {
8847
+ "kind": "Content",
8848
+ "text": "GROUP_7 = "
8849
+ },
8850
+ {
8851
+ "kind": "Content",
8852
+ "text": "1024"
8853
+ }
8854
+ ],
8855
+ "initializerTokenRange": {
8856
+ "startIndex": 1,
8857
+ "endIndex": 2
8858
+ },
8859
+ "releaseTag": "Public",
8860
+ "name": "GROUP_7"
8861
+ },
8862
+ {
8863
+ "kind": "EnumMember",
8864
+ "canonicalReference": "server!CollisionGroup.GROUP_8:member",
8865
+ "docComment": "",
8866
+ "excerptTokens": [
8867
+ {
8868
+ "kind": "Content",
8869
+ "text": "GROUP_8 = "
8870
+ },
8871
+ {
8872
+ "kind": "Content",
8873
+ "text": "2048"
8874
+ }
8875
+ ],
8876
+ "initializerTokenRange": {
8877
+ "startIndex": 1,
8878
+ "endIndex": 2
8879
+ },
8880
+ "releaseTag": "Public",
8881
+ "name": "GROUP_8"
8882
+ },
8883
+ {
8884
+ "kind": "EnumMember",
8885
+ "canonicalReference": "server!CollisionGroup.GROUP_9:member",
8886
+ "docComment": "",
8887
+ "excerptTokens": [
8888
+ {
8889
+ "kind": "Content",
8890
+ "text": "GROUP_9 = "
8891
+ },
8892
+ {
8893
+ "kind": "Content",
8894
+ "text": "4096"
8895
+ }
8896
+ ],
8897
+ "initializerTokenRange": {
8898
+ "startIndex": 1,
8899
+ "endIndex": 2
8900
+ },
8901
+ "releaseTag": "Public",
8902
+ "name": "GROUP_9"
8903
+ },
8652
8904
  {
8653
8905
  "kind": "EnumMember",
8654
8906
  "canonicalReference": "server!CollisionGroup.PLAYER:member",
@@ -10011,6 +10263,36 @@
10011
10263
  "isProtected": false,
10012
10264
  "isAbstract": false
10013
10265
  },
10266
+ {
10267
+ "kind": "Property",
10268
+ "canonicalReference": "server!Entity#opacity:member",
10269
+ "docComment": "/**\n * The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque.\n */\n",
10270
+ "excerptTokens": [
10271
+ {
10272
+ "kind": "Content",
10273
+ "text": "get opacity(): "
10274
+ },
10275
+ {
10276
+ "kind": "Content",
10277
+ "text": "number | undefined"
10278
+ },
10279
+ {
10280
+ "kind": "Content",
10281
+ "text": ";"
10282
+ }
10283
+ ],
10284
+ "isReadonly": true,
10285
+ "isOptional": false,
10286
+ "releaseTag": "Public",
10287
+ "name": "opacity",
10288
+ "propertyTypeTokenRange": {
10289
+ "startIndex": 1,
10290
+ "endIndex": 2
10291
+ },
10292
+ "isStatic": false,
10293
+ "isProtected": false,
10294
+ "isAbstract": false
10295
+ },
10014
10296
  {
10015
10297
  "kind": "Method",
10016
10298
  "canonicalReference": "server!Entity#setController:member(1)",
@@ -10160,6 +10442,54 @@
10160
10442
  "isAbstract": false,
10161
10443
  "name": "setModelHiddenNodes"
10162
10444
  },
10445
+ {
10446
+ "kind": "Method",
10447
+ "canonicalReference": "server!Entity#setOpacity:member(1)",
10448
+ "docComment": "/**\n * Sets the opacity of the entity.\n *\n * @param opacity - The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque.\n */\n",
10449
+ "excerptTokens": [
10450
+ {
10451
+ "kind": "Content",
10452
+ "text": "setOpacity(opacity: "
10453
+ },
10454
+ {
10455
+ "kind": "Content",
10456
+ "text": "number"
10457
+ },
10458
+ {
10459
+ "kind": "Content",
10460
+ "text": "): "
10461
+ },
10462
+ {
10463
+ "kind": "Content",
10464
+ "text": "void"
10465
+ },
10466
+ {
10467
+ "kind": "Content",
10468
+ "text": ";"
10469
+ }
10470
+ ],
10471
+ "isStatic": false,
10472
+ "returnTypeTokenRange": {
10473
+ "startIndex": 3,
10474
+ "endIndex": 4
10475
+ },
10476
+ "releaseTag": "Public",
10477
+ "isProtected": false,
10478
+ "overloadIndex": 1,
10479
+ "parameters": [
10480
+ {
10481
+ "parameterName": "opacity",
10482
+ "parameterTypeTokenRange": {
10483
+ "startIndex": 1,
10484
+ "endIndex": 2
10485
+ },
10486
+ "isOptional": false
10487
+ }
10488
+ ],
10489
+ "isOptional": false,
10490
+ "isAbstract": false,
10491
+ "name": "setOpacity"
10492
+ },
10163
10493
  {
10164
10494
  "kind": "Method",
10165
10495
  "canonicalReference": "server!Entity#setTintColor:member(1)",
@@ -10744,6 +11074,78 @@
10744
11074
  ],
10745
11075
  "extendsTokenRanges": []
10746
11076
  },
11077
+ {
11078
+ "kind": "Interface",
11079
+ "canonicalReference": "server!EntityEventPayload.SetOpacity:interface",
11080
+ "docComment": "",
11081
+ "excerptTokens": [
11082
+ {
11083
+ "kind": "Content",
11084
+ "text": "interface SetOpacity "
11085
+ }
11086
+ ],
11087
+ "releaseTag": "Public",
11088
+ "name": "SetOpacity",
11089
+ "preserveMemberOrder": false,
11090
+ "members": [
11091
+ {
11092
+ "kind": "PropertySignature",
11093
+ "canonicalReference": "server!EntityEventPayload.SetOpacity#entity:member",
11094
+ "docComment": "",
11095
+ "excerptTokens": [
11096
+ {
11097
+ "kind": "Content",
11098
+ "text": "entity: "
11099
+ },
11100
+ {
11101
+ "kind": "Reference",
11102
+ "text": "Entity",
11103
+ "canonicalReference": "server!Entity:class"
11104
+ },
11105
+ {
11106
+ "kind": "Content",
11107
+ "text": ";"
11108
+ }
11109
+ ],
11110
+ "isReadonly": false,
11111
+ "isOptional": false,
11112
+ "releaseTag": "Public",
11113
+ "name": "entity",
11114
+ "propertyTypeTokenRange": {
11115
+ "startIndex": 1,
11116
+ "endIndex": 2
11117
+ }
11118
+ },
11119
+ {
11120
+ "kind": "PropertySignature",
11121
+ "canonicalReference": "server!EntityEventPayload.SetOpacity#opacity:member",
11122
+ "docComment": "",
11123
+ "excerptTokens": [
11124
+ {
11125
+ "kind": "Content",
11126
+ "text": "opacity: "
11127
+ },
11128
+ {
11129
+ "kind": "Content",
11130
+ "text": "number"
11131
+ },
11132
+ {
11133
+ "kind": "Content",
11134
+ "text": ";"
11135
+ }
11136
+ ],
11137
+ "isReadonly": false,
11138
+ "isOptional": false,
11139
+ "releaseTag": "Public",
11140
+ "name": "opacity",
11141
+ "propertyTypeTokenRange": {
11142
+ "startIndex": 1,
11143
+ "endIndex": 2
11144
+ }
11145
+ }
11146
+ ],
11147
+ "extendsTokenRanges": []
11148
+ },
10747
11149
  {
10748
11150
  "kind": "Interface",
10749
11151
  "canonicalReference": "server!EntityEventPayload.SetTintColor:interface",
@@ -11323,6 +11725,27 @@
11323
11725
  "releaseTag": "Public",
11324
11726
  "name": "SET_MODEL_HIDDEN_NODES"
11325
11727
  },
11728
+ {
11729
+ "kind": "EnumMember",
11730
+ "canonicalReference": "server!EntityEventType.SET_OPACITY:member",
11731
+ "docComment": "",
11732
+ "excerptTokens": [
11733
+ {
11734
+ "kind": "Content",
11735
+ "text": "SET_OPACITY = "
11736
+ },
11737
+ {
11738
+ "kind": "Content",
11739
+ "text": "\"ENTITY.SET_OPACITY\""
11740
+ }
11741
+ ],
11742
+ "initializerTokenRange": {
11743
+ "startIndex": 1,
11744
+ "endIndex": 2
11745
+ },
11746
+ "releaseTag": "Public",
11747
+ "name": "SET_OPACITY"
11748
+ },
11326
11749
  {
11327
11750
  "kind": "EnumMember",
11328
11751
  "canonicalReference": "server!EntityEventType.SET_TINT_COLOR:member",
@@ -12048,6 +12471,33 @@
12048
12471
  "endIndex": 2
12049
12472
  }
12050
12473
  },
12474
+ {
12475
+ "kind": "PropertySignature",
12476
+ "canonicalReference": "server!EntityOptions#opacity:member",
12477
+ "docComment": "/**\n * The opacity of the entity between 0 and 1. 0 is fully transparent, 1 is fully opaque.\n */\n",
12478
+ "excerptTokens": [
12479
+ {
12480
+ "kind": "Content",
12481
+ "text": "opacity?: "
12482
+ },
12483
+ {
12484
+ "kind": "Content",
12485
+ "text": "number"
12486
+ },
12487
+ {
12488
+ "kind": "Content",
12489
+ "text": ";"
12490
+ }
12491
+ ],
12492
+ "isReadonly": false,
12493
+ "isOptional": true,
12494
+ "releaseTag": "Public",
12495
+ "name": "opacity",
12496
+ "propertyTypeTokenRange": {
12497
+ "startIndex": 1,
12498
+ "endIndex": 2
12499
+ }
12500
+ },
12051
12501
  {
12052
12502
  "kind": "PropertySignature",
12053
12503
  "canonicalReference": "server!EntityOptions#rigidBodyOptions:member",
@@ -16607,6 +17057,36 @@
16607
17057
  "isAbstract": false,
16608
17058
  "name": "spawn"
16609
17059
  },
17060
+ {
17061
+ "kind": "Property",
17062
+ "canonicalReference": "server!PlayerEntityController#sticksToPlatforms:member",
17063
+ "docComment": "/**\n * Whether the entity sticks to platforms.\n */\n",
17064
+ "excerptTokens": [
17065
+ {
17066
+ "kind": "Content",
17067
+ "text": "sticksToPlatforms: "
17068
+ },
17069
+ {
17070
+ "kind": "Content",
17071
+ "text": "boolean"
17072
+ },
17073
+ {
17074
+ "kind": "Content",
17075
+ "text": ";"
17076
+ }
17077
+ ],
17078
+ "isReadonly": false,
17079
+ "isOptional": false,
17080
+ "releaseTag": "Public",
17081
+ "name": "sticksToPlatforms",
17082
+ "propertyTypeTokenRange": {
17083
+ "startIndex": 1,
17084
+ "endIndex": 2
17085
+ },
17086
+ "isStatic": false,
17087
+ "isProtected": false,
17088
+ "isAbstract": false
17089
+ },
16610
17090
  {
16611
17091
  "kind": "Method",
16612
17092
  "canonicalReference": "server!PlayerEntityController#tickWithPlayerInput:member(1)",
@@ -16893,6 +17373,33 @@
16893
17373
  "endIndex": 2
16894
17374
  }
16895
17375
  },
17376
+ {
17377
+ "kind": "PropertySignature",
17378
+ "canonicalReference": "server!PlayerEntityControllerOptions#sticksToPlatforms:member",
17379
+ "docComment": "/**\n * Whether the entity sticks to platforms, defaults to true.\n */\n",
17380
+ "excerptTokens": [
17381
+ {
17382
+ "kind": "Content",
17383
+ "text": "sticksToPlatforms?: "
17384
+ },
17385
+ {
17386
+ "kind": "Content",
17387
+ "text": "boolean"
17388
+ },
17389
+ {
17390
+ "kind": "Content",
17391
+ "text": ";"
17392
+ }
17393
+ ],
17394
+ "isReadonly": false,
17395
+ "isOptional": true,
17396
+ "releaseTag": "Public",
17397
+ "name": "sticksToPlatforms",
17398
+ "propertyTypeTokenRange": {
17399
+ "startIndex": 1,
17400
+ "endIndex": 2
17401
+ }
17402
+ },
16896
17403
  {
16897
17404
  "kind": "PropertySignature",
16898
17405
  "canonicalReference": "server!PlayerEntityControllerOptions#walkVelocity:member",