hytopia 0.11.4 → 0.11.5

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,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [BlockTextureRegistry](./server.blocktextureregistry.md) &gt; [generate](./server.blocktextureregistry.generate.md)
4
+
5
+ ## BlockTextureRegistry.generate property
6
+
7
+ Whether to generate the atlas if needed. Defaults to `true` in development, `false` in production.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ generate: boolean;
13
+ ```
@@ -53,7 +53,7 @@ Description
53
53
  </th></tr></thead>
54
54
  <tbody><tr><td>
55
55
 
56
- [generateEveryStart](./server.blocktextureregistry.generateeverystart.md)
56
+ [generate](./server.blocktextureregistry.generate.md)
57
57
 
58
58
 
59
59
  </td><td>
@@ -66,7 +66,7 @@ boolean
66
66
 
67
67
  </td><td>
68
68
 
69
- Whether to always generate the atlas on server start.
69
+ Whether to generate the atlas if needed. Defaults to `true` in development, `false` in production.
70
70
 
71
71
 
72
72
  </td></tr>
@@ -89,26 +89,7 @@ boolean
89
89
 
90
90
  </td><td>
91
91
 
92
- Whether to use optimized models when they are loaded.
93
-
94
-
95
- </td></tr>
96
- <tr><td>
97
-
98
- [optimizeEveryStart](./server.modelregistry.optimizeeverystart.md)
99
-
100
-
101
- </td><td>
102
-
103
-
104
- </td><td>
105
-
106
- boolean
107
-
108
-
109
- </td><td>
110
-
111
- Whether to always run model optimization on server start.
92
+ Whether to generate optimized models if needed. Defaults to `true` in development, `false` in production.
112
93
 
113
94
 
114
95
  </td></tr>
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## ModelRegistry.optimize property
6
6
 
7
- Whether to use optimized models when they are loaded.
7
+ Whether to generate optimized models if needed. Defaults to `true` in development, `false` in production.
8
8
 
9
9
  **Signature:**
10
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
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
@@ -4913,12 +4913,12 @@
4913
4913
  "members": [
4914
4914
  {
4915
4915
  "kind": "Property",
4916
- "canonicalReference": "server!BlockTextureRegistry#generateEveryStart:member",
4917
- "docComment": "/**\n * Whether to always generate the atlas on server start.\n */\n",
4916
+ "canonicalReference": "server!BlockTextureRegistry#generate:member",
4917
+ "docComment": "/**\n * Whether to generate the atlas if needed. Defaults to `true` in development, `false` in production.\n */\n",
4918
4918
  "excerptTokens": [
4919
4919
  {
4920
4920
  "kind": "Content",
4921
- "text": "generateEveryStart: "
4921
+ "text": "generate: "
4922
4922
  },
4923
4923
  {
4924
4924
  "kind": "Content",
@@ -4932,7 +4932,7 @@
4932
4932
  "isReadonly": false,
4933
4933
  "isOptional": false,
4934
4934
  "releaseTag": "Public",
4935
- "name": "generateEveryStart",
4935
+ "name": "generate",
4936
4936
  "propertyTypeTokenRange": {
4937
4937
  "startIndex": 1,
4938
4938
  "endIndex": 2
@@ -28816,7 +28816,7 @@
28816
28816
  {
28817
28817
  "kind": "Property",
28818
28818
  "canonicalReference": "server!ModelRegistry#optimize:member",
28819
- "docComment": "/**\n * Whether to use optimized models when they are loaded.\n */\n",
28819
+ "docComment": "/**\n * Whether to generate optimized models if needed. Defaults to `true` in development, `false` in production.\n */\n",
28820
28820
  "excerptTokens": [
28821
28821
  {
28822
28822
  "kind": "Content",
@@ -28842,36 +28842,6 @@
28842
28842
  "isStatic": false,
28843
28843
  "isProtected": false,
28844
28844
  "isAbstract": false
28845
- },
28846
- {
28847
- "kind": "Property",
28848
- "canonicalReference": "server!ModelRegistry#optimizeEveryStart:member",
28849
- "docComment": "/**\n * Whether to always run model optimization on server start.\n */\n",
28850
- "excerptTokens": [
28851
- {
28852
- "kind": "Content",
28853
- "text": "optimizeEveryStart: "
28854
- },
28855
- {
28856
- "kind": "Content",
28857
- "text": "boolean"
28858
- },
28859
- {
28860
- "kind": "Content",
28861
- "text": ";"
28862
- }
28863
- ],
28864
- "isReadonly": false,
28865
- "isOptional": false,
28866
- "releaseTag": "Public",
28867
- "name": "optimizeEveryStart",
28868
- "propertyTypeTokenRange": {
28869
- "startIndex": 1,
28870
- "endIndex": 2
28871
- },
28872
- "isStatic": false,
28873
- "isProtected": false,
28874
- "isAbstract": false
28875
28845
  }
28876
28846
  ],
28877
28847
  "implementsTokenRanges": []
package/server.d.ts CHANGED
@@ -597,8 +597,8 @@ export declare type BlockTextureMetadata = {
597
597
  export declare class BlockTextureRegistry {
598
598
  /** The global BlockTextureRegistry instance as a singleton. */
599
599
  static readonly instance: BlockTextureRegistry;
600
- /** Whether to always generate the atlas on server start. */
601
- generateEveryStart: boolean;
600
+ /** Whether to generate the atlas if needed. Defaults to `true` in development, `false` in production. */
601
+ generate: boolean;
602
602
 
603
603
 
604
604
  /**
@@ -3532,10 +3532,8 @@ export declare interface ModelEntityOptions extends BaseEntityOptions {
3532
3532
  export declare class ModelRegistry {
3533
3533
  /** The global ModelRegistry instance as a singleton. */
3534
3534
  static readonly instance: ModelRegistry;
3535
- /** Whether to use optimized models when they are loaded. */
3535
+ /** Whether to generate optimized models if needed. Defaults to `true` in development, `false` in production. */
3536
3536
  optimize: boolean;
3537
- /** Whether to always run model optimization on server start. */
3538
- optimizeEveryStart: boolean;
3539
3537
 
3540
3538
 
3541
3539