hytopia 0.11.5 → 0.11.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.
@@ -0,0 +1,56 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ModelRegistry](./server.modelregistry.md) &gt; [hasModel](./server.modelregistry.hasmodel.md)
4
+
5
+ ## ModelRegistry.hasModel() method
6
+
7
+ Checks if a model is registered in the model registry.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ hasModel(modelUri: string): boolean;
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
+ modelUri
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The URI of the model to check.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+
51
+ **Returns:**
52
+
53
+ boolean
54
+
55
+ Whether the model is registered.
56
+
@@ -210,6 +210,20 @@ Retrieves the trimesh of a model.
210
210
  Retrieves the X-axis width of a model for a scale of 1.
211
211
 
212
212
 
213
+ </td></tr>
214
+ <tr><td>
215
+
216
+ [hasModel(modelUri)](./server.modelregistry.hasmodel.md)
217
+
218
+
219
+ </td><td>
220
+
221
+
222
+ </td><td>
223
+
224
+ Checks if a model is registered in the model registry.
225
+
226
+
213
227
  </td></tr>
214
228
  <tr><td>
215
229
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.11.5",
3
+ "version": "0.11.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": "./server.mjs",
package/server.api.json CHANGED
@@ -28718,6 +28718,54 @@
28718
28718
  "isAbstract": false,
28719
28719
  "name": "getWidth"
28720
28720
  },
28721
+ {
28722
+ "kind": "Method",
28723
+ "canonicalReference": "server!ModelRegistry#hasModel:member(1)",
28724
+ "docComment": "/**\n * Checks if a model is registered in the model registry.\n *\n * @param modelUri - The URI of the model to check.\n *\n * @returns Whether the model is registered.\n */\n",
28725
+ "excerptTokens": [
28726
+ {
28727
+ "kind": "Content",
28728
+ "text": "hasModel(modelUri: "
28729
+ },
28730
+ {
28731
+ "kind": "Content",
28732
+ "text": "string"
28733
+ },
28734
+ {
28735
+ "kind": "Content",
28736
+ "text": "): "
28737
+ },
28738
+ {
28739
+ "kind": "Content",
28740
+ "text": "boolean"
28741
+ },
28742
+ {
28743
+ "kind": "Content",
28744
+ "text": ";"
28745
+ }
28746
+ ],
28747
+ "isStatic": false,
28748
+ "returnTypeTokenRange": {
28749
+ "startIndex": 3,
28750
+ "endIndex": 4
28751
+ },
28752
+ "releaseTag": "Public",
28753
+ "isProtected": false,
28754
+ "overloadIndex": 1,
28755
+ "parameters": [
28756
+ {
28757
+ "parameterName": "modelUri",
28758
+ "parameterTypeTokenRange": {
28759
+ "startIndex": 1,
28760
+ "endIndex": 2
28761
+ },
28762
+ "isOptional": false
28763
+ }
28764
+ ],
28765
+ "isOptional": false,
28766
+ "isAbstract": false,
28767
+ "name": "hasModel"
28768
+ },
28721
28769
  {
28722
28770
  "kind": "Property",
28723
28771
  "canonicalReference": "server!ModelRegistry.instance:member",
package/server.d.ts CHANGED
@@ -3590,6 +3590,13 @@ export declare class ModelRegistry {
3590
3590
  * @returns The width of the model.
3591
3591
  */
3592
3592
  getWidth(modelUri: string): number;
3593
+ /**
3594
+ * Checks if a model is registered in the model registry.
3595
+ *
3596
+ * @param modelUri - The URI of the model to check.
3597
+ * @returns Whether the model is registered.
3598
+ */
3599
+ hasModel(modelUri: string): boolean;
3593
3600
  /**
3594
3601
  * Checks if a model has a node with the given name.
3595
3602
  *