hytopia 0.14.48 → 0.14.49

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/bin/scripts.js CHANGED
@@ -205,6 +205,9 @@ function installProjectDependencies() {
205
205
  }
206
206
  }, null, 2))
207
207
 
208
+ // install dev dependencies
209
+ execSync('npm install --save-dev typescript', { stdio: 'inherit' });
210
+
208
211
  // install hytopia sdk and hytopia assets
209
212
  execSync('npm install --force hytopia@latest', { stdio: 'inherit' });
210
213
  execSync('npm install --save-optional --force @hytopia.com/assets@latest', { stdio: 'inherit' });
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## BLOCK\_ROTATIONS variable
6
6
 
7
- All valid block rotations.
7
+ All valid block rotations. Named as `{face pointing up}_{Y rotation degrees}`<!-- -->. N prefix = negative axis (e.g. NZ\_90 = -Z face up, rotated 90° around global Y).
8
8
 
9
9
  **Signature:**
10
10
 
@@ -762,20 +762,6 @@ Despawns the entity and all children from the world.
762
762
  Triggers an interaction on the entity from a player.
763
763
 
764
764
 
765
- </td></tr>
766
- <tr><td>
767
-
768
- [setController(controller)](./server.entity.setcontroller.md)
769
-
770
-
771
- </td><td>
772
-
773
-
774
- </td><td>
775
-
776
- Sets the controller for the entity.
777
-
778
-
779
765
  </td></tr>
780
766
  <tr><td>
781
767
 
package/docs/server.md CHANGED
@@ -1463,7 +1463,7 @@ Description
1463
1463
 
1464
1464
  </td><td>
1465
1465
 
1466
- All valid block rotations.
1466
+ All valid block rotations. Named as `{face pointing up}_{Y rotation degrees}`<!-- -->. N prefix = negative axis (e.g. NZ\_90 = -Z face up, rotated 90° around global Y).
1467
1467
 
1468
1468
 
1469
1469
  </td></tr>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.14.48",
3
+ "version": "0.14.49",
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": "./server.mjs",
package/server.api.json CHANGED
@@ -4749,7 +4749,7 @@
4749
4749
  {
4750
4750
  "kind": "Variable",
4751
4751
  "canonicalReference": "server!BLOCK_ROTATIONS:var",
4752
- "docComment": "/**\n * All valid block rotations.\n *\n * @public\n */\n",
4752
+ "docComment": "/**\n * All valid block rotations. Named as `{face pointing up}_{Y rotation degrees}`. N prefix = negative axis (e.g. NZ_90 = -Z face up, rotated 90° around global Y).\n *\n * @public\n */\n",
4753
4753
  "excerptTokens": [
4754
4754
  {
4755
4755
  "kind": "Content",
@@ -15814,59 +15814,6 @@
15814
15814
  "isProtected": false,
15815
15815
  "isAbstract": false
15816
15816
  },
15817
- {
15818
- "kind": "Method",
15819
- "canonicalReference": "server!Entity#setController:member(1)",
15820
- "docComment": "/**\n * Sets the controller for the entity.\n *\n * @param controller - The controller to set.\n */\n",
15821
- "excerptTokens": [
15822
- {
15823
- "kind": "Content",
15824
- "text": "setController(controller: "
15825
- },
15826
- {
15827
- "kind": "Reference",
15828
- "text": "BaseEntityController",
15829
- "canonicalReference": "server!BaseEntityController:class"
15830
- },
15831
- {
15832
- "kind": "Content",
15833
- "text": " | undefined"
15834
- },
15835
- {
15836
- "kind": "Content",
15837
- "text": "): "
15838
- },
15839
- {
15840
- "kind": "Content",
15841
- "text": "void"
15842
- },
15843
- {
15844
- "kind": "Content",
15845
- "text": ";"
15846
- }
15847
- ],
15848
- "isStatic": false,
15849
- "returnTypeTokenRange": {
15850
- "startIndex": 4,
15851
- "endIndex": 5
15852
- },
15853
- "releaseTag": "Public",
15854
- "isProtected": false,
15855
- "overloadIndex": 1,
15856
- "parameters": [
15857
- {
15858
- "parameterName": "controller",
15859
- "parameterTypeTokenRange": {
15860
- "startIndex": 1,
15861
- "endIndex": 3
15862
- },
15863
- "isOptional": false
15864
- }
15865
- ],
15866
- "isOptional": false,
15867
- "isAbstract": false,
15868
- "name": "setController"
15869
- },
15870
15817
  {
15871
15818
  "kind": "Method",
15872
15819
  "canonicalReference": "server!Entity#setEmissiveColor:member(1)",
package/server.d.ts CHANGED
@@ -595,7 +595,11 @@ export declare class Block {
595
595
  getNeighborGlobalCoordinateFromHitPoint(hitPoint: Vector3Like): Vector3Like;
596
596
  }
597
597
 
598
- /** All valid block rotations. @public */
598
+ /**
599
+ * All valid block rotations. Named as `{face pointing up}_{Y rotation degrees}`.
600
+ * N prefix = negative axis (e.g. NZ_90 = -Z face up, rotated 90° around global Y).
601
+ * @public
602
+ */
599
603
  export declare const BLOCK_ROTATIONS: {
600
604
  readonly Y_0: {
601
605
  readonly enumIndex: 0;
@@ -2146,11 +2150,6 @@ export declare class Entity extends RigidBody implements protocol.Serializable {
2146
2150
  * @param raycastHit - The raycast hit result, if the interaction was triggered by a client-side click/tap.
2147
2151
  */
2148
2152
  interact(player: Player, raycastHit?: RaycastHit): void;
2149
- /**
2150
- * Sets the controller for the entity.
2151
- * @param controller - The controller to set.
2152
- */
2153
- setController(controller: BaseEntityController | undefined): void;
2154
2153
  /**
2155
2154
  * Sets the emissive color of the entity.
2156
2155
  * @param emissiveColor - The emissive color of the entity.