hytopia 0.10.15 → 0.10.17
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/docs/server.player.getpersisteddata.md +1 -1
- package/docs/server.world.md +14 -0
- package/docs/server.world.setskyboxuri.md +54 -0
- package/docs/server.worldevent.md +14 -0
- package/docs/server.worldeventpayloads._world.set_skybox_uri_.md +16 -0
- package/docs/server.worldeventpayloads.md +19 -0
- package/package.json +1 -1
- package/server.api.json +115 -1
- package/server.d.ts +14 -1
- package/server.mjs +4 -4
@@ -19,5 +19,5 @@ The persisted data for the player.
|
|
19
19
|
|
20
20
|
## Remarks
|
21
21
|
|
22
|
-
This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately.
|
22
|
+
This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately. If it returns an empty object {<!-- -->}<!-- -->, the player data loaded successfully but no prior data has been set.
|
23
23
|
|
package/docs/server.world.md
CHANGED
@@ -733,6 +733,20 @@ Sets the minimum distance from the camera to start applying fog.
|
|
733
733
|
Sets the intensity of the world's skybox brightness.
|
734
734
|
|
735
735
|
|
736
|
+
</td></tr>
|
737
|
+
<tr><td>
|
738
|
+
|
739
|
+
[setSkyboxUri(skyboxUri)](./server.world.setskyboxuri.md)
|
740
|
+
|
741
|
+
|
742
|
+
</td><td>
|
743
|
+
|
744
|
+
|
745
|
+
</td><td>
|
746
|
+
|
747
|
+
Sets the cubemap URI of the world's skybox.
|
748
|
+
|
749
|
+
|
736
750
|
</td></tr>
|
737
751
|
<tr><td>
|
738
752
|
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [World](./server.world.md) > [setSkyboxUri](./server.world.setskyboxuri.md)
|
4
|
+
|
5
|
+
## World.setSkyboxUri() method
|
6
|
+
|
7
|
+
Sets the cubemap URI of the world's skybox.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setSkyboxUri(skyboxUri: string): 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
|
+
skyboxUri
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
string
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The cubemap URI of the skybox.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
|
51
|
+
**Returns:**
|
52
|
+
|
53
|
+
void
|
54
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [WorldEventPayloads](./server.worldeventpayloads.md) > ["WORLD.SET\_SKYBOX\_URI"](./server.worldeventpayloads._world.set_skybox_uri_.md)
|
4
|
+
|
5
|
+
## WorldEventPayloads."WORLD.SET\_SKYBOX\_URI" property
|
6
|
+
|
7
|
+
Emitted when the URI of the world's skybox is set.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
[WorldEvent.SET_SKYBOX_URI]: {
|
13
|
+
world: World;
|
14
|
+
uri: string;
|
15
|
+
};
|
16
|
+
```
|
@@ -205,6 +205,25 @@ Emitted when the density of the world's fog is set.
|
|
205
205
|
Emitted when the intensity of the world's skybox brightness is set.
|
206
206
|
|
207
207
|
|
208
|
+
</td></tr>
|
209
|
+
<tr><td>
|
210
|
+
|
211
|
+
["WORLD.SET\_SKYBOX\_URI"](./server.worldeventpayloads._world.set_skybox_uri_.md)
|
212
|
+
|
213
|
+
|
214
|
+
</td><td>
|
215
|
+
|
216
|
+
|
217
|
+
</td><td>
|
218
|
+
|
219
|
+
{ world: [World](./server.world.md)<!-- -->; uri: string; }
|
220
|
+
|
221
|
+
|
222
|
+
</td><td>
|
223
|
+
|
224
|
+
Emitted when the URI of the world's skybox is set.
|
225
|
+
|
226
|
+
|
208
227
|
</td></tr>
|
209
228
|
<tr><td>
|
210
229
|
|
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -35578,7 +35578,7 @@
|
|
35578
35578
|
{
|
35579
35579
|
"kind": "Method",
|
35580
35580
|
"canonicalReference": "server!Player#getPersistedData:member(1)",
|
35581
|
-
"docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately.\n *\n * @returns The persisted data for the player.\n */\n",
|
35581
|
+
"docComment": "/**\n * Get the persisted data for the player.\n *\n * @remarks\n *\n * This method returns the player persisted data. If it returns undefined, the player data failed to load and your game logic should handle this case appropriately. If it returns an empty object {}, the player data loaded successfully but no prior data has been set.\n *\n * @returns The persisted data for the player.\n */\n",
|
35582
35582
|
"excerptTokens": [
|
35583
35583
|
{
|
35584
35584
|
"kind": "Content",
|
@@ -55091,6 +55091,54 @@
|
|
55091
55091
|
"isAbstract": false,
|
55092
55092
|
"name": "setSkyboxIntensity"
|
55093
55093
|
},
|
55094
|
+
{
|
55095
|
+
"kind": "Method",
|
55096
|
+
"canonicalReference": "server!World#setSkyboxUri:member(1)",
|
55097
|
+
"docComment": "/**\n * Sets the cubemap URI of the world's skybox.\n *\n * @param skyboxUri - The cubemap URI of the skybox.\n */\n",
|
55098
|
+
"excerptTokens": [
|
55099
|
+
{
|
55100
|
+
"kind": "Content",
|
55101
|
+
"text": "setSkyboxUri(skyboxUri: "
|
55102
|
+
},
|
55103
|
+
{
|
55104
|
+
"kind": "Content",
|
55105
|
+
"text": "string"
|
55106
|
+
},
|
55107
|
+
{
|
55108
|
+
"kind": "Content",
|
55109
|
+
"text": "): "
|
55110
|
+
},
|
55111
|
+
{
|
55112
|
+
"kind": "Content",
|
55113
|
+
"text": "void"
|
55114
|
+
},
|
55115
|
+
{
|
55116
|
+
"kind": "Content",
|
55117
|
+
"text": ";"
|
55118
|
+
}
|
55119
|
+
],
|
55120
|
+
"isStatic": false,
|
55121
|
+
"returnTypeTokenRange": {
|
55122
|
+
"startIndex": 3,
|
55123
|
+
"endIndex": 4
|
55124
|
+
},
|
55125
|
+
"releaseTag": "Public",
|
55126
|
+
"isProtected": false,
|
55127
|
+
"overloadIndex": 1,
|
55128
|
+
"parameters": [
|
55129
|
+
{
|
55130
|
+
"parameterName": "skyboxUri",
|
55131
|
+
"parameterTypeTokenRange": {
|
55132
|
+
"startIndex": 1,
|
55133
|
+
"endIndex": 2
|
55134
|
+
},
|
55135
|
+
"isOptional": false
|
55136
|
+
}
|
55137
|
+
],
|
55138
|
+
"isOptional": false,
|
55139
|
+
"isAbstract": false,
|
55140
|
+
"name": "setSkyboxUri"
|
55141
|
+
},
|
55094
55142
|
{
|
55095
55143
|
"kind": "Property",
|
55096
55144
|
"canonicalReference": "server!World#simulation:member",
|
@@ -55490,6 +55538,27 @@
|
|
55490
55538
|
"releaseTag": "Public",
|
55491
55539
|
"name": "SET_SKYBOX_INTENSITY"
|
55492
55540
|
},
|
55541
|
+
{
|
55542
|
+
"kind": "EnumMember",
|
55543
|
+
"canonicalReference": "server!WorldEvent.SET_SKYBOX_URI:member",
|
55544
|
+
"docComment": "",
|
55545
|
+
"excerptTokens": [
|
55546
|
+
{
|
55547
|
+
"kind": "Content",
|
55548
|
+
"text": "SET_SKYBOX_URI = "
|
55549
|
+
},
|
55550
|
+
{
|
55551
|
+
"kind": "Content",
|
55552
|
+
"text": "\"WORLD.SET_SKYBOX_URI\""
|
55553
|
+
}
|
55554
|
+
],
|
55555
|
+
"initializerTokenRange": {
|
55556
|
+
"startIndex": 1,
|
55557
|
+
"endIndex": 2
|
55558
|
+
},
|
55559
|
+
"releaseTag": "Public",
|
55560
|
+
"name": "SET_SKYBOX_URI"
|
55561
|
+
},
|
55493
55562
|
{
|
55494
55563
|
"kind": "EnumMember",
|
55495
55564
|
"canonicalReference": "server!WorldEvent.START:member",
|
@@ -55990,6 +56059,51 @@
|
|
55990
56059
|
"endIndex": 6
|
55991
56060
|
}
|
55992
56061
|
},
|
56062
|
+
{
|
56063
|
+
"kind": "PropertySignature",
|
56064
|
+
"canonicalReference": "server!WorldEventPayloads#\"WORLD.SET_SKYBOX_URI\":member",
|
56065
|
+
"docComment": "/**\n * Emitted when the URI of the world's skybox is set.\n */\n",
|
56066
|
+
"excerptTokens": [
|
56067
|
+
{
|
56068
|
+
"kind": "Content",
|
56069
|
+
"text": "["
|
56070
|
+
},
|
56071
|
+
{
|
56072
|
+
"kind": "Reference",
|
56073
|
+
"text": "WorldEvent.SET_SKYBOX_URI",
|
56074
|
+
"canonicalReference": "server!WorldEvent.SET_SKYBOX_URI:member"
|
56075
|
+
},
|
56076
|
+
{
|
56077
|
+
"kind": "Content",
|
56078
|
+
"text": "]: "
|
56079
|
+
},
|
56080
|
+
{
|
56081
|
+
"kind": "Content",
|
56082
|
+
"text": "{\n world: "
|
56083
|
+
},
|
56084
|
+
{
|
56085
|
+
"kind": "Reference",
|
56086
|
+
"text": "World",
|
56087
|
+
"canonicalReference": "server!World:class"
|
56088
|
+
},
|
56089
|
+
{
|
56090
|
+
"kind": "Content",
|
56091
|
+
"text": ";\n uri: string;\n }"
|
56092
|
+
},
|
56093
|
+
{
|
56094
|
+
"kind": "Content",
|
56095
|
+
"text": ";"
|
56096
|
+
}
|
56097
|
+
],
|
56098
|
+
"isReadonly": false,
|
56099
|
+
"isOptional": false,
|
56100
|
+
"releaseTag": "Public",
|
56101
|
+
"name": "\"WORLD.SET_SKYBOX_URI\"",
|
56102
|
+
"propertyTypeTokenRange": {
|
56103
|
+
"startIndex": 3,
|
56104
|
+
"endIndex": 6
|
56105
|
+
}
|
56106
|
+
},
|
55993
56107
|
{
|
55994
56108
|
"kind": "PropertySignature",
|
55995
56109
|
"canonicalReference": "server!WorldEventPayloads#\"WORLD.START\":member",
|
package/server.d.ts
CHANGED
@@ -4406,7 +4406,9 @@ export declare class Player extends EventRouter implements protocol.Serializable
|
|
4406
4406
|
* @remarks
|
4407
4407
|
* This method returns the player persisted data. If it returns
|
4408
4408
|
* undefined, the player data failed to load and your game
|
4409
|
-
* logic should handle this case appropriately.
|
4409
|
+
* logic should handle this case appropriately. If it returns
|
4410
|
+
* an empty object {}, the player data loaded successfully but
|
4411
|
+
* no prior data has been set.
|
4410
4412
|
*
|
4411
4413
|
* @returns The persisted data for the player.
|
4412
4414
|
*/
|
@@ -6980,6 +6982,11 @@ export declare class World extends EventRouter implements protocol.Serializable
|
|
6980
6982
|
* @param intensity - The intensity.
|
6981
6983
|
*/
|
6982
6984
|
setSkyboxIntensity(intensity: number): void;
|
6985
|
+
/**
|
6986
|
+
* Sets the cubemap URI of the world's skybox.
|
6987
|
+
* @param skyboxUri - The cubemap URI of the skybox.
|
6988
|
+
*/
|
6989
|
+
setSkyboxUri(skyboxUri: string): void;
|
6983
6990
|
/**
|
6984
6991
|
* Starts the world loop, which begins ticking physics, entities, etc.
|
6985
6992
|
*/
|
@@ -7002,6 +7009,7 @@ export declare enum WorldEvent {
|
|
7002
7009
|
SET_FOG_FAR = "WORLD.SET_FOG_FAR",
|
7003
7010
|
SET_FOG_NEAR = "WORLD.SET_FOG_NEAR",
|
7004
7011
|
SET_SKYBOX_INTENSITY = "WORLD.SET_SKYBOX_INTENSITY",
|
7012
|
+
SET_SKYBOX_URI = "WORLD.SET_SKYBOX_URI",
|
7005
7013
|
START = "WORLD.START",
|
7006
7014
|
STOP = "WORLD.STOP"
|
7007
7015
|
}
|
@@ -7053,6 +7061,11 @@ export declare interface WorldEventPayloads {
|
|
7053
7061
|
world: World;
|
7054
7062
|
intensity: number;
|
7055
7063
|
};
|
7064
|
+
/** Emitted when the URI of the world's skybox is set. */
|
7065
|
+
[WorldEvent.SET_SKYBOX_URI]: {
|
7066
|
+
world: World;
|
7067
|
+
uri: string;
|
7068
|
+
};
|
7056
7069
|
/** Emitted when the world starts. */
|
7057
7070
|
[WorldEvent.START]: {
|
7058
7071
|
world: World;
|