hytopia 0.6.31 → 0.6.32
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/bun-server.mjs +162 -162
- package/docs/server.eventpayloads.md +2 -2
- package/docs/server.light.md +1 -1
- package/docs/server.light.spawn.md +2 -2
- package/docs/server.md +55 -0
- package/docs/server.particleemitter._constructor_.md +47 -0
- package/docs/server.particleemitter.alphatest.md +13 -0
- package/docs/server.particleemitter.attachedtoentity.md +13 -0
- package/docs/server.particleemitter.colorend.md +13 -0
- package/docs/server.particleemitter.colorendvariance.md +13 -0
- package/docs/server.particleemitter.colorstart.md +13 -0
- package/docs/server.particleemitter.colorstartvariance.md +13 -0
- package/docs/server.particleemitter.despawn.md +17 -0
- package/docs/server.particleemitter.gravity.md +13 -0
- package/docs/server.particleemitter.id.md +13 -0
- package/docs/server.particleemitter.isspawned.md +13 -0
- package/docs/server.particleemitter.isstopped.md +13 -0
- package/docs/server.particleemitter.lifetime.md +13 -0
- package/docs/server.particleemitter.lifetimevariance.md +13 -0
- package/docs/server.particleemitter.maxparticles.md +13 -0
- package/docs/server.particleemitter.md +1125 -0
- package/docs/server.particleemitter.offset.md +13 -0
- package/docs/server.particleemitter.opacityend.md +13 -0
- package/docs/server.particleemitter.opacityendvariance.md +13 -0
- package/docs/server.particleemitter.opacitystart.md +13 -0
- package/docs/server.particleemitter.opacitystartvariance.md +13 -0
- package/docs/server.particleemitter.position.md +13 -0
- package/docs/server.particleemitter.positionvariance.md +13 -0
- package/docs/server.particleemitter.rate.md +13 -0
- package/docs/server.particleemitter.ratevariance.md +13 -0
- package/docs/server.particleemitter.restart.md +17 -0
- package/docs/server.particleemitter.setalphatest.md +53 -0
- package/docs/server.particleemitter.setattachedtoentity.md +53 -0
- package/docs/server.particleemitter.setcolorend.md +53 -0
- package/docs/server.particleemitter.setcolorendvariance.md +53 -0
- package/docs/server.particleemitter.setcolorstart.md +53 -0
- package/docs/server.particleemitter.setcolorstartvariance.md +53 -0
- package/docs/server.particleemitter.setgravity.md +53 -0
- package/docs/server.particleemitter.setlifetime.md +53 -0
- package/docs/server.particleemitter.setlifetimevariance.md +53 -0
- package/docs/server.particleemitter.setmaxparticles.md +53 -0
- package/docs/server.particleemitter.setoffset.md +53 -0
- package/docs/server.particleemitter.setopacityend.md +53 -0
- package/docs/server.particleemitter.setopacityendvariance.md +53 -0
- package/docs/server.particleemitter.setopacitystart.md +53 -0
- package/docs/server.particleemitter.setopacitystartvariance.md +53 -0
- package/docs/server.particleemitter.setposition.md +53 -0
- package/docs/server.particleemitter.setpositionvariance.md +53 -0
- package/docs/server.particleemitter.setrate.md +53 -0
- package/docs/server.particleemitter.setratevariance.md +53 -0
- package/docs/server.particleemitter.setsize.md +53 -0
- package/docs/server.particleemitter.setsizevariance.md +53 -0
- package/docs/server.particleemitter.settextureuri.md +53 -0
- package/docs/server.particleemitter.settransparent.md +53 -0
- package/docs/server.particleemitter.setvelocity.md +53 -0
- package/docs/server.particleemitter.setvelocityvariance.md +53 -0
- package/docs/server.particleemitter.size.md +13 -0
- package/docs/server.particleemitter.sizevariance.md +13 -0
- package/docs/server.particleemitter.spawn.md +53 -0
- package/docs/server.particleemitter.stop.md +17 -0
- package/docs/server.particleemitter.textureuri.md +13 -0
- package/docs/server.particleemitter.transparent.md +13 -0
- package/docs/server.particleemitter.velocity.md +13 -0
- package/docs/server.particleemitter.velocityvariance.md +13 -0
- package/docs/server.particleemitter.world.md +13 -0
- package/docs/server.particleemitterevent.md +411 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.despawn_.md +15 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_alpha_test_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_attached_to_entity_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_color_end_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_color_end_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_color_start_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_color_start_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_gravity_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_lifetime_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_lifetime_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_max_particles_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_offset_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_end_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_end_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_start_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_start_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_position_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_position_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_rate_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_rate_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_texture_uri_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_transparent_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_velocity_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_velocity_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.spawn_.md +15 -0
- package/docs/server.particleemittereventpayloads.md +551 -0
- package/docs/server.particleemittermanager.getallentityattachedparticleemitters.md +55 -0
- package/docs/server.particleemittermanager.getallparticleemitters.md +19 -0
- package/docs/server.particleemittermanager.md +109 -0
- package/docs/server.particleemittermanager.world.md +13 -0
- package/docs/server.particleemitteroptions.alphatest.md +13 -0
- package/docs/server.particleemitteroptions.attachedtoentity.md +13 -0
- package/docs/server.particleemitteroptions.colorend.md +13 -0
- package/docs/server.particleemitteroptions.colorendvariance.md +13 -0
- package/docs/server.particleemitteroptions.colorstart.md +13 -0
- package/docs/server.particleemitteroptions.colorstartvariance.md +13 -0
- package/docs/server.particleemitteroptions.gravity.md +13 -0
- package/docs/server.particleemitteroptions.lifetime.md +13 -0
- package/docs/server.particleemitteroptions.lifetimevariance.md +13 -0
- package/docs/server.particleemitteroptions.maxparticles.md +13 -0
- package/docs/server.particleemitteroptions.md +511 -0
- package/docs/server.particleemitteroptions.offset.md +13 -0
- package/docs/server.particleemitteroptions.opacityend.md +13 -0
- package/docs/server.particleemitteroptions.opacityendvariance.md +13 -0
- package/docs/server.particleemitteroptions.opacitystart.md +13 -0
- package/docs/server.particleemitteroptions.opacitystartvariance.md +13 -0
- package/docs/server.particleemitteroptions.position.md +13 -0
- package/docs/server.particleemitteroptions.positionvariance.md +13 -0
- package/docs/server.particleemitteroptions.rate.md +13 -0
- package/docs/server.particleemitteroptions.ratevariance.md +13 -0
- package/docs/server.particleemitteroptions.size.md +13 -0
- package/docs/server.particleemitteroptions.sizevariance.md +13 -0
- package/docs/server.particleemitteroptions.textureuri.md +13 -0
- package/docs/server.particleemitteroptions.transparent.md +13 -0
- package/docs/server.particleemitteroptions.velocity.md +13 -0
- package/docs/server.particleemitteroptions.velocityvariance.md +13 -0
- package/docs/server.world.md +21 -0
- package/docs/server.world.particleemittermanager.md +13 -0
- package/node-server.mjs +154 -154
- package/package.json +1 -1
- package/server.api.json +5386 -220
- package/server.d.ts +533 -3
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ParticleEmitterManager](./server.particleemittermanager.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterManager class
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export default class ParticleEmitterManager
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Remarks
|
|
14
|
+
|
|
15
|
+
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the `ParticleEmitterManager` class.
|
|
16
|
+
|
|
17
|
+
## Properties
|
|
18
|
+
|
|
19
|
+
<table><thead><tr><th>
|
|
20
|
+
|
|
21
|
+
Property
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</th><th>
|
|
25
|
+
|
|
26
|
+
Modifiers
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</th><th>
|
|
30
|
+
|
|
31
|
+
Type
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
</th><th>
|
|
35
|
+
|
|
36
|
+
Description
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
</th></tr></thead>
|
|
40
|
+
<tbody><tr><td>
|
|
41
|
+
|
|
42
|
+
[world](./server.particleemittermanager.world.md)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
</td><td>
|
|
46
|
+
|
|
47
|
+
`readonly`
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
</td><td>
|
|
51
|
+
|
|
52
|
+
[World](./server.world.md)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
</td><td>
|
|
56
|
+
|
|
57
|
+
The world the ParticleEmitterManager is for.
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
</td></tr>
|
|
61
|
+
</tbody></table>
|
|
62
|
+
|
|
63
|
+
## Methods
|
|
64
|
+
|
|
65
|
+
<table><thead><tr><th>
|
|
66
|
+
|
|
67
|
+
Method
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</th><th>
|
|
71
|
+
|
|
72
|
+
Modifiers
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</th><th>
|
|
76
|
+
|
|
77
|
+
Description
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
</th></tr></thead>
|
|
81
|
+
<tbody><tr><td>
|
|
82
|
+
|
|
83
|
+
[getAllEntityAttachedParticleEmitters(entity)](./server.particleemittermanager.getallentityattachedparticleemitters.md)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</td><td>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
</td><td>
|
|
90
|
+
|
|
91
|
+
Retrieves all spawned ParticleEmitter instances attached to a specific entity.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
</td></tr>
|
|
95
|
+
<tr><td>
|
|
96
|
+
|
|
97
|
+
[getAllParticleEmitters()](./server.particleemittermanager.getallparticleemitters.md)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
</td><td>
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
</td><td>
|
|
104
|
+
|
|
105
|
+
Retrieves all spawned ParticleEmitter instances for the world.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
</td></tr>
|
|
109
|
+
</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) > [ParticleEmitterManager](./server.particleemittermanager.md) > [world](./server.particleemittermanager.world.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterManager.world property
|
|
6
|
+
|
|
7
|
+
The world the ParticleEmitterManager 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [alphaTest](./server.particleemitteroptions.alphatest.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.alphaTest property
|
|
6
|
+
|
|
7
|
+
The alpha test value, discards particle texture pixels with alpha opacity less than this value. Defaults to 0.5.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
alphaTest?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [attachedToEntity](./server.particleemitteroptions.attachedtoentity.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.attachedToEntity property
|
|
6
|
+
|
|
7
|
+
If set, the ParticleEmitter 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [colorEnd](./server.particleemitteroptions.colorend.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.colorEnd property
|
|
6
|
+
|
|
7
|
+
The color of an emitted particle at the end of its lifetime.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
colorEnd?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [colorEndVariance](./server.particleemitteroptions.colorendvariance.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.colorEndVariance property
|
|
6
|
+
|
|
7
|
+
The color variance of an emitted particle at the end of its lifetime.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
colorEndVariance?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [colorStart](./server.particleemitteroptions.colorstart.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.colorStart property
|
|
6
|
+
|
|
7
|
+
The color of an emitted particle at the start of its lifetime.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
colorStart?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [colorStartVariance](./server.particleemitteroptions.colorstartvariance.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.colorStartVariance property
|
|
6
|
+
|
|
7
|
+
The color variance of an emitted particle at the start of its lifetime.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
colorStartVariance?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [gravity](./server.particleemitteroptions.gravity.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.gravity property
|
|
6
|
+
|
|
7
|
+
The gravity vector for an emitted particle.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
gravity?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [lifetime](./server.particleemitteroptions.lifetime.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.lifetime property
|
|
6
|
+
|
|
7
|
+
The lifetime of an emitted particle in seconds.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
lifetime?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [lifetimeVariance](./server.particleemitteroptions.lifetimevariance.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.lifetimeVariance property
|
|
6
|
+
|
|
7
|
+
The lifetime variance of an emitted particle in seconds.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
lifetimeVariance?: 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) > [ParticleEmitterOptions](./server.particleemitteroptions.md) > [maxParticles](./server.particleemitteroptions.maxparticles.md)
|
|
4
|
+
|
|
5
|
+
## ParticleEmitterOptions.maxParticles property
|
|
6
|
+
|
|
7
|
+
The maximum number of live particles.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
maxParticles?: number;
|
|
13
|
+
```
|