hytopia 0.6.5 → 0.6.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.6.5",
3
+ "version": "0.6.7",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./node-server.mjs",
package/server.api.json CHANGED
@@ -9816,16 +9816,16 @@
9816
9816
  },
9817
9817
  {
9818
9818
  "kind": "EnumMember",
9819
- "canonicalReference": "server!CollisionGroup.GROUP_1:member",
9819
+ "canonicalReference": "server!CollisionGroup.ENVIRONMENT_ENTITY:member",
9820
9820
  "docComment": "",
9821
9821
  "excerptTokens": [
9822
9822
  {
9823
9823
  "kind": "Content",
9824
- "text": "GROUP_1 = "
9824
+ "text": "ENVIRONMENT_ENTITY = "
9825
9825
  },
9826
9826
  {
9827
9827
  "kind": "Content",
9828
- "text": "16"
9828
+ "text": "8"
9829
9829
  }
9830
9830
  ],
9831
9831
  "initializerTokenRange": {
@@ -9833,20 +9833,20 @@
9833
9833
  "endIndex": 2
9834
9834
  },
9835
9835
  "releaseTag": "Public",
9836
- "name": "GROUP_1"
9836
+ "name": "ENVIRONMENT_ENTITY"
9837
9837
  },
9838
9838
  {
9839
9839
  "kind": "EnumMember",
9840
- "canonicalReference": "server!CollisionGroup.GROUP_10:member",
9840
+ "canonicalReference": "server!CollisionGroup.GROUP_1:member",
9841
9841
  "docComment": "",
9842
9842
  "excerptTokens": [
9843
9843
  {
9844
9844
  "kind": "Content",
9845
- "text": "GROUP_10 = "
9845
+ "text": "GROUP_1 = "
9846
9846
  },
9847
9847
  {
9848
9848
  "kind": "Content",
9849
- "text": "8192"
9849
+ "text": "32"
9850
9850
  }
9851
9851
  ],
9852
9852
  "initializerTokenRange": {
@@ -9854,16 +9854,16 @@
9854
9854
  "endIndex": 2
9855
9855
  },
9856
9856
  "releaseTag": "Public",
9857
- "name": "GROUP_10"
9857
+ "name": "GROUP_1"
9858
9858
  },
9859
9859
  {
9860
9860
  "kind": "EnumMember",
9861
- "canonicalReference": "server!CollisionGroup.GROUP_11:member",
9861
+ "canonicalReference": "server!CollisionGroup.GROUP_10:member",
9862
9862
  "docComment": "",
9863
9863
  "excerptTokens": [
9864
9864
  {
9865
9865
  "kind": "Content",
9866
- "text": "GROUP_11 = "
9866
+ "text": "GROUP_10 = "
9867
9867
  },
9868
9868
  {
9869
9869
  "kind": "Content",
@@ -9875,16 +9875,16 @@
9875
9875
  "endIndex": 2
9876
9876
  },
9877
9877
  "releaseTag": "Public",
9878
- "name": "GROUP_11"
9878
+ "name": "GROUP_10"
9879
9879
  },
9880
9880
  {
9881
9881
  "kind": "EnumMember",
9882
- "canonicalReference": "server!CollisionGroup.GROUP_12:member",
9882
+ "canonicalReference": "server!CollisionGroup.GROUP_11:member",
9883
9883
  "docComment": "",
9884
9884
  "excerptTokens": [
9885
9885
  {
9886
9886
  "kind": "Content",
9887
- "text": "GROUP_12 = "
9887
+ "text": "GROUP_11 = "
9888
9888
  },
9889
9889
  {
9890
9890
  "kind": "Content",
@@ -9896,7 +9896,7 @@
9896
9896
  "endIndex": 2
9897
9897
  },
9898
9898
  "releaseTag": "Public",
9899
- "name": "GROUP_12"
9899
+ "name": "GROUP_11"
9900
9900
  },
9901
9901
  {
9902
9902
  "kind": "EnumMember",
@@ -9909,7 +9909,7 @@
9909
9909
  },
9910
9910
  {
9911
9911
  "kind": "Content",
9912
- "text": "32"
9912
+ "text": "64"
9913
9913
  }
9914
9914
  ],
9915
9915
  "initializerTokenRange": {
@@ -9930,7 +9930,7 @@
9930
9930
  },
9931
9931
  {
9932
9932
  "kind": "Content",
9933
- "text": "64"
9933
+ "text": "128"
9934
9934
  }
9935
9935
  ],
9936
9936
  "initializerTokenRange": {
@@ -9951,7 +9951,7 @@
9951
9951
  },
9952
9952
  {
9953
9953
  "kind": "Content",
9954
- "text": "128"
9954
+ "text": "256"
9955
9955
  }
9956
9956
  ],
9957
9957
  "initializerTokenRange": {
@@ -9972,7 +9972,7 @@
9972
9972
  },
9973
9973
  {
9974
9974
  "kind": "Content",
9975
- "text": "256"
9975
+ "text": "512"
9976
9976
  }
9977
9977
  ],
9978
9978
  "initializerTokenRange": {
@@ -9993,7 +9993,7 @@
9993
9993
  },
9994
9994
  {
9995
9995
  "kind": "Content",
9996
- "text": "512"
9996
+ "text": "1024"
9997
9997
  }
9998
9998
  ],
9999
9999
  "initializerTokenRange": {
@@ -10014,7 +10014,7 @@
10014
10014
  },
10015
10015
  {
10016
10016
  "kind": "Content",
10017
- "text": "1024"
10017
+ "text": "2048"
10018
10018
  }
10019
10019
  ],
10020
10020
  "initializerTokenRange": {
@@ -10035,7 +10035,7 @@
10035
10035
  },
10036
10036
  {
10037
10037
  "kind": "Content",
10038
- "text": "2048"
10038
+ "text": "4096"
10039
10039
  }
10040
10040
  ],
10041
10041
  "initializerTokenRange": {
@@ -10056,7 +10056,7 @@
10056
10056
  },
10057
10057
  {
10058
10058
  "kind": "Content",
10059
- "text": "4096"
10059
+ "text": "8192"
10060
10060
  }
10061
10061
  ],
10062
10062
  "initializerTokenRange": {
@@ -10077,7 +10077,7 @@
10077
10077
  },
10078
10078
  {
10079
10079
  "kind": "Content",
10080
- "text": "8"
10080
+ "text": "16"
10081
10081
  }
10082
10082
  ],
10083
10083
  "initializerTokenRange": {
@@ -26262,7 +26262,7 @@
26262
26262
  },
26263
26263
  {
26264
26264
  "kind": "Content",
26265
- "text": ";\n moveIgnoreAxes?: {\n x?: boolean;\n y?: boolean;\n z?: boolean;\n };\n moveStartIdleAnimationsOnCompletion?: boolean;\n}"
26265
+ "text": ";\n moveIgnoreAxes?: {\n x?: boolean;\n y?: boolean;\n z?: boolean;\n };\n moveStartIdleAnimationsOnCompletion?: boolean;\n moveStoppingDistance?: number;\n}"
26266
26266
  },
26267
26267
  {
26268
26268
  "kind": "Content",
@@ -26414,6 +26414,39 @@
26414
26414
  "name": "PathfindingEntityController",
26415
26415
  "preserveMemberOrder": false,
26416
26416
  "members": [
26417
+ {
26418
+ "kind": "Constructor",
26419
+ "canonicalReference": "server!PathfindingEntityController:constructor(1)",
26420
+ "docComment": "/**\n * Constructs a new instance of the `PathfindingEntityController` class\n *\n * @param options - Options for the controller.\n */\n",
26421
+ "excerptTokens": [
26422
+ {
26423
+ "kind": "Content",
26424
+ "text": "constructor(options?: "
26425
+ },
26426
+ {
26427
+ "kind": "Reference",
26428
+ "text": "PathfindingEntityControllerOptions",
26429
+ "canonicalReference": "server!~PathfindingEntityControllerOptions:interface"
26430
+ },
26431
+ {
26432
+ "kind": "Content",
26433
+ "text": ");"
26434
+ }
26435
+ ],
26436
+ "releaseTag": "Public",
26437
+ "isProtected": false,
26438
+ "overloadIndex": 1,
26439
+ "parameters": [
26440
+ {
26441
+ "parameterName": "options",
26442
+ "parameterTypeTokenRange": {
26443
+ "startIndex": 1,
26444
+ "endIndex": 2
26445
+ },
26446
+ "isOptional": true
26447
+ }
26448
+ ]
26449
+ },
26417
26450
  {
26418
26451
  "kind": "Property",
26419
26452
  "canonicalReference": "server!PathfindingEntityController#debug:member",
@@ -28605,6 +28638,54 @@
28605
28638
  "isAbstract": false,
28606
28639
  "name": "setOffset"
28607
28640
  },
28641
+ {
28642
+ "kind": "Method",
28643
+ "canonicalReference": "server!PlayerCamera#setShoulderAngle:member(1)",
28644
+ "docComment": "/**\n * Only used in third-person mode. Sets the shoulder angle of the camera in degrees. A positive value shifts the camera to the right, a negative value shifts it to the left.\n *\n * @param shoulderAngle - The shoulder angle to set in degrees.\n */\n",
28645
+ "excerptTokens": [
28646
+ {
28647
+ "kind": "Content",
28648
+ "text": "setShoulderAngle(shoulderAngle: "
28649
+ },
28650
+ {
28651
+ "kind": "Content",
28652
+ "text": "number"
28653
+ },
28654
+ {
28655
+ "kind": "Content",
28656
+ "text": "): "
28657
+ },
28658
+ {
28659
+ "kind": "Content",
28660
+ "text": "void"
28661
+ },
28662
+ {
28663
+ "kind": "Content",
28664
+ "text": ";"
28665
+ }
28666
+ ],
28667
+ "isStatic": false,
28668
+ "returnTypeTokenRange": {
28669
+ "startIndex": 3,
28670
+ "endIndex": 4
28671
+ },
28672
+ "releaseTag": "Public",
28673
+ "isProtected": false,
28674
+ "overloadIndex": 1,
28675
+ "parameters": [
28676
+ {
28677
+ "parameterName": "shoulderAngle",
28678
+ "parameterTypeTokenRange": {
28679
+ "startIndex": 1,
28680
+ "endIndex": 2
28681
+ },
28682
+ "isOptional": false
28683
+ }
28684
+ ],
28685
+ "isOptional": false,
28686
+ "isAbstract": false,
28687
+ "name": "setShoulderAngle"
28688
+ },
28608
28689
  {
28609
28690
  "kind": "Method",
28610
28691
  "canonicalReference": "server!PlayerCamera#setTrackedEntity:member(1)",
@@ -28759,6 +28840,36 @@
28759
28840
  "isAbstract": false,
28760
28841
  "name": "setZoom"
28761
28842
  },
28843
+ {
28844
+ "kind": "Property",
28845
+ "canonicalReference": "server!PlayerCamera#shoulderAngle:member",
28846
+ "docComment": "/**\n * The shoulder angle of the camera in degrees.\n */\n",
28847
+ "excerptTokens": [
28848
+ {
28849
+ "kind": "Content",
28850
+ "text": "get shoulderAngle(): "
28851
+ },
28852
+ {
28853
+ "kind": "Content",
28854
+ "text": "number"
28855
+ },
28856
+ {
28857
+ "kind": "Content",
28858
+ "text": ";"
28859
+ }
28860
+ ],
28861
+ "isReadonly": true,
28862
+ "isOptional": false,
28863
+ "releaseTag": "Public",
28864
+ "name": "shoulderAngle",
28865
+ "propertyTypeTokenRange": {
28866
+ "startIndex": 1,
28867
+ "endIndex": 2
28868
+ },
28869
+ "isStatic": false,
28870
+ "isProtected": false,
28871
+ "isAbstract": false
28872
+ },
28762
28873
  {
28763
28874
  "kind": "Property",
28764
28875
  "canonicalReference": "server!PlayerCamera#trackedEntity:member",
@@ -29096,6 +29207,27 @@
29096
29207
  "releaseTag": "Public",
29097
29208
  "name": "SET_OFFSET"
29098
29209
  },
29210
+ {
29211
+ "kind": "EnumMember",
29212
+ "canonicalReference": "server!PlayerCameraEvent.SET_SHOULDER_ANGLE:member",
29213
+ "docComment": "",
29214
+ "excerptTokens": [
29215
+ {
29216
+ "kind": "Content",
29217
+ "text": "SET_SHOULDER_ANGLE = "
29218
+ },
29219
+ {
29220
+ "kind": "Content",
29221
+ "text": "\"PLAYER_CAMERA.SET_SHOULDER_ANGLE\""
29222
+ }
29223
+ ],
29224
+ "initializerTokenRange": {
29225
+ "startIndex": 1,
29226
+ "endIndex": 2
29227
+ },
29228
+ "releaseTag": "Public",
29229
+ "name": "SET_SHOULDER_ANGLE"
29230
+ },
29099
29231
  {
29100
29232
  "kind": "EnumMember",
29101
29233
  "canonicalReference": "server!PlayerCameraEvent.SET_TRACKED_ENTITY:member",
@@ -29689,6 +29821,51 @@
29689
29821
  "endIndex": 8
29690
29822
  }
29691
29823
  },
29824
+ {
29825
+ "kind": "PropertySignature",
29826
+ "canonicalReference": "server!PlayerCameraEventPayloads#\"PLAYER_CAMERA.SET_SHOULDER_ANGLE\":member",
29827
+ "docComment": "/**\n * Emitted when the shoulder angle of the camera is set.\n */\n",
29828
+ "excerptTokens": [
29829
+ {
29830
+ "kind": "Content",
29831
+ "text": "["
29832
+ },
29833
+ {
29834
+ "kind": "Reference",
29835
+ "text": "PlayerCameraEvent.SET_SHOULDER_ANGLE",
29836
+ "canonicalReference": "server!PlayerCameraEvent.SET_SHOULDER_ANGLE:member"
29837
+ },
29838
+ {
29839
+ "kind": "Content",
29840
+ "text": "]: "
29841
+ },
29842
+ {
29843
+ "kind": "Content",
29844
+ "text": "{\n playerCamera: "
29845
+ },
29846
+ {
29847
+ "kind": "Reference",
29848
+ "text": "PlayerCamera",
29849
+ "canonicalReference": "server!PlayerCamera:class"
29850
+ },
29851
+ {
29852
+ "kind": "Content",
29853
+ "text": ";\n shoulderAngle: number;\n }"
29854
+ },
29855
+ {
29856
+ "kind": "Content",
29857
+ "text": ";"
29858
+ }
29859
+ ],
29860
+ "isReadonly": false,
29861
+ "isOptional": false,
29862
+ "releaseTag": "Public",
29863
+ "name": "\"PLAYER_CAMERA.SET_SHOULDER_ANGLE\"",
29864
+ "propertyTypeTokenRange": {
29865
+ "startIndex": 3,
29866
+ "endIndex": 6
29867
+ }
29868
+ },
29692
29869
  {
29693
29870
  "kind": "PropertySignature",
29694
29871
  "canonicalReference": "server!PlayerCameraEventPayloads#\"PLAYER_CAMERA.SET_TRACKED_ENTITY\":member",
@@ -34141,12 +34318,12 @@
34141
34318
  },
34142
34319
  {
34143
34320
  "kind": "Method",
34144
- "canonicalReference": "server!RigidBody#createAndAddChildCollidersToSimulation:member(1)",
34145
- "docComment": "/**\n * Creates and adds multiple child colliders to the rigid body for the simulation it belongs to.\n *\n * @param colliderOptions - The options for the child colliders to add to the rigid body.\n *\n * @returns The child colliders that were added to the rigid body.\n */\n",
34321
+ "canonicalReference": "server!RigidBody#createAndAddChildColliders:member(1)",
34322
+ "docComment": "/**\n * Creates and adds multiple child colliders to the rigid body for the simulation it belongs to.\n *\n * @remarks\n *\n * If the rigid body is not simulated, the colliders will be added to the rigid body as pending child colliders and also simulated when the rigid body is simulated.\n *\n * @param colliderOptions - The options for the child colliders to add to the rigid body.\n *\n * @returns The child colliders that were added to the rigid body.\n */\n",
34146
34323
  "excerptTokens": [
34147
34324
  {
34148
34325
  "kind": "Content",
34149
- "text": "createAndAddChildCollidersToSimulation(colliderOptions: "
34326
+ "text": "createAndAddChildColliders(colliderOptions: "
34150
34327
  },
34151
34328
  {
34152
34329
  "kind": "Reference",
@@ -34195,7 +34372,7 @@
34195
34372
  ],
34196
34373
  "isOptional": false,
34197
34374
  "isAbstract": false,
34198
- "name": "createAndAddChildCollidersToSimulation"
34375
+ "name": "createAndAddChildColliders"
34199
34376
  },
34200
34377
  {
34201
34378
  "kind": "Property",
@@ -38750,6 +38927,39 @@
38750
38927
  "name": "SimpleEntityController",
38751
38928
  "preserveMemberOrder": false,
38752
38929
  "members": [
38930
+ {
38931
+ "kind": "Constructor",
38932
+ "canonicalReference": "server!SimpleEntityController:constructor(1)",
38933
+ "docComment": "/**\n * Constructs a new instance of the `SimpleEntityController` class\n *\n * @param options - Options for the controller.\n */\n",
38934
+ "excerptTokens": [
38935
+ {
38936
+ "kind": "Content",
38937
+ "text": "constructor(options?: "
38938
+ },
38939
+ {
38940
+ "kind": "Reference",
38941
+ "text": "SimpleEntityControllerOptions",
38942
+ "canonicalReference": "server!~SimpleEntityControllerOptions:interface"
38943
+ },
38944
+ {
38945
+ "kind": "Content",
38946
+ "text": ");"
38947
+ }
38948
+ ],
38949
+ "releaseTag": "Public",
38950
+ "isProtected": false,
38951
+ "overloadIndex": 1,
38952
+ "parameters": [
38953
+ {
38954
+ "parameterName": "options",
38955
+ "parameterTypeTokenRange": {
38956
+ "startIndex": 1,
38957
+ "endIndex": 2
38958
+ },
38959
+ "isOptional": true
38960
+ }
38961
+ ]
38962
+ },
38753
38963
  {
38754
38964
  "kind": "Method",
38755
38965
  "canonicalReference": "server!SimpleEntityController#face:member(1)",
@@ -39190,6 +39400,68 @@
39190
39400
  "isOptional": false,
39191
39401
  "isAbstract": false,
39192
39402
  "name": "spawn"
39403
+ },
39404
+ {
39405
+ "kind": "Method",
39406
+ "canonicalReference": "server!SimpleEntityController#stopFace:member(1)",
39407
+ "docComment": "/**\n * Stops the entity from attempting to face a target coordinate.\n */\n",
39408
+ "excerptTokens": [
39409
+ {
39410
+ "kind": "Content",
39411
+ "text": "stopFace(): "
39412
+ },
39413
+ {
39414
+ "kind": "Content",
39415
+ "text": "void"
39416
+ },
39417
+ {
39418
+ "kind": "Content",
39419
+ "text": ";"
39420
+ }
39421
+ ],
39422
+ "isStatic": false,
39423
+ "returnTypeTokenRange": {
39424
+ "startIndex": 1,
39425
+ "endIndex": 2
39426
+ },
39427
+ "releaseTag": "Public",
39428
+ "isProtected": false,
39429
+ "overloadIndex": 1,
39430
+ "parameters": [],
39431
+ "isOptional": false,
39432
+ "isAbstract": false,
39433
+ "name": "stopFace"
39434
+ },
39435
+ {
39436
+ "kind": "Method",
39437
+ "canonicalReference": "server!SimpleEntityController#stopMove:member(1)",
39438
+ "docComment": "/**\n * Stops the entity from continuing to move it's current target coordinate.\n */\n",
39439
+ "excerptTokens": [
39440
+ {
39441
+ "kind": "Content",
39442
+ "text": "stopMove(): "
39443
+ },
39444
+ {
39445
+ "kind": "Content",
39446
+ "text": "void"
39447
+ },
39448
+ {
39449
+ "kind": "Content",
39450
+ "text": ";"
39451
+ }
39452
+ ],
39453
+ "isStatic": false,
39454
+ "returnTypeTokenRange": {
39455
+ "startIndex": 1,
39456
+ "endIndex": 2
39457
+ },
39458
+ "releaseTag": "Public",
39459
+ "isProtected": false,
39460
+ "overloadIndex": 1,
39461
+ "parameters": [],
39462
+ "isOptional": false,
39463
+ "isAbstract": false,
39464
+ "name": "stopMove"
39193
39465
  }
39194
39466
  ],
39195
39467
  "extendsTokenRange": {
@@ -40150,7 +40422,7 @@
40150
40422
  },
40151
40423
  {
40152
40424
  "kind": "Content",
40153
- "text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\"]"
40425
+ "text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"u\", \"i\", \"o\", \"j\", \"k\", \"l\", \"n\", \"m\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\"]"
40154
40426
  }
40155
40427
  ],
40156
40428
  "fileUrlPath": "src/players/Player.ts",