hytopia 0.1.67 → 0.1.68

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.
@@ -217,6 +217,25 @@ string
217
217
  </td><td>
218
218
 
219
219
 
220
+ </td></tr>
221
+ <tr><td>
222
+
223
+ [viewDistance](./server.sceneui.viewdistance.md)
224
+
225
+
226
+ </td><td>
227
+
228
+ `readonly`
229
+
230
+
231
+ </td><td>
232
+
233
+ number \| undefined
234
+
235
+
236
+ </td><td>
237
+
238
+
220
239
  </td></tr>
221
240
  <tr><td>
222
241
 
@@ -326,6 +345,20 @@ Sets the position of the SceneUI. Will detach from entity if attached.
326
345
  Sets the state of the SceneUI by performing a shallow merge with existing state.
327
346
 
328
347
 
348
+ </td></tr>
349
+ <tr><td>
350
+
351
+ [setViewDistance(viewDistance)](./server.sceneui.setviewdistance.md)
352
+
353
+
354
+ </td><td>
355
+
356
+
357
+ </td><td>
358
+
359
+ Sets the view distance of the SceneUI.
360
+
361
+
329
362
  </td></tr>
330
363
  <tr><td>
331
364
 
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [setViewDistance](./server.sceneui.setviewdistance.md)
4
+
5
+ ## SceneUI.setViewDistance() method
6
+
7
+ Sets the view distance of the SceneUI.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setViewDistance(viewDistance: number): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ viewDistance
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The view distance in the world.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [viewDistance](./server.sceneui.viewdistance.md)
4
+
5
+ ## SceneUI.viewDistance property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get viewDistance(): number | undefined;
11
+ ```
@@ -129,5 +129,24 @@ string
129
129
  The template ID to use for this SceneUI
130
130
 
131
131
 
132
+ </td></tr>
133
+ <tr><td>
134
+
135
+ [viewDistance?](./server.sceneuioptions.viewdistance.md)
136
+
137
+
138
+ </td><td>
139
+
140
+
141
+ </td><td>
142
+
143
+ number
144
+
145
+
146
+ </td><td>
147
+
148
+ _(Optional)_ The maximum view distance the SceneUI will be visible to the player
149
+
150
+
132
151
  </td></tr>
133
152
  </tbody></table>
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUIOptions](./server.sceneuioptions.md) &gt; [viewDistance](./server.sceneuioptions.viewdistance.md)
4
+
5
+ ## SceneUIOptions.viewDistance property
6
+
7
+ The maximum view distance the SceneUI will be visible to the player
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ viewDistance?: number;
13
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "main": "server.js",
6
6
  "bin": {
package/server.api.json CHANGED
@@ -24754,6 +24754,54 @@
24754
24754
  "isAbstract": false,
24755
24755
  "name": "setState"
24756
24756
  },
24757
+ {
24758
+ "kind": "Method",
24759
+ "canonicalReference": "server!SceneUI#setViewDistance:member(1)",
24760
+ "docComment": "/**\n * Sets the view distance of the SceneUI.\n *\n * @param viewDistance - The view distance in the world.\n */\n",
24761
+ "excerptTokens": [
24762
+ {
24763
+ "kind": "Content",
24764
+ "text": "setViewDistance(viewDistance: "
24765
+ },
24766
+ {
24767
+ "kind": "Content",
24768
+ "text": "number"
24769
+ },
24770
+ {
24771
+ "kind": "Content",
24772
+ "text": "): "
24773
+ },
24774
+ {
24775
+ "kind": "Content",
24776
+ "text": "void"
24777
+ },
24778
+ {
24779
+ "kind": "Content",
24780
+ "text": ";"
24781
+ }
24782
+ ],
24783
+ "isStatic": false,
24784
+ "returnTypeTokenRange": {
24785
+ "startIndex": 3,
24786
+ "endIndex": 4
24787
+ },
24788
+ "releaseTag": "Public",
24789
+ "isProtected": false,
24790
+ "overloadIndex": 1,
24791
+ "parameters": [
24792
+ {
24793
+ "parameterName": "viewDistance",
24794
+ "parameterTypeTokenRange": {
24795
+ "startIndex": 1,
24796
+ "endIndex": 2
24797
+ },
24798
+ "isOptional": false
24799
+ }
24800
+ ],
24801
+ "isOptional": false,
24802
+ "isAbstract": false,
24803
+ "name": "setViewDistance"
24804
+ },
24757
24805
  {
24758
24806
  "kind": "Property",
24759
24807
  "canonicalReference": "server!SceneUI#state:member",
@@ -24850,6 +24898,36 @@
24850
24898
  "isAbstract": false,
24851
24899
  "name": "unload"
24852
24900
  },
24901
+ {
24902
+ "kind": "Property",
24903
+ "canonicalReference": "server!SceneUI#viewDistance:member",
24904
+ "docComment": "",
24905
+ "excerptTokens": [
24906
+ {
24907
+ "kind": "Content",
24908
+ "text": "get viewDistance(): "
24909
+ },
24910
+ {
24911
+ "kind": "Content",
24912
+ "text": "number | undefined"
24913
+ },
24914
+ {
24915
+ "kind": "Content",
24916
+ "text": ";"
24917
+ }
24918
+ ],
24919
+ "isReadonly": true,
24920
+ "isOptional": false,
24921
+ "releaseTag": "Public",
24922
+ "name": "viewDistance",
24923
+ "propertyTypeTokenRange": {
24924
+ "startIndex": 1,
24925
+ "endIndex": 2
24926
+ },
24927
+ "isStatic": false,
24928
+ "isProtected": false,
24929
+ "isAbstract": false
24930
+ },
24853
24931
  {
24854
24932
  "kind": "Property",
24855
24933
  "canonicalReference": "server!SceneUI#world:member",
@@ -25234,6 +25312,33 @@
25234
25312
  "startIndex": 1,
25235
25313
  "endIndex": 2
25236
25314
  }
25315
+ },
25316
+ {
25317
+ "kind": "PropertySignature",
25318
+ "canonicalReference": "server!SceneUIOptions#viewDistance:member",
25319
+ "docComment": "/**\n * The maximum view distance the SceneUI will be visible to the player\n */\n",
25320
+ "excerptTokens": [
25321
+ {
25322
+ "kind": "Content",
25323
+ "text": "viewDistance?: "
25324
+ },
25325
+ {
25326
+ "kind": "Content",
25327
+ "text": "number"
25328
+ },
25329
+ {
25330
+ "kind": "Content",
25331
+ "text": ";"
25332
+ }
25333
+ ],
25334
+ "isReadonly": false,
25335
+ "isOptional": true,
25336
+ "releaseTag": "Public",
25337
+ "name": "viewDistance",
25338
+ "propertyTypeTokenRange": {
25339
+ "startIndex": 1,
25340
+ "endIndex": 2
25341
+ }
25237
25342
  }
25238
25343
  ],
25239
25344
  "extendsTokenRanges": []
package/server.d.ts CHANGED
@@ -3034,6 +3034,7 @@ export declare class SceneUI implements protocol.Serializable {
3034
3034
 
3035
3035
 
3036
3036
 
3037
+
3037
3038
  /**
3038
3039
  * @param options - The options for the SceneUI instance.
3039
3040
  */
@@ -3045,6 +3046,7 @@ export declare class SceneUI implements protocol.Serializable {
3045
3046
  get position(): Vector3Like | undefined;
3046
3047
  get state(): Readonly<object>;
3047
3048
  get templateId(): string;
3049
+ get viewDistance(): number | undefined;
3048
3050
  get world(): World | undefined;
3049
3051
  /**
3050
3052
  * Loads the SceneUI into the world.
@@ -3076,6 +3078,12 @@ export declare class SceneUI implements protocol.Serializable {
3076
3078
  * @param state - The state to set.
3077
3079
  */
3078
3080
  setState(state: object): void;
3081
+ /**
3082
+ * Sets the view distance of the SceneUI.
3083
+ *
3084
+ * @param viewDistance - The view distance in the world.
3085
+ */
3086
+ setViewDistance(viewDistance: number): void;
3079
3087
  /**
3080
3088
  * Unloads the SceneUI from the world.
3081
3089
  */
@@ -3137,6 +3145,8 @@ export declare interface SceneUIOptions {
3137
3145
  state?: object;
3138
3146
  /** The template ID to use for this SceneUI */
3139
3147
  templateId: string;
3148
+ /** The maximum view distance the SceneUI will be visible to the player */
3149
+ viewDistance?: number;
3140
3150
  }
3141
3151
 
3142
3152
  /**