hytopia 0.1.69 → 0.1.71
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.chatmanager.md +46 -2
- package/docs/server.chatmanager.onbroadcastmessage.md +13 -0
- package/docs/server.chatmanager.sendbroadcastmessage.md +1 -1
- package/docs/server.chatmanager.sendplayermessage.md +1 -1
- 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.lightmanager.md +13 -0
- package/docs/server.world.md +26 -5
- package/docs/server.world.setambientlightcolor.md +1 -1
- package/docs/server.world.setambientlightintensity.md +1 -1
- package/docs/server.world.setdirectionallightcolor.md +1 -1
- package/docs/server.world.setdirectionallightintensity.md +1 -1
- package/docs/server.world.setdirectionallightposition.md +1 -1
- package/docs/server.worldoptions.ambientlightcolor.md +1 -1
- package/docs/server.worldoptions.ambientlightintensity.md +1 -1
- package/docs/server.worldoptions.directionallightcolor.md +1 -1
- package/docs/server.worldoptions.directionallightintensity.md +1 -1
- package/docs/server.worldoptions.directionallightposition.md +1 -1
- package/docs/server.worldoptions.md +5 -5
- 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 +2991 -193
- package/server.d.ts +311 -13
- package/server.js +87 -87
@@ -0,0 +1,55 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [LightManager](./server.lightmanager.md) > [getAllEntityAttachedLights](./server.lightmanager.getallentityattachedlights.md)
|
4
|
+
|
5
|
+
## LightManager.getAllEntityAttachedLights() method
|
6
|
+
|
7
|
+
Retrieves all spawned Light instances attached to a specific entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
getAllEntityAttachedLights(entity: Entity): Light[];
|
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
|
+
entity
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
[Entity](./server.entity.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
The entity to get attached Light instances for.
|
46
|
+
|
47
|
+
|
48
|
+
</td></tr>
|
49
|
+
</tbody></table>
|
50
|
+
**Returns:**
|
51
|
+
|
52
|
+
[Light](./server.light.md)<!-- -->\[\]
|
53
|
+
|
54
|
+
An array of Light instances.
|
55
|
+
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [LightManager](./server.lightmanager.md) > [getAllLights](./server.lightmanager.getalllights.md)
|
4
|
+
|
5
|
+
## LightManager.getAllLights() method
|
6
|
+
|
7
|
+
Retrieves all spawned Light instances for the world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
getAllLights(): Light[];
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
[Light](./server.light.md)<!-- -->\[\]
|
17
|
+
|
18
|
+
An array of Light instances.
|
19
|
+
|
@@ -0,0 +1,113 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [LightManager](./server.lightmanager.md)
|
4
|
+
|
5
|
+
## LightManager class
|
6
|
+
|
7
|
+
Manages Light instances in a world.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export default class LightManager
|
13
|
+
```
|
14
|
+
|
15
|
+
## Remarks
|
16
|
+
|
17
|
+
The LightManager is created internally as a singleton for each [World](./server.world.md) instance in a game server. It allows retrieval of all loaded Light instances, entity attached Light instances, and more.
|
18
|
+
|
19
|
+
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `LightManager` class.
|
20
|
+
|
21
|
+
## Properties
|
22
|
+
|
23
|
+
<table><thead><tr><th>
|
24
|
+
|
25
|
+
Property
|
26
|
+
|
27
|
+
|
28
|
+
</th><th>
|
29
|
+
|
30
|
+
Modifiers
|
31
|
+
|
32
|
+
|
33
|
+
</th><th>
|
34
|
+
|
35
|
+
Type
|
36
|
+
|
37
|
+
|
38
|
+
</th><th>
|
39
|
+
|
40
|
+
Description
|
41
|
+
|
42
|
+
|
43
|
+
</th></tr></thead>
|
44
|
+
<tbody><tr><td>
|
45
|
+
|
46
|
+
[world](./server.lightmanager.world.md)
|
47
|
+
|
48
|
+
|
49
|
+
</td><td>
|
50
|
+
|
51
|
+
`readonly`
|
52
|
+
|
53
|
+
|
54
|
+
</td><td>
|
55
|
+
|
56
|
+
[World](./server.world.md)
|
57
|
+
|
58
|
+
|
59
|
+
</td><td>
|
60
|
+
|
61
|
+
The world the LightManager is for.
|
62
|
+
|
63
|
+
|
64
|
+
</td></tr>
|
65
|
+
</tbody></table>
|
66
|
+
|
67
|
+
## Methods
|
68
|
+
|
69
|
+
<table><thead><tr><th>
|
70
|
+
|
71
|
+
Method
|
72
|
+
|
73
|
+
|
74
|
+
</th><th>
|
75
|
+
|
76
|
+
Modifiers
|
77
|
+
|
78
|
+
|
79
|
+
</th><th>
|
80
|
+
|
81
|
+
Description
|
82
|
+
|
83
|
+
|
84
|
+
</th></tr></thead>
|
85
|
+
<tbody><tr><td>
|
86
|
+
|
87
|
+
[getAllEntityAttachedLights(entity)](./server.lightmanager.getallentityattachedlights.md)
|
88
|
+
|
89
|
+
|
90
|
+
</td><td>
|
91
|
+
|
92
|
+
|
93
|
+
</td><td>
|
94
|
+
|
95
|
+
Retrieves all spawned Light instances attached to a specific entity.
|
96
|
+
|
97
|
+
|
98
|
+
</td></tr>
|
99
|
+
<tr><td>
|
100
|
+
|
101
|
+
[getAllLights()](./server.lightmanager.getalllights.md)
|
102
|
+
|
103
|
+
|
104
|
+
</td><td>
|
105
|
+
|
106
|
+
|
107
|
+
</td><td>
|
108
|
+
|
109
|
+
Retrieves all spawned Light instances for the world.
|
110
|
+
|
111
|
+
|
112
|
+
</td></tr>
|
113
|
+
</tbody></table>
|
@@ -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) > [LightManager](./server.lightmanager.md) > [world](./server.lightmanager.world.md)
|
4
|
+
|
5
|
+
## LightManager.world property
|
6
|
+
|
7
|
+
The world the LightManager is for.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
get world(): World;
|
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) > [LightOptions](./server.lightoptions.md) > [angle](./server.lightoptions.angle.md)
|
4
|
+
|
5
|
+
## LightOptions.angle property
|
6
|
+
|
7
|
+
If type is spotlight, the angle of the spotlight.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
angle?: 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) > [LightOptions](./server.lightoptions.md) > [attachedToEntity](./server.lightoptions.attachedtoentity.md)
|
4
|
+
|
5
|
+
## LightOptions.attachedToEntity property
|
6
|
+
|
7
|
+
If set, the light will be attached to this entity.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
attachedToEntity?: Entity;
|
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) > [LightOptions](./server.lightoptions.md) > [color](./server.lightoptions.color.md)
|
4
|
+
|
5
|
+
## LightOptions.color property
|
6
|
+
|
7
|
+
The color of the light. Defaults to white.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
color?: 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) > [LightOptions](./server.lightoptions.md) > [distance](./server.lightoptions.distance.md)
|
4
|
+
|
5
|
+
## LightOptions.distance property
|
6
|
+
|
7
|
+
The maximum distance the light will illuminate. 0 does not limit distance. Defaults to 0.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
distance?: 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) > [LightOptions](./server.lightoptions.md) > [intensity](./server.lightoptions.intensity.md)
|
4
|
+
|
5
|
+
## LightOptions.intensity property
|
6
|
+
|
7
|
+
The intensity of the light in candela (cd). Defaults to 1
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
intensity?: number;
|
13
|
+
```
|
@@ -0,0 +1,247 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [LightOptions](./server.lightoptions.md)
|
4
|
+
|
5
|
+
## LightOptions interface
|
6
|
+
|
7
|
+
Options for creating a Light instance.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export interface LightOptions
|
13
|
+
```
|
14
|
+
|
15
|
+
## Properties
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Property
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Modifiers
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Type
|
30
|
+
|
31
|
+
|
32
|
+
</th><th>
|
33
|
+
|
34
|
+
Description
|
35
|
+
|
36
|
+
|
37
|
+
</th></tr></thead>
|
38
|
+
<tbody><tr><td>
|
39
|
+
|
40
|
+
[angle?](./server.lightoptions.angle.md)
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td><td>
|
47
|
+
|
48
|
+
number
|
49
|
+
|
50
|
+
|
51
|
+
</td><td>
|
52
|
+
|
53
|
+
_(Optional)_ If type is spotlight, the angle of the spotlight.
|
54
|
+
|
55
|
+
|
56
|
+
</td></tr>
|
57
|
+
<tr><td>
|
58
|
+
|
59
|
+
[attachedToEntity?](./server.lightoptions.attachedtoentity.md)
|
60
|
+
|
61
|
+
|
62
|
+
</td><td>
|
63
|
+
|
64
|
+
|
65
|
+
</td><td>
|
66
|
+
|
67
|
+
[Entity](./server.entity.md)
|
68
|
+
|
69
|
+
|
70
|
+
</td><td>
|
71
|
+
|
72
|
+
_(Optional)_ If set, the light will be attached to this entity.
|
73
|
+
|
74
|
+
|
75
|
+
</td></tr>
|
76
|
+
<tr><td>
|
77
|
+
|
78
|
+
[color?](./server.lightoptions.color.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 light. Defaults to white.
|
92
|
+
|
93
|
+
|
94
|
+
</td></tr>
|
95
|
+
<tr><td>
|
96
|
+
|
97
|
+
[distance?](./server.lightoptions.distance.md)
|
98
|
+
|
99
|
+
|
100
|
+
</td><td>
|
101
|
+
|
102
|
+
|
103
|
+
</td><td>
|
104
|
+
|
105
|
+
number
|
106
|
+
|
107
|
+
|
108
|
+
</td><td>
|
109
|
+
|
110
|
+
_(Optional)_ The maximum distance the light will illuminate. 0 does not limit distance. Defaults to 0.
|
111
|
+
|
112
|
+
|
113
|
+
</td></tr>
|
114
|
+
<tr><td>
|
115
|
+
|
116
|
+
[intensity?](./server.lightoptions.intensity.md)
|
117
|
+
|
118
|
+
|
119
|
+
</td><td>
|
120
|
+
|
121
|
+
|
122
|
+
</td><td>
|
123
|
+
|
124
|
+
number
|
125
|
+
|
126
|
+
|
127
|
+
</td><td>
|
128
|
+
|
129
|
+
_(Optional)_ The intensity of the light in candela (cd). Defaults to 1
|
130
|
+
|
131
|
+
|
132
|
+
</td></tr>
|
133
|
+
<tr><td>
|
134
|
+
|
135
|
+
[offset?](./server.lightoptions.offset.md)
|
136
|
+
|
137
|
+
|
138
|
+
</td><td>
|
139
|
+
|
140
|
+
|
141
|
+
</td><td>
|
142
|
+
|
143
|
+
[Vector3Like](./server.vector3like.md)
|
144
|
+
|
145
|
+
|
146
|
+
</td><td>
|
147
|
+
|
148
|
+
_(Optional)_ The offset of the light from the attached entity or position.
|
149
|
+
|
150
|
+
|
151
|
+
</td></tr>
|
152
|
+
<tr><td>
|
153
|
+
|
154
|
+
[penumbra?](./server.lightoptions.penumbra.md)
|
155
|
+
|
156
|
+
|
157
|
+
</td><td>
|
158
|
+
|
159
|
+
|
160
|
+
</td><td>
|
161
|
+
|
162
|
+
number
|
163
|
+
|
164
|
+
|
165
|
+
</td><td>
|
166
|
+
|
167
|
+
_(Optional)_ If type is spotlight, the penumbra of the spotlight. Defaults to 0
|
168
|
+
|
169
|
+
|
170
|
+
</td></tr>
|
171
|
+
<tr><td>
|
172
|
+
|
173
|
+
[position?](./server.lightoptions.position.md)
|
174
|
+
|
175
|
+
|
176
|
+
</td><td>
|
177
|
+
|
178
|
+
|
179
|
+
</td><td>
|
180
|
+
|
181
|
+
[Vector3Like](./server.vector3like.md)
|
182
|
+
|
183
|
+
|
184
|
+
</td><td>
|
185
|
+
|
186
|
+
_(Optional)_ If set, the light will be attached at this position.
|
187
|
+
|
188
|
+
|
189
|
+
</td></tr>
|
190
|
+
<tr><td>
|
191
|
+
|
192
|
+
[trackedEntity?](./server.lightoptions.trackedentity.md)
|
193
|
+
|
194
|
+
|
195
|
+
</td><td>
|
196
|
+
|
197
|
+
|
198
|
+
</td><td>
|
199
|
+
|
200
|
+
[Entity](./server.entity.md)
|
201
|
+
|
202
|
+
|
203
|
+
</td><td>
|
204
|
+
|
205
|
+
_(Optional)_ If type is spotlight, the entity the spotlight will constantly point at.
|
206
|
+
|
207
|
+
|
208
|
+
</td></tr>
|
209
|
+
<tr><td>
|
210
|
+
|
211
|
+
[trackedPosition?](./server.lightoptions.trackedposition.md)
|
212
|
+
|
213
|
+
|
214
|
+
</td><td>
|
215
|
+
|
216
|
+
|
217
|
+
</td><td>
|
218
|
+
|
219
|
+
[Vector3Like](./server.vector3like.md)
|
220
|
+
|
221
|
+
|
222
|
+
</td><td>
|
223
|
+
|
224
|
+
_(Optional)_ If type is spotlight, the position the spotlight will constantly point at.
|
225
|
+
|
226
|
+
|
227
|
+
</td></tr>
|
228
|
+
<tr><td>
|
229
|
+
|
230
|
+
[type?](./server.lightoptions.type.md)
|
231
|
+
|
232
|
+
|
233
|
+
</td><td>
|
234
|
+
|
235
|
+
|
236
|
+
</td><td>
|
237
|
+
|
238
|
+
[LightType](./server.lighttype.md)
|
239
|
+
|
240
|
+
|
241
|
+
</td><td>
|
242
|
+
|
243
|
+
_(Optional)_ The type of light. Defaults to point light.
|
244
|
+
|
245
|
+
|
246
|
+
</td></tr>
|
247
|
+
</tbody></table>
|
@@ -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) > [LightOptions](./server.lightoptions.md) > [offset](./server.lightoptions.offset.md)
|
4
|
+
|
5
|
+
## LightOptions.offset property
|
6
|
+
|
7
|
+
The offset of the light from the attached entity or position.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
offset?: Vector3Like;
|
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) > [LightOptions](./server.lightoptions.md) > [penumbra](./server.lightoptions.penumbra.md)
|
4
|
+
|
5
|
+
## LightOptions.penumbra property
|
6
|
+
|
7
|
+
If type is spotlight, the penumbra of the spotlight. Defaults to 0
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
penumbra?: 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) > [LightOptions](./server.lightoptions.md) > [position](./server.lightoptions.position.md)
|
4
|
+
|
5
|
+
## LightOptions.position property
|
6
|
+
|
7
|
+
If set, the light will be attached at this position.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
position?: Vector3Like;
|
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) > [LightOptions](./server.lightoptions.md) > [trackedEntity](./server.lightoptions.trackedentity.md)
|
4
|
+
|
5
|
+
## LightOptions.trackedEntity property
|
6
|
+
|
7
|
+
If type is spotlight, the entity the spotlight will constantly point at.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
trackedEntity?: Entity;
|
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) > [LightOptions](./server.lightoptions.md) > [trackedPosition](./server.lightoptions.trackedposition.md)
|
4
|
+
|
5
|
+
## LightOptions.trackedPosition property
|
6
|
+
|
7
|
+
If type is spotlight, the position the spotlight will constantly point at.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
trackedPosition?: Vector3Like;
|
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) > [LightOptions](./server.lightoptions.md) > [type](./server.lightoptions.type.md)
|
4
|
+
|
5
|
+
## LightOptions.type property
|
6
|
+
|
7
|
+
The type of light. Defaults to point light.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
type?: LightType;
|
13
|
+
```
|
@@ -0,0 +1,61 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [LightType](./server.lighttype.md)
|
4
|
+
|
5
|
+
## LightType enum
|
6
|
+
|
7
|
+
The types a Light can be.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export declare enum LightType
|
13
|
+
```
|
14
|
+
|
15
|
+
## Enumeration Members
|
16
|
+
|
17
|
+
<table><thead><tr><th>
|
18
|
+
|
19
|
+
Member
|
20
|
+
|
21
|
+
|
22
|
+
</th><th>
|
23
|
+
|
24
|
+
Value
|
25
|
+
|
26
|
+
|
27
|
+
</th><th>
|
28
|
+
|
29
|
+
Description
|
30
|
+
|
31
|
+
|
32
|
+
</th></tr></thead>
|
33
|
+
<tbody><tr><td>
|
34
|
+
|
35
|
+
POINTLIGHT
|
36
|
+
|
37
|
+
|
38
|
+
</td><td>
|
39
|
+
|
40
|
+
`0`
|
41
|
+
|
42
|
+
|
43
|
+
</td><td>
|
44
|
+
|
45
|
+
|
46
|
+
</td></tr>
|
47
|
+
<tr><td>
|
48
|
+
|
49
|
+
SPOTLIGHT
|
50
|
+
|
51
|
+
|
52
|
+
</td><td>
|
53
|
+
|
54
|
+
`1`
|
55
|
+
|
56
|
+
|
57
|
+
</td><td>
|
58
|
+
|
59
|
+
|
60
|
+
</td></tr>
|
61
|
+
</tbody></table>
|