hytopia 0.8.6-devtrace-bb174a9 → 0.8.6-devtrace-f676a90

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hytopia",
3
- "version": "0.8.6-devtrace-bb174a9",
3
+ "version": "0.8.6-devtrace-f676a90",
4
4
  "description": "The HYTOPIA SDK makes it easy for developers to create massively multiplayer games using JavaScript or TypeScript.",
5
5
  "type": "module",
6
6
  "main": "./node-server.mjs",
package/server.api.json CHANGED
@@ -28804,6 +28804,54 @@
28804
28804
  "isProtected": false,
28805
28805
  "isAbstract": false
28806
28806
  },
28807
+ {
28808
+ "kind": "Method",
28809
+ "canonicalReference": "server!ParticleEmitter#burst:member(1)",
28810
+ "docComment": "/**\n * Creates a burst of particles, regardless of pause state.\n *\n * @param count - The number of particles to burst.\n */\n",
28811
+ "excerptTokens": [
28812
+ {
28813
+ "kind": "Content",
28814
+ "text": "burst(count: "
28815
+ },
28816
+ {
28817
+ "kind": "Content",
28818
+ "text": "number"
28819
+ },
28820
+ {
28821
+ "kind": "Content",
28822
+ "text": "): "
28823
+ },
28824
+ {
28825
+ "kind": "Content",
28826
+ "text": "void"
28827
+ },
28828
+ {
28829
+ "kind": "Content",
28830
+ "text": ";"
28831
+ }
28832
+ ],
28833
+ "isStatic": false,
28834
+ "returnTypeTokenRange": {
28835
+ "startIndex": 3,
28836
+ "endIndex": 4
28837
+ },
28838
+ "releaseTag": "Public",
28839
+ "isProtected": false,
28840
+ "overloadIndex": 1,
28841
+ "parameters": [
28842
+ {
28843
+ "parameterName": "count",
28844
+ "parameterTypeTokenRange": {
28845
+ "startIndex": 1,
28846
+ "endIndex": 2
28847
+ },
28848
+ "isOptional": false
28849
+ }
28850
+ ],
28851
+ "isOptional": false,
28852
+ "isAbstract": false,
28853
+ "name": "burst"
28854
+ },
28807
28855
  {
28808
28856
  "kind": "Property",
28809
28857
  "canonicalReference": "server!ParticleEmitter#colorEnd:member",
@@ -31283,6 +31331,27 @@
31283
31331
  "name": "ParticleEmitterEvent",
31284
31332
  "preserveMemberOrder": false,
31285
31333
  "members": [
31334
+ {
31335
+ "kind": "EnumMember",
31336
+ "canonicalReference": "server!ParticleEmitterEvent.BURST:member",
31337
+ "docComment": "",
31338
+ "excerptTokens": [
31339
+ {
31340
+ "kind": "Content",
31341
+ "text": "BURST = "
31342
+ },
31343
+ {
31344
+ "kind": "Content",
31345
+ "text": "\"PARTICLE_EMITTER.BURST\""
31346
+ }
31347
+ ],
31348
+ "initializerTokenRange": {
31349
+ "startIndex": 1,
31350
+ "endIndex": 2
31351
+ },
31352
+ "releaseTag": "Public",
31353
+ "name": "BURST"
31354
+ },
31286
31355
  {
31287
31356
  "kind": "EnumMember",
31288
31357
  "canonicalReference": "server!ParticleEmitterEvent.DESPAWN:member",
@@ -31951,6 +32020,51 @@
31951
32020
  "name": "ParticleEmitterEventPayloads",
31952
32021
  "preserveMemberOrder": false,
31953
32022
  "members": [
32023
+ {
32024
+ "kind": "PropertySignature",
32025
+ "canonicalReference": "server!ParticleEmitterEventPayloads#\"PARTICLE_EMITTER.BURST\":member",
32026
+ "docComment": "/**\n * Emitted when a ParticleEmitter bursts the specified number of particles.\n */\n",
32027
+ "excerptTokens": [
32028
+ {
32029
+ "kind": "Content",
32030
+ "text": "["
32031
+ },
32032
+ {
32033
+ "kind": "Reference",
32034
+ "text": "ParticleEmitterEvent.BURST",
32035
+ "canonicalReference": "server!ParticleEmitterEvent.BURST:member"
32036
+ },
32037
+ {
32038
+ "kind": "Content",
32039
+ "text": "]: "
32040
+ },
32041
+ {
32042
+ "kind": "Content",
32043
+ "text": "{\n particleEmitter: "
32044
+ },
32045
+ {
32046
+ "kind": "Reference",
32047
+ "text": "ParticleEmitter",
32048
+ "canonicalReference": "server!ParticleEmitter:class"
32049
+ },
32050
+ {
32051
+ "kind": "Content",
32052
+ "text": ";\n count: number;\n }"
32053
+ },
32054
+ {
32055
+ "kind": "Content",
32056
+ "text": ";"
32057
+ }
32058
+ ],
32059
+ "isReadonly": false,
32060
+ "isOptional": false,
32061
+ "releaseTag": "Public",
32062
+ "name": "\"PARTICLE_EMITTER.BURST\"",
32063
+ "propertyTypeTokenRange": {
32064
+ "startIndex": 3,
32065
+ "endIndex": 6
32066
+ }
32067
+ },
31954
32068
  {
31955
32069
  "kind": "PropertySignature",
31956
32070
  "canonicalReference": "server!ParticleEmitterEventPayloads#\"PARTICLE_EMITTER.DESPAWN\":member",
package/server.d.ts CHANGED
@@ -3868,6 +3868,12 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3868
3868
  * @param velocityVariance - The velocity variance of an emitted particle.
3869
3869
  */
3870
3870
  setVelocityVariance(velocityVariance: Vector3Like): void;
3871
+ /**
3872
+ * Creates a burst of particles, regardless of pause state.
3873
+ *
3874
+ * @param count - The number of particles to burst.
3875
+ */
3876
+ burst(count: number): void;
3871
3877
  /**
3872
3878
  * Despawns the ParticleEmitter from the world.
3873
3879
  */
@@ -3891,6 +3897,7 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3891
3897
 
3892
3898
  /** Event types a ParticleEmitter instance can emit. See {@link ParticleEmitterEventPayloads} @public */
3893
3899
  export declare enum ParticleEmitterEvent {
3900
+ BURST = "PARTICLE_EMITTER.BURST",
3894
3901
  DESPAWN = "PARTICLE_EMITTER.DESPAWN",
3895
3902
  SET_ALPHA_TEST = "PARTICLE_EMITTER.SET_ALPHA_TEST",
3896
3903
  SET_ATTACHED_TO_ENTITY = "PARTICLE_EMITTER.SET_ATTACHED_TO_ENTITY",
@@ -3926,6 +3933,11 @@ export declare enum ParticleEmitterEvent {
3926
3933
 
3927
3934
  /** Event payloads for ParticleEmitter emitted events. @public */
3928
3935
  export declare interface ParticleEmitterEventPayloads {
3936
+ /** Emitted when a ParticleEmitter bursts the specified number of particles. */
3937
+ [ParticleEmitterEvent.BURST]: {
3938
+ particleEmitter: ParticleEmitter;
3939
+ count: number;
3940
+ };
3929
3941
  /** Emitted when a ParticleEmitter is despawned. */
3930
3942
  [ParticleEmitterEvent.DESPAWN]: {
3931
3943
  particleEmitter: ParticleEmitter;