hytopia 0.1.68 → 0.1.70
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.light._constructor_.md +49 -0
- package/docs/server.light.angle.md +13 -0
- package/docs/server.light.attachedtoentity.md +13 -0
- package/docs/server.light.color.md +13 -0
- package/docs/server.light.despawn.md +17 -0
- package/docs/server.light.distance.md +13 -0
- package/docs/server.light.id.md +13 -0
- package/docs/server.light.intensity.md +13 -0
- package/docs/server.light.isspawned.md +13 -0
- package/docs/server.light.md +573 -0
- package/docs/server.light.offset.md +13 -0
- package/docs/server.light.penumbra.md +13 -0
- package/docs/server.light.position.md +13 -0
- package/docs/server.light.setangle.md +53 -0
- package/docs/server.light.setattachedtoentity.md +53 -0
- package/docs/server.light.setcolor.md +53 -0
- package/docs/server.light.setdistance.md +53 -0
- package/docs/server.light.setintensity.md +53 -0
- package/docs/server.light.setoffset.md +53 -0
- package/docs/server.light.setpenumbra.md +53 -0
- package/docs/server.light.setposition.md +53 -0
- package/docs/server.light.settrackedentity.md +53 -0
- package/docs/server.light.settrackedposition.md +53 -0
- package/docs/server.light.spawn.md +53 -0
- package/docs/server.light.trackedentity.md +13 -0
- package/docs/server.light.trackedposition.md +13 -0
- package/docs/server.light.type.md +13 -0
- package/docs/server.light.world.md +13 -0
- package/docs/server.lighteventpayload.despawn.light.md +11 -0
- package/docs/server.lighteventpayload.despawn.md +53 -0
- package/docs/server.lighteventpayload.md +136 -0
- package/docs/server.lighteventpayload.setangle.angle.md +11 -0
- package/docs/server.lighteventpayload.setangle.light.md +11 -0
- package/docs/server.lighteventpayload.setangle.md +70 -0
- package/docs/server.lighteventpayload.setattachedtoentity.entity.md +11 -0
- package/docs/server.lighteventpayload.setattachedtoentity.light.md +11 -0
- package/docs/server.lighteventpayload.setattachedtoentity.md +70 -0
- package/docs/server.lighteventpayload.setcolor.color.md +11 -0
- package/docs/server.lighteventpayload.setcolor.light.md +11 -0
- package/docs/server.lighteventpayload.setcolor.md +70 -0
- package/docs/server.lighteventpayload.setdistance.distance.md +11 -0
- package/docs/server.lighteventpayload.setdistance.light.md +11 -0
- package/docs/server.lighteventpayload.setdistance.md +70 -0
- package/docs/server.lighteventpayload.setintensity.intensity.md +11 -0
- package/docs/server.lighteventpayload.setintensity.light.md +11 -0
- package/docs/server.lighteventpayload.setintensity.md +70 -0
- package/docs/server.lighteventpayload.setoffset.light.md +11 -0
- package/docs/server.lighteventpayload.setoffset.md +70 -0
- package/docs/server.lighteventpayload.setoffset.offset.md +11 -0
- package/docs/server.lighteventpayload.setpenumbra.light.md +11 -0
- package/docs/server.lighteventpayload.setpenumbra.md +70 -0
- package/docs/server.lighteventpayload.setpenumbra.penumbra.md +11 -0
- package/docs/server.lighteventpayload.setposition.light.md +11 -0
- package/docs/server.lighteventpayload.setposition.md +70 -0
- package/docs/server.lighteventpayload.setposition.position.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.entity.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.light.md +11 -0
- package/docs/server.lighteventpayload.settrackedentity.md +70 -0
- package/docs/server.lighteventpayload.settrackedposition.light.md +11 -0
- package/docs/server.lighteventpayload.settrackedposition.md +70 -0
- package/docs/server.lighteventpayload.settrackedposition.position.md +11 -0
- package/docs/server.lighteventpayload.spawn.light.md +11 -0
- package/docs/server.lighteventpayload.spawn.md +53 -0
- package/docs/server.lighteventtype.md +215 -0
- package/docs/server.lightmanager.getallentityattachedlights.md +55 -0
- package/docs/server.lightmanager.getalllights.md +19 -0
- package/docs/server.lightmanager.md +113 -0
- package/docs/server.lightmanager.world.md +13 -0
- package/docs/server.lightoptions.angle.md +13 -0
- package/docs/server.lightoptions.attachedtoentity.md +13 -0
- package/docs/server.lightoptions.color.md +13 -0
- package/docs/server.lightoptions.distance.md +13 -0
- package/docs/server.lightoptions.intensity.md +13 -0
- package/docs/server.lightoptions.md +247 -0
- package/docs/server.lightoptions.offset.md +13 -0
- package/docs/server.lightoptions.penumbra.md +13 -0
- package/docs/server.lightoptions.position.md +13 -0
- package/docs/server.lightoptions.trackedentity.md +13 -0
- package/docs/server.lightoptions.trackedposition.md +13 -0
- package/docs/server.lightoptions.type.md +13 -0
- package/docs/server.lighttype.md +61 -0
- package/docs/server.md +66 -0
- package/docs/server.sceneui.attachedtoentity.md +2 -0
- package/docs/server.sceneui.id.md +2 -0
- package/docs/server.sceneui.isloaded.md +2 -0
- package/docs/server.sceneui.md +18 -0
- package/docs/server.sceneui.offset.md +2 -0
- package/docs/server.sceneui.position.md +2 -0
- package/docs/server.sceneui.state.md +2 -0
- package/docs/server.sceneui.templateid.md +2 -0
- package/docs/server.sceneui.viewdistance.md +2 -0
- package/docs/server.sceneui.world.md +2 -0
- package/docs/server.world.ambientlightcolor.md +13 -0
- package/docs/server.world.ambientlightintensity.md +13 -0
- package/docs/server.world.directionallightcolor.md +13 -0
- package/docs/server.world.directionallightintensity.md +13 -0
- package/docs/server.world.directionallightposition.md +13 -0
- package/docs/server.world.lightmanager.md +13 -0
- package/docs/server.world.md +196 -0
- package/docs/server.world.setambientlightcolor.md +53 -0
- package/docs/server.world.setambientlightintensity.md +53 -0
- package/docs/server.world.setdirectionallightcolor.md +53 -0
- package/docs/server.world.setdirectionallightintensity.md +53 -0
- package/docs/server.world.setdirectionallightposition.md +53 -0
- package/docs/server.worldoptions.ambientlightcolor.md +13 -0
- package/docs/server.worldoptions.ambientlightintensity.md +13 -0
- package/docs/server.worldoptions.directionallightcolor.md +13 -0
- package/docs/server.worldoptions.directionallightintensity.md +13 -0
- package/docs/server.worldoptions.directionallightposition.md +13 -0
- package/docs/server.worldoptions.md +95 -0
- package/examples/lighting/README.md +3 -0
- package/examples/lighting/assets/map.json +13153 -0
- package/examples/lighting/index.ts +120 -0
- package/examples/lighting/package.json +16 -0
- package/package.json +1 -1
- package/server.api.json +3382 -89
- package/server.d.ts +339 -1
- package/server.js +84 -84
@@ -0,0 +1,53 @@
|
|
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) > [setDirectionalLightColor](./server.world.setdirectionallightcolor.md)
|
4
|
+
|
5
|
+
## World.setDirectionalLightColor() method
|
6
|
+
|
7
|
+
Sets the color of the world's directional light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setDirectionalLightColor(color: RgbColor): 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
|
+
color
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[RgbColor](./server.rgbcolor.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The color of the light.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
void
|
53
|
+
|
@@ -0,0 +1,53 @@
|
|
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) > [setDirectionalLightIntensity](./server.world.setdirectionallightintensity.md)
|
4
|
+
|
5
|
+
## World.setDirectionalLightIntensity() method
|
6
|
+
|
7
|
+
Sets the intensity of the world's directional light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setDirectionalLightIntensity(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,53 @@
|
|
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) > [setDirectionalLightPosition](./server.world.setdirectionallightposition.md)
|
4
|
+
|
5
|
+
## World.setDirectionalLightPosition() method
|
6
|
+
|
7
|
+
Sets the position the world's directional light originates from.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
setDirectionalLightPosition(position: Vector3Like): 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
|
+
position
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Vector3Like](./server.vector3like.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The position in the world.
|
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) > [server](./server.md) > [WorldOptions](./server.worldoptions.md) > [ambientLightColor](./server.worldoptions.ambientlightcolor.md)
|
4
|
+
|
5
|
+
## WorldOptions.ambientLightColor property
|
6
|
+
|
7
|
+
The color of the ambient light for the world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
ambientLightColor?: RgbColor;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [WorldOptions](./server.worldoptions.md) > [ambientLightIntensity](./server.worldoptions.ambientlightintensity.md)
|
4
|
+
|
5
|
+
## WorldOptions.ambientLightIntensity property
|
6
|
+
|
7
|
+
The intensity of the ambient light for the world. 0 to 1+
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
ambientLightIntensity?: number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [WorldOptions](./server.worldoptions.md) > [directionalLightColor](./server.worldoptions.directionallightcolor.md)
|
4
|
+
|
5
|
+
## WorldOptions.directionalLightColor property
|
6
|
+
|
7
|
+
The color of the directional light for the world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
directionalLightColor?: RgbColor;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [WorldOptions](./server.worldoptions.md) > [directionalLightIntensity](./server.worldoptions.directionallightintensity.md)
|
4
|
+
|
5
|
+
## WorldOptions.directionalLightIntensity property
|
6
|
+
|
7
|
+
The intensity of the directional light for the world. 0 to 1+
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
directionalLightIntensity?: number;
|
13
|
+
```
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [WorldOptions](./server.worldoptions.md) > [directionalLightPosition](./server.worldoptions.directionallightposition.md)
|
4
|
+
|
5
|
+
## WorldOptions.directionalLightPosition property
|
6
|
+
|
7
|
+
The position the directional light originates from for the world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
directionalLightPosition?: Vector3Like;
|
13
|
+
```
|
@@ -37,6 +37,101 @@ Description
|
|
37
37
|
</th></tr></thead>
|
38
38
|
<tbody><tr><td>
|
39
39
|
|
40
|
+
[ambientLightColor?](./server.worldoptions.ambientlightcolor.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
[RgbColor](./server.rgbcolor.md)
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
_(Optional)_ The color of the ambient light for the world.
|
54
|
+
|
55
|
+
|
56
|
+
</td></tr>
|
57
|
+
<tr><td>
|
58
|
+
|
59
|
+
[ambientLightIntensity?](./server.worldoptions.ambientlightintensity.md)
|
60
|
+
|
61
|
+
|
62
|
+
</td><td>
|
63
|
+
|
64
|
+
|
65
|
+
</td><td>
|
66
|
+
|
67
|
+
number
|
68
|
+
|
69
|
+
|
70
|
+
</td><td>
|
71
|
+
|
72
|
+
_(Optional)_ The intensity of the ambient light for the world. 0 to 1+
|
73
|
+
|
74
|
+
|
75
|
+
</td></tr>
|
76
|
+
<tr><td>
|
77
|
+
|
78
|
+
[directionalLightColor?](./server.worldoptions.directionallightcolor.md)
|
79
|
+
|
80
|
+
|
81
|
+
</td><td>
|
82
|
+
|
83
|
+
|
84
|
+
</td><td>
|
85
|
+
|
86
|
+
[RgbColor](./server.rgbcolor.md)
|
87
|
+
|
88
|
+
|
89
|
+
</td><td>
|
90
|
+
|
91
|
+
_(Optional)_ The color of the directional light for the world.
|
92
|
+
|
93
|
+
|
94
|
+
</td></tr>
|
95
|
+
<tr><td>
|
96
|
+
|
97
|
+
[directionalLightIntensity?](./server.worldoptions.directionallightintensity.md)
|
98
|
+
|
99
|
+
|
100
|
+
</td><td>
|
101
|
+
|
102
|
+
|
103
|
+
</td><td>
|
104
|
+
|
105
|
+
number
|
106
|
+
|
107
|
+
|
108
|
+
</td><td>
|
109
|
+
|
110
|
+
_(Optional)_ The intensity of the directional light for the world. 0 to 1+
|
111
|
+
|
112
|
+
|
113
|
+
</td></tr>
|
114
|
+
<tr><td>
|
115
|
+
|
116
|
+
[directionalLightPosition?](./server.worldoptions.directionallightposition.md)
|
117
|
+
|
118
|
+
|
119
|
+
</td><td>
|
120
|
+
|
121
|
+
|
122
|
+
</td><td>
|
123
|
+
|
124
|
+
[Vector3Like](./server.vector3like.md)
|
125
|
+
|
126
|
+
|
127
|
+
</td><td>
|
128
|
+
|
129
|
+
_(Optional)_ The position the directional light originates from for the world.
|
130
|
+
|
131
|
+
|
132
|
+
</td></tr>
|
133
|
+
<tr><td>
|
134
|
+
|
40
135
|
[gravity?](./server.worldoptions.gravity.md)
|
41
136
|
|
42
137
|
|