hytopia 0.5.20 → 0.5.22-dev1

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.
@@ -9,7 +9,7 @@ The entry point for running game setup and starting the game server.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- export declare function startServer(init: (world: World) => void): void;
12
+ export declare function startServer(init: ((() => void) | ((world: World) => void))): void;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -37,12 +37,12 @@ init
37
37
 
38
38
  </td><td>
39
39
 
40
- (world: [World](./server.world.md)<!-- -->) =&gt; void
40
+ ((() =&gt; void) \| ((world: [World](./server.world.md)<!-- -->) =&gt; void))
41
41
 
42
42
 
43
43
  </td><td>
44
44
 
45
- A function that initializes the world.
45
+ A function that initializes the game. The function can take no parameters to just initialize game logic, or it can accept a world parameter. If it accepts a world parameter, a default world will be automatically created and passed to the function.
46
46
 
47
47
 
48
48
  </td></tr>
@@ -426,6 +426,27 @@ The scene UI manager for the world.
426
426
  The simulation for the world.
427
427
 
428
428
 
429
+ </td></tr>
430
+ <tr><td>
431
+
432
+ [skyboxIntensity](./server.world.skyboxintensity.md)
433
+
434
+
435
+ </td><td>
436
+
437
+ `readonly`
438
+
439
+
440
+ </td><td>
441
+
442
+ number
443
+
444
+
445
+ </td><td>
446
+
447
+ The intensity of the world's skybox brightness.
448
+
449
+
429
450
  </td></tr>
430
451
  <tr><td>
431
452
 
@@ -572,6 +593,20 @@ Sets the intensity of the world's directional light.
572
593
  Sets the position the world's directional light originates from.
573
594
 
574
595
 
596
+ </td></tr>
597
+ <tr><td>
598
+
599
+ [setSkyboxIntensity(intensity)](./server.world.setskyboxintensity.md)
600
+
601
+
602
+ </td><td>
603
+
604
+
605
+ </td><td>
606
+
607
+ Sets the intensity of the world's skybox brightness.
608
+
609
+
575
610
  </td></tr>
576
611
  <tr><td>
577
612
 
@@ -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; [World](./server.world.md) &gt; [setSkyboxIntensity](./server.world.setskyboxintensity.md)
4
+
5
+ ## World.setSkyboxIntensity() method
6
+
7
+ Sets the intensity of the world's skybox brightness.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setSkyboxIntensity(intensity: 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
+ intensity
36
+
37
+
38
+ </td><td>
39
+
40
+ number
41
+
42
+
43
+ </td><td>
44
+
45
+ The intensity.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -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; [World](./server.world.md) &gt; [skyboxIntensity](./server.world.skyboxintensity.md)
4
+
5
+ ## World.skyboxIntensity property
6
+
7
+ The intensity of the world's skybox brightness.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get skyboxIntensity(): number;
13
+ ```
@@ -99,6 +99,20 @@ SET\_DIRECTIONAL\_LIGHT\_POSITION
99
99
  </td><td>
100
100
 
101
101
 
102
+ </td></tr>
103
+ <tr><td>
104
+
105
+ SET\_SKYBOX\_INTENSITY
106
+
107
+
108
+ </td><td>
109
+
110
+ `"WORLD.SET_SKYBOX_INTENSITY"`
111
+
112
+
113
+ </td><td>
114
+
115
+
102
116
  </td></tr>
103
117
  <tr><td>
104
118
 
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [WorldEventPayloads](./server.worldeventpayloads.md) &gt; ["WORLD.SET\_SKYBOX\_INTENSITY"](./server.worldeventpayloads._world.set_skybox_intensity_.md)
4
+
5
+ ## WorldEventPayloads."WORLD.SET\_SKYBOX\_INTENSITY" property
6
+
7
+ Emitted when the intensity of the world's skybox brightness is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ [WorldEvent.SET_SKYBOX_INTENSITY]: {
13
+ world: World;
14
+ intensity: number;
15
+ };
16
+ ```
@@ -129,6 +129,25 @@ Emitted when the intensity of the world's directional light is set.
129
129
  Emitted when the position of the world's directional light is set.
130
130
 
131
131
 
132
+ </td></tr>
133
+ <tr><td>
134
+
135
+ ["WORLD.SET\_SKYBOX\_INTENSITY"](./server.worldeventpayloads._world.set_skybox_intensity_.md)
136
+
137
+
138
+ </td><td>
139
+
140
+
141
+ </td><td>
142
+
143
+ { world: [World](./server.world.md)<!-- -->; intensity: number; }
144
+
145
+
146
+ </td><td>
147
+
148
+ Emitted when the intensity of the world's skybox brightness is set.
149
+
150
+
132
151
  </td></tr>
133
152
  <tr><td>
134
153
 
@@ -168,5 +168,19 @@ Gets a world by its id.
168
168
  Gets all worlds with a specific tag.
169
169
 
170
170
 
171
+ </td></tr>
172
+ <tr><td>
173
+
174
+ [setDefaultWorld(world)](./server.worldmanager.setdefaultworld.md)
175
+
176
+
177
+ </td><td>
178
+
179
+
180
+ </td><td>
181
+
182
+ Sets the default world. This is the world players automatically join when they connect to the game.
183
+
184
+
171
185
  </td></tr>
172
186
  </tbody></table>
@@ -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; [WorldManager](./server.worldmanager.md) &gt; [setDefaultWorld](./server.worldmanager.setdefaultworld.md)
4
+
5
+ ## WorldManager.setDefaultWorld() method
6
+
7
+ Sets the default world. This is the world players automatically join when they connect to the game.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ setDefaultWorld(world: World): 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
+ world
36
+
37
+
38
+ </td><td>
39
+
40
+ [World](./server.world.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The world to set as the default.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -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; [WorldOptions](./server.worldoptions.md) &gt; [map](./server.worldoptions.map.md)
4
+
5
+ ## WorldOptions.map property
6
+
7
+ The map of the world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ map?: WorldMap;
13
+ ```
@@ -167,6 +167,25 @@ number
167
167
  The unique ID of the world.
168
168
 
169
169
 
170
+ </td></tr>
171
+ <tr><td>
172
+
173
+ [map?](./server.worldoptions.map.md)
174
+
175
+
176
+ </td><td>
177
+
178
+
179
+ </td><td>
180
+
181
+ [WorldMap](./server.worldmap.md)
182
+
183
+
184
+ </td><td>
185
+
186
+ _(Optional)_ The map of the world.
187
+
188
+
170
189
  </td></tr>
171
190
  <tr><td>
172
191
 
@@ -186,6 +205,25 @@ string
186
205
  The name of the world.
187
206
 
188
207
 
208
+ </td></tr>
209
+ <tr><td>
210
+
211
+ [skyboxIntensity?](./server.worldoptions.skyboxintensity.md)
212
+
213
+
214
+ </td><td>
215
+
216
+
217
+ </td><td>
218
+
219
+ number
220
+
221
+
222
+ </td><td>
223
+
224
+ _(Optional)_ The intensity of the skybox brightness for the world. 0 is black, 1 is full brightness, 1+ is brighter.
225
+
226
+
189
227
  </td></tr>
190
228
  <tr><td>
191
229
 
@@ -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; [WorldOptions](./server.worldoptions.md) &gt; [skyboxIntensity](./server.worldoptions.skyboxintensity.md)
4
+
5
+ ## WorldOptions.skyboxIntensity property
6
+
7
+ The intensity of the skybox brightness for the world. 0 is black, 1 is full brightness, 1+ is brighter.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ skyboxIntensity?: number;
13
+ ```