hytopia 0.7.8 → 0.7.9
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 +52 -52
- package/docs/server.particleemitter.burst.md +53 -0
- package/docs/server.particleemitter.md +14 -0
- package/docs/server.particleemitterevent.md +14 -0
- package/docs/server.particleemittereventpayloads._particle_emitter.burst_.md +16 -0
- package/docs/server.particleemittereventpayloads.md +19 -0
- package/node-server.mjs +21 -21
- package/package.json +1 -1
- package/server.api.json +114 -0
- package/server.d.ts +12 -0
package/package.json
CHANGED
package/server.api.json
CHANGED
|
@@ -29118,6 +29118,54 @@
|
|
|
29118
29118
|
"isProtected": false,
|
|
29119
29119
|
"isAbstract": false
|
|
29120
29120
|
},
|
|
29121
|
+
{
|
|
29122
|
+
"kind": "Method",
|
|
29123
|
+
"canonicalReference": "server!ParticleEmitter#burst:member(1)",
|
|
29124
|
+
"docComment": "/**\n * Creates a burst of particles, regardless of pause state.\n *\n * @param count - The number of particles to burst.\n */\n",
|
|
29125
|
+
"excerptTokens": [
|
|
29126
|
+
{
|
|
29127
|
+
"kind": "Content",
|
|
29128
|
+
"text": "burst(count: "
|
|
29129
|
+
},
|
|
29130
|
+
{
|
|
29131
|
+
"kind": "Content",
|
|
29132
|
+
"text": "number"
|
|
29133
|
+
},
|
|
29134
|
+
{
|
|
29135
|
+
"kind": "Content",
|
|
29136
|
+
"text": "): "
|
|
29137
|
+
},
|
|
29138
|
+
{
|
|
29139
|
+
"kind": "Content",
|
|
29140
|
+
"text": "void"
|
|
29141
|
+
},
|
|
29142
|
+
{
|
|
29143
|
+
"kind": "Content",
|
|
29144
|
+
"text": ";"
|
|
29145
|
+
}
|
|
29146
|
+
],
|
|
29147
|
+
"isStatic": false,
|
|
29148
|
+
"returnTypeTokenRange": {
|
|
29149
|
+
"startIndex": 3,
|
|
29150
|
+
"endIndex": 4
|
|
29151
|
+
},
|
|
29152
|
+
"releaseTag": "Public",
|
|
29153
|
+
"isProtected": false,
|
|
29154
|
+
"overloadIndex": 1,
|
|
29155
|
+
"parameters": [
|
|
29156
|
+
{
|
|
29157
|
+
"parameterName": "count",
|
|
29158
|
+
"parameterTypeTokenRange": {
|
|
29159
|
+
"startIndex": 1,
|
|
29160
|
+
"endIndex": 2
|
|
29161
|
+
},
|
|
29162
|
+
"isOptional": false
|
|
29163
|
+
}
|
|
29164
|
+
],
|
|
29165
|
+
"isOptional": false,
|
|
29166
|
+
"isAbstract": false,
|
|
29167
|
+
"name": "burst"
|
|
29168
|
+
},
|
|
29121
29169
|
{
|
|
29122
29170
|
"kind": "Property",
|
|
29123
29171
|
"canonicalReference": "server!ParticleEmitter#colorEnd:member",
|
|
@@ -31597,6 +31645,27 @@
|
|
|
31597
31645
|
"name": "ParticleEmitterEvent",
|
|
31598
31646
|
"preserveMemberOrder": false,
|
|
31599
31647
|
"members": [
|
|
31648
|
+
{
|
|
31649
|
+
"kind": "EnumMember",
|
|
31650
|
+
"canonicalReference": "server!ParticleEmitterEvent.BURST:member",
|
|
31651
|
+
"docComment": "",
|
|
31652
|
+
"excerptTokens": [
|
|
31653
|
+
{
|
|
31654
|
+
"kind": "Content",
|
|
31655
|
+
"text": "BURST = "
|
|
31656
|
+
},
|
|
31657
|
+
{
|
|
31658
|
+
"kind": "Content",
|
|
31659
|
+
"text": "\"PARTICLE_EMITTER.BURST\""
|
|
31660
|
+
}
|
|
31661
|
+
],
|
|
31662
|
+
"initializerTokenRange": {
|
|
31663
|
+
"startIndex": 1,
|
|
31664
|
+
"endIndex": 2
|
|
31665
|
+
},
|
|
31666
|
+
"releaseTag": "Public",
|
|
31667
|
+
"name": "BURST"
|
|
31668
|
+
},
|
|
31600
31669
|
{
|
|
31601
31670
|
"kind": "EnumMember",
|
|
31602
31671
|
"canonicalReference": "server!ParticleEmitterEvent.DESPAWN:member",
|
|
@@ -32265,6 +32334,51 @@
|
|
|
32265
32334
|
"name": "ParticleEmitterEventPayloads",
|
|
32266
32335
|
"preserveMemberOrder": false,
|
|
32267
32336
|
"members": [
|
|
32337
|
+
{
|
|
32338
|
+
"kind": "PropertySignature",
|
|
32339
|
+
"canonicalReference": "server!ParticleEmitterEventPayloads#\"PARTICLE_EMITTER.BURST\":member",
|
|
32340
|
+
"docComment": "/**\n * Emitted when a ParticleEmitter bursts the specified number of particles.\n */\n",
|
|
32341
|
+
"excerptTokens": [
|
|
32342
|
+
{
|
|
32343
|
+
"kind": "Content",
|
|
32344
|
+
"text": "["
|
|
32345
|
+
},
|
|
32346
|
+
{
|
|
32347
|
+
"kind": "Reference",
|
|
32348
|
+
"text": "ParticleEmitterEvent.BURST",
|
|
32349
|
+
"canonicalReference": "server!ParticleEmitterEvent.BURST:member"
|
|
32350
|
+
},
|
|
32351
|
+
{
|
|
32352
|
+
"kind": "Content",
|
|
32353
|
+
"text": "]: "
|
|
32354
|
+
},
|
|
32355
|
+
{
|
|
32356
|
+
"kind": "Content",
|
|
32357
|
+
"text": "{\n particleEmitter: "
|
|
32358
|
+
},
|
|
32359
|
+
{
|
|
32360
|
+
"kind": "Reference",
|
|
32361
|
+
"text": "ParticleEmitter",
|
|
32362
|
+
"canonicalReference": "server!ParticleEmitter:class"
|
|
32363
|
+
},
|
|
32364
|
+
{
|
|
32365
|
+
"kind": "Content",
|
|
32366
|
+
"text": ";\n count: number;\n }"
|
|
32367
|
+
},
|
|
32368
|
+
{
|
|
32369
|
+
"kind": "Content",
|
|
32370
|
+
"text": ";"
|
|
32371
|
+
}
|
|
32372
|
+
],
|
|
32373
|
+
"isReadonly": false,
|
|
32374
|
+
"isOptional": false,
|
|
32375
|
+
"releaseTag": "Public",
|
|
32376
|
+
"name": "\"PARTICLE_EMITTER.BURST\"",
|
|
32377
|
+
"propertyTypeTokenRange": {
|
|
32378
|
+
"startIndex": 3,
|
|
32379
|
+
"endIndex": 6
|
|
32380
|
+
}
|
|
32381
|
+
},
|
|
32268
32382
|
{
|
|
32269
32383
|
"kind": "PropertySignature",
|
|
32270
32384
|
"canonicalReference": "server!ParticleEmitterEventPayloads#\"PARTICLE_EMITTER.DESPAWN\":member",
|
package/server.d.ts
CHANGED
|
@@ -3917,6 +3917,12 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3917
3917
|
* @param velocityVariance - The velocity variance of an emitted particle.
|
|
3918
3918
|
*/
|
|
3919
3919
|
setVelocityVariance(velocityVariance: Vector3Like): void;
|
|
3920
|
+
/**
|
|
3921
|
+
* Creates a burst of particles, regardless of pause state.
|
|
3922
|
+
*
|
|
3923
|
+
* @param count - The number of particles to burst.
|
|
3924
|
+
*/
|
|
3925
|
+
burst(count: number): void;
|
|
3920
3926
|
/**
|
|
3921
3927
|
* Despawns the ParticleEmitter from the world.
|
|
3922
3928
|
*/
|
|
@@ -3940,6 +3946,7 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
|
|
|
3940
3946
|
|
|
3941
3947
|
/** Event types a ParticleEmitter instance can emit. See {@link ParticleEmitterEventPayloads} @public */
|
|
3942
3948
|
export declare enum ParticleEmitterEvent {
|
|
3949
|
+
BURST = "PARTICLE_EMITTER.BURST",
|
|
3943
3950
|
DESPAWN = "PARTICLE_EMITTER.DESPAWN",
|
|
3944
3951
|
SET_ALPHA_TEST = "PARTICLE_EMITTER.SET_ALPHA_TEST",
|
|
3945
3952
|
SET_ATTACHED_TO_ENTITY = "PARTICLE_EMITTER.SET_ATTACHED_TO_ENTITY",
|
|
@@ -3975,6 +3982,11 @@ export declare enum ParticleEmitterEvent {
|
|
|
3975
3982
|
|
|
3976
3983
|
/** Event payloads for ParticleEmitter emitted events. @public */
|
|
3977
3984
|
export declare interface ParticleEmitterEventPayloads {
|
|
3985
|
+
/** Emitted when a ParticleEmitter bursts the specified number of particles. */
|
|
3986
|
+
[ParticleEmitterEvent.BURST]: {
|
|
3987
|
+
particleEmitter: ParticleEmitter;
|
|
3988
|
+
count: number;
|
|
3989
|
+
};
|
|
3978
3990
|
/** Emitted when a ParticleEmitter is despawned. */
|
|
3979
3991
|
[ParticleEmitterEvent.DESPAWN]: {
|
|
3980
3992
|
particleEmitter: ParticleEmitter;
|