hytopia 0.7.1 → 0.7.2
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 +94 -94
- package/docs/server.particleemitter.md +120 -29
- package/docs/server.particleemitter.paused.md +13 -0
- package/docs/server.particleemitter.restart.md +1 -1
- package/docs/{server.particleemitter.setsize.md → server.particleemitter.setsizeend.md} +6 -6
- package/docs/server.particleemitter.setsizeendvariance.md +53 -0
- package/docs/{server.particleemitter.setsizevariance.md → server.particleemitter.setsizestart.md} +6 -6
- package/docs/server.particleemitter.setsizestartvariance.md +53 -0
- package/docs/server.particleemitter.sizeend.md +13 -0
- package/docs/server.particleemitter.sizeendvariance.md +13 -0
- package/docs/server.particleemitter.sizestart.md +13 -0
- package/docs/server.particleemitter.sizestartvariance.md +13 -0
- package/docs/server.particleemitter.stop.md +1 -1
- package/docs/server.particleemitterevent.md +46 -4
- package/docs/server.particleemittereventpayloads._particle_emitter.set_paused_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_end_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_end_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_start_.md +16 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_start_variance_.md +16 -0
- package/docs/server.particleemittereventpayloads.md +63 -6
- package/docs/server.particleemitteroptions.md +42 -4
- package/docs/server.particleemitteroptions.sizeend.md +13 -0
- package/docs/server.particleemitteroptions.sizeendvariance.md +13 -0
- package/docs/server.particleemitteroptions.sizestart.md +13 -0
- package/docs/server.particleemitteroptions.sizestartvariance.md +13 -0
- package/node-server.mjs +124 -124
- package/package.json +1 -1
- package/server.api.json +512 -74
- package/server.d.ts +66 -25
- package/docs/server.particleemitter.isstopped.md +0 -13
- package/docs/server.particleemitter.size.md +0 -13
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_.md +0 -16
- package/docs/server.particleemittereventpayloads._particle_emitter.set_size_variance_.md +0 -16
- package/docs/server.particleemitteroptions.size.md +0 -13
- package/docs/server.particleemitteroptions.sizevariance.md +0 -13
package/server.d.ts
CHANGED
|
@@ -3619,6 +3619,9 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3619
3619
|
|
|
3620
3620
|
|
|
3621
3621
|
|
|
3622
|
+
|
|
3623
|
+
|
|
3624
|
+
|
|
3622
3625
|
|
|
3623
3626
|
|
|
3624
3627
|
|
|
@@ -3644,8 +3647,6 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3644
3647
|
get gravity(): Vector3Like | undefined;
|
|
3645
3648
|
/** Whether the ParticleEmitter is spawned in the world. */
|
|
3646
3649
|
get isSpawned(): boolean;
|
|
3647
|
-
/** Whether the ParticleEmitter is stopped. */
|
|
3648
|
-
get isStopped(): boolean;
|
|
3649
3650
|
/** The lifetime of an emitted particle in seconds. */
|
|
3650
3651
|
get lifetime(): number | undefined;
|
|
3651
3652
|
/** The lifetime variance of an emitted particle in seconds. */
|
|
@@ -3662,6 +3663,8 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3662
3663
|
get opacityStart(): number | undefined;
|
|
3663
3664
|
/** The opacity variance of an emitted particle at the start of its lifetime. */
|
|
3664
3665
|
get opacityStartVariance(): number | undefined;
|
|
3666
|
+
/** Whether an emitted particle is being paused. */
|
|
3667
|
+
get paused(): boolean | undefined;
|
|
3665
3668
|
/** The position of the particle emitter in the world if explicitly set. */
|
|
3666
3669
|
get position(): Vector3Like | undefined;
|
|
3667
3670
|
/** The position variance of an emitted particle. */
|
|
@@ -3670,8 +3673,14 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3670
3673
|
get rate(): number | undefined;
|
|
3671
3674
|
/** The rate per second variance of the particle emission rate. */
|
|
3672
3675
|
get rateVariance(): number | undefined;
|
|
3673
|
-
/** The size of an emitted particle. */
|
|
3674
|
-
get
|
|
3676
|
+
/** The size at the end of an emitted particle's lifetime. */
|
|
3677
|
+
get sizeEnd(): number | undefined;
|
|
3678
|
+
/** The size variance at the end of an emitted particle's lifetime. */
|
|
3679
|
+
get sizeEndVariance(): number | undefined;
|
|
3680
|
+
/** The size at the start of an emitted particle's lifetime. */
|
|
3681
|
+
get sizeStart(): number | undefined;
|
|
3682
|
+
/** The size variance at the start of an emitted particle's lifetime. */
|
|
3683
|
+
get sizeStartVariance(): number | undefined;
|
|
3675
3684
|
/** The size variance of an emitted particle. */
|
|
3676
3685
|
get sizeVariance(): number | undefined;
|
|
3677
3686
|
/** The URI or path to the texture to be used for the particles. */
|
|
@@ -3805,17 +3814,29 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3805
3814
|
*/
|
|
3806
3815
|
setRateVariance(rateVariance: number): void;
|
|
3807
3816
|
/**
|
|
3808
|
-
* Sets the size of an emitted particle.
|
|
3817
|
+
* Sets the size at the end of an emitted particle's lifetime.
|
|
3818
|
+
*
|
|
3819
|
+
* @param sizeEnd - The size at the end of an emitted particle's lifetime.
|
|
3820
|
+
*/
|
|
3821
|
+
setSizeEnd(sizeEnd: number): void;
|
|
3822
|
+
/**
|
|
3823
|
+
* Sets the size variance at the end of an emitted particle's lifetime.
|
|
3824
|
+
*
|
|
3825
|
+
* @param sizeEndVariance - The size variance at the end of an emitted particle's lifetime.
|
|
3826
|
+
*/
|
|
3827
|
+
setSizeEndVariance(sizeEndVariance: number): void;
|
|
3828
|
+
/**
|
|
3829
|
+
* Sets the size at the start of an emitted particle's lifetime.
|
|
3809
3830
|
*
|
|
3810
|
-
* @param
|
|
3831
|
+
* @param sizeStart - The size at the start of an emitted particle's lifetime.
|
|
3811
3832
|
*/
|
|
3812
|
-
|
|
3833
|
+
setSizeStart(sizeStart: number): void;
|
|
3813
3834
|
/**
|
|
3814
|
-
* Sets the size variance of an emitted particle.
|
|
3835
|
+
* Sets the size variance at the start of an emitted particle's lifetime.
|
|
3815
3836
|
*
|
|
3816
|
-
* @param
|
|
3837
|
+
* @param sizeStartVariance - The size variance at the start of an emitted particle's lifetime.
|
|
3817
3838
|
*/
|
|
3818
|
-
|
|
3839
|
+
setSizeStartVariance(sizeStartVariance: number): void;
|
|
3819
3840
|
/**
|
|
3820
3841
|
* Sets the texture URI of the particles emitted.
|
|
3821
3842
|
*
|
|
@@ -3846,12 +3867,10 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3846
3867
|
despawn(): void;
|
|
3847
3868
|
/**
|
|
3848
3869
|
* Restarts the particle emission if it was previously stopped.
|
|
3849
|
-
* Internally, this sets the rate to the value it was before being stopped.
|
|
3850
3870
|
*/
|
|
3851
3871
|
restart(): void;
|
|
3852
3872
|
/**
|
|
3853
|
-
* Stops the particle emission
|
|
3854
|
-
* Internally, this sets the rate to 0.
|
|
3873
|
+
* Stops the particle emission.
|
|
3855
3874
|
*/
|
|
3856
3875
|
stop(): void;
|
|
3857
3876
|
/**
|
|
@@ -3882,12 +3901,15 @@ export declare enum ParticleEmitterEvent {
|
|
|
3882
3901
|
SET_OPACITY_END_VARIANCE = "PARTICLE_EMITTER.SET_OPACITY_END_VARIANCE",
|
|
3883
3902
|
SET_OPACITY_START = "PARTICLE_EMITTER.SET_OPACITY_START",
|
|
3884
3903
|
SET_OPACITY_START_VARIANCE = "PARTICLE_EMITTER.SET_OPACITY_START_VARIANCE",
|
|
3904
|
+
SET_PAUSED = "PARTICLE_EMITTER.SET_PAUSED",
|
|
3885
3905
|
SET_POSITION = "PARTICLE_EMITTER.SET_POSITION",
|
|
3886
3906
|
SET_POSITION_VARIANCE = "PARTICLE_EMITTER.SET_POSITION_VARIANCE",
|
|
3887
3907
|
SET_RATE = "PARTICLE_EMITTER.SET_RATE",
|
|
3888
3908
|
SET_RATE_VARIANCE = "PARTICLE_EMITTER.SET_RATE_VARIANCE",
|
|
3889
|
-
|
|
3890
|
-
|
|
3909
|
+
SET_SIZE_END = "PARTICLE_EMITTER.SET_SIZE_END",
|
|
3910
|
+
SET_SIZE_END_VARIANCE = "PARTICLE_EMITTER.SET_SIZE_END_VARIANCE",
|
|
3911
|
+
SET_SIZE_START = "PARTICLE_EMITTER.SET_SIZE_START",
|
|
3912
|
+
SET_SIZE_START_VARIANCE = "PARTICLE_EMITTER.SET_SIZE_START_VARIANCE",
|
|
3891
3913
|
SET_TEXTURE_URI = "PARTICLE_EMITTER.SET_TEXTURE_URI",
|
|
3892
3914
|
SET_TRANSPARENT = "PARTICLE_EMITTER.SET_TRANSPARENT",
|
|
3893
3915
|
SET_VELOCITY = "PARTICLE_EMITTER.SET_VELOCITY",
|
|
@@ -3981,6 +4003,11 @@ export declare interface ParticleEmitterEventPayloads {
|
|
|
3981
4003
|
particleEmitter: ParticleEmitter;
|
|
3982
4004
|
opacityStartVariance: number;
|
|
3983
4005
|
};
|
|
4006
|
+
/** Emitted when the paused state of an emitted particle is set. */
|
|
4007
|
+
[ParticleEmitterEvent.SET_PAUSED]: {
|
|
4008
|
+
particleEmitter: ParticleEmitter;
|
|
4009
|
+
paused: boolean;
|
|
4010
|
+
};
|
|
3984
4011
|
/** Emitted when the position of the particle emitter is set. */
|
|
3985
4012
|
[ParticleEmitterEvent.SET_POSITION]: {
|
|
3986
4013
|
particleEmitter: ParticleEmitter;
|
|
@@ -4001,15 +4028,25 @@ export declare interface ParticleEmitterEventPayloads {
|
|
|
4001
4028
|
particleEmitter: ParticleEmitter;
|
|
4002
4029
|
rateVariance: number;
|
|
4003
4030
|
};
|
|
4004
|
-
/** Emitted when the size of an emitted particle is set. */
|
|
4005
|
-
[ParticleEmitterEvent.
|
|
4031
|
+
/** Emitted when the size at the end of an emitted particle's lifetime is set. */
|
|
4032
|
+
[ParticleEmitterEvent.SET_SIZE_END]: {
|
|
4033
|
+
particleEmitter: ParticleEmitter;
|
|
4034
|
+
sizeEnd: number;
|
|
4035
|
+
};
|
|
4036
|
+
/** Emitted when the size variance at the end of an emitted particle's lifetime is set. */
|
|
4037
|
+
[ParticleEmitterEvent.SET_SIZE_END_VARIANCE]: {
|
|
4038
|
+
particleEmitter: ParticleEmitter;
|
|
4039
|
+
sizeEndVariance: number;
|
|
4040
|
+
};
|
|
4041
|
+
/** Emitted when the size at the start of an emitted particle's lifetime is set. */
|
|
4042
|
+
[ParticleEmitterEvent.SET_SIZE_START]: {
|
|
4006
4043
|
particleEmitter: ParticleEmitter;
|
|
4007
|
-
|
|
4044
|
+
sizeStart: number;
|
|
4008
4045
|
};
|
|
4009
|
-
/** Emitted when the size variance of an emitted particle is set. */
|
|
4010
|
-
[ParticleEmitterEvent.
|
|
4046
|
+
/** Emitted when the size variance at the start of an emitted particle's lifetime is set. */
|
|
4047
|
+
[ParticleEmitterEvent.SET_SIZE_START_VARIANCE]: {
|
|
4011
4048
|
particleEmitter: ParticleEmitter;
|
|
4012
|
-
|
|
4049
|
+
sizeStartVariance: number;
|
|
4013
4050
|
};
|
|
4014
4051
|
/** Emitted when the texture URI is set. */
|
|
4015
4052
|
[ParticleEmitterEvent.SET_TEXTURE_URI]: {
|
|
@@ -4117,10 +4154,14 @@ export declare interface ParticleEmitterOptions {
|
|
|
4117
4154
|
rate?: number;
|
|
4118
4155
|
/** The rate per second variance of the particle emission rate. */
|
|
4119
4156
|
rateVariance?: number;
|
|
4120
|
-
/** The size of an emitted particle. */
|
|
4121
|
-
|
|
4122
|
-
/** The size variance of an emitted particle. */
|
|
4123
|
-
|
|
4157
|
+
/** The size at the end of an emitted particle's lifetime. */
|
|
4158
|
+
sizeEnd?: number;
|
|
4159
|
+
/** The size variance at the end of an emitted particle's lifetime. */
|
|
4160
|
+
sizeEndVariance?: number;
|
|
4161
|
+
/** The size at the start of an emitted particle's lifetime. */
|
|
4162
|
+
sizeStart?: number;
|
|
4163
|
+
/** The size variance at the start of an emitted particle's lifetime. */
|
|
4164
|
+
sizeStartVariance?: number;
|
|
4124
4165
|
/** Whether an emitted particle is transparent, resulting in smoother transparency blending. */
|
|
4125
4166
|
transparent?: boolean;
|
|
4126
4167
|
/** The velocity of an emitted particle. */
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [ParticleEmitter](./server.particleemitter.md) > [isStopped](./server.particleemitter.isstopped.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitter.isStopped property
|
|
6
|
-
|
|
7
|
-
Whether the ParticleEmitter is stopped.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
get isStopped(): boolean;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [ParticleEmitter](./server.particleemitter.md) > [size](./server.particleemitter.size.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitter.size property
|
|
6
|
-
|
|
7
|
-
The size of an emitted particle.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
get size(): number | undefined;
|
|
13
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md) > ["PARTICLE\_EMITTER.SET\_SIZE"](./server.particleemittereventpayloads._particle_emitter.set_size_.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitterEventPayloads."PARTICLE\_EMITTER.SET\_SIZE" property
|
|
6
|
-
|
|
7
|
-
Emitted when the size of an emitted particle is set.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
[ParticleEmitterEvent.SET_SIZE]: {
|
|
13
|
-
particleEmitter: ParticleEmitter;
|
|
14
|
-
size: number;
|
|
15
|
-
};
|
|
16
|
-
```
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md) > ["PARTICLE\_EMITTER.SET\_SIZE\_VARIANCE"](./server.particleemittereventpayloads._particle_emitter.set_size_variance_.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitterEventPayloads."PARTICLE\_EMITTER.SET\_SIZE\_VARIANCE" property
|
|
6
|
-
|
|
7
|
-
Emitted when the size variance of an emitted particle is set.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
[ParticleEmitterEvent.SET_SIZE_VARIANCE]: {
|
|
13
|
-
particleEmitter: ParticleEmitter;
|
|
14
|
-
sizeVariance: number;
|
|
15
|
-
};
|
|
16
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
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) > [size](./server.particleemitteroptions.size.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitterOptions.size property
|
|
6
|
-
|
|
7
|
-
The size of an emitted particle.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
size?: number;
|
|
13
|
-
```
|
|
@@ -1,13 +0,0 @@
|
|
|
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) > [sizeVariance](./server.particleemitteroptions.sizevariance.md)
|
|
4
|
-
|
|
5
|
-
## ParticleEmitterOptions.sizeVariance property
|
|
6
|
-
|
|
7
|
-
The size variance of an emitted particle.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
sizeVariance?: number;
|
|
13
|
-
```
|