hytopia 0.8.6-devtrace-85d5446 → 0.8.6-devtrace-27bfff8

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-85d5446",
3
+ "version": "0.8.6-devtrace-27bfff8",
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
@@ -7492,6 +7492,27 @@
7492
7492
  "name": "ChunkLatticeEvent",
7493
7493
  "preserveMemberOrder": false,
7494
7494
  "members": [
7495
+ {
7496
+ "kind": "EnumMember",
7497
+ "canonicalReference": "server!ChunkLatticeEvent.ADD_CHUNK:member",
7498
+ "docComment": "",
7499
+ "excerptTokens": [
7500
+ {
7501
+ "kind": "Content",
7502
+ "text": "ADD_CHUNK = "
7503
+ },
7504
+ {
7505
+ "kind": "Content",
7506
+ "text": "\"CHUNK_LATTICE.ADD_CHUNK\""
7507
+ }
7508
+ ],
7509
+ "initializerTokenRange": {
7510
+ "startIndex": 1,
7511
+ "endIndex": 2
7512
+ },
7513
+ "releaseTag": "Public",
7514
+ "name": "ADD_CHUNK"
7515
+ },
7495
7516
  {
7496
7517
  "kind": "EnumMember",
7497
7518
  "canonicalReference": "server!ChunkLatticeEvent.REMOVE_CHUNK:member",
@@ -7551,6 +7572,60 @@
7551
7572
  "name": "ChunkLatticeEventPayloads",
7552
7573
  "preserveMemberOrder": false,
7553
7574
  "members": [
7575
+ {
7576
+ "kind": "PropertySignature",
7577
+ "canonicalReference": "server!ChunkLatticeEventPayloads#\"CHUNK_LATTICE.ADD_CHUNK\":member",
7578
+ "docComment": "/**\n * Emitted when a chunk is added to the lattice.\n */\n",
7579
+ "excerptTokens": [
7580
+ {
7581
+ "kind": "Content",
7582
+ "text": "["
7583
+ },
7584
+ {
7585
+ "kind": "Reference",
7586
+ "text": "ChunkLatticeEvent.ADD_CHUNK",
7587
+ "canonicalReference": "server!ChunkLatticeEvent.ADD_CHUNK:member"
7588
+ },
7589
+ {
7590
+ "kind": "Content",
7591
+ "text": "]: "
7592
+ },
7593
+ {
7594
+ "kind": "Content",
7595
+ "text": "{\n chunkLattice: "
7596
+ },
7597
+ {
7598
+ "kind": "Reference",
7599
+ "text": "ChunkLattice",
7600
+ "canonicalReference": "server!ChunkLattice:class"
7601
+ },
7602
+ {
7603
+ "kind": "Content",
7604
+ "text": ";\n chunk: "
7605
+ },
7606
+ {
7607
+ "kind": "Reference",
7608
+ "text": "Chunk",
7609
+ "canonicalReference": "server!Chunk:class"
7610
+ },
7611
+ {
7612
+ "kind": "Content",
7613
+ "text": ";\n }"
7614
+ },
7615
+ {
7616
+ "kind": "Content",
7617
+ "text": ";"
7618
+ }
7619
+ ],
7620
+ "isReadonly": false,
7621
+ "isOptional": false,
7622
+ "releaseTag": "Public",
7623
+ "name": "\"CHUNK_LATTICE.ADD_CHUNK\"",
7624
+ "propertyTypeTokenRange": {
7625
+ "startIndex": 3,
7626
+ "endIndex": 8
7627
+ }
7628
+ },
7554
7629
  {
7555
7630
  "kind": "PropertySignature",
7556
7631
  "canonicalReference": "server!ChunkLatticeEventPayloads#\"CHUNK_LATTICE.REMOVE_CHUNK\":member",
@@ -28729,6 +28804,54 @@
28729
28804
  "isProtected": false,
28730
28805
  "isAbstract": false
28731
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
+ },
28732
28855
  {
28733
28856
  "kind": "Property",
28734
28857
  "canonicalReference": "server!ParticleEmitter#colorEnd:member",
@@ -31208,6 +31331,27 @@
31208
31331
  "name": "ParticleEmitterEvent",
31209
31332
  "preserveMemberOrder": false,
31210
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
+ },
31211
31355
  {
31212
31356
  "kind": "EnumMember",
31213
31357
  "canonicalReference": "server!ParticleEmitterEvent.DESPAWN:member",
@@ -31876,6 +32020,51 @@
31876
32020
  "name": "ParticleEmitterEventPayloads",
31877
32021
  "preserveMemberOrder": false,
31878
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
+ },
31879
32068
  {
31880
32069
  "kind": "PropertySignature",
31881
32070
  "canonicalReference": "server!ParticleEmitterEventPayloads#\"PARTICLE_EMITTER.DESPAWN\":member",
package/server.d.ts CHANGED
@@ -5,12 +5,12 @@ import http from 'http';
5
5
  import type { IncomingMessage } from 'http';
6
6
  import type { InputSchema } from '@hytopia.com/server-protocol';
7
7
  import type { LobbyMembershipDto } from '@hytopia.com/creative-lib/dist/impl/getSession';
8
- import mediasoup from 'mediasoup';
9
8
  import protocol from '@hytopia.com/server-protocol';
10
9
  import RAPIER from '@dimforge/rapier3d-simd-compat';
11
10
  import { SdpMatrix3 } from '@dimforge/rapier3d-simd-compat';
12
11
  import * as Sentry from '@sentry/node';
13
12
  import type { Socket } from 'net';
13
+ import type { types } from 'mediasoup';
14
14
  import { WebSocket as WebSocket_2 } from 'ws';
15
15
 
16
16
  /**
@@ -996,12 +996,18 @@ export declare class ChunkLattice extends EventRouter {
996
996
 
997
997
  /** Event types a ChunkLattice instance can emit. See {@link ChunkLatticeEventPayloads} for the payloads. @public */
998
998
  export declare enum ChunkLatticeEvent {
999
+ ADD_CHUNK = "CHUNK_LATTICE.ADD_CHUNK",
999
1000
  REMOVE_CHUNK = "CHUNK_LATTICE.REMOVE_CHUNK",
1000
1001
  SET_BLOCK = "CHUNK_LATTICE.SET_BLOCK"
1001
1002
  }
1002
1003
 
1003
1004
  /** Event payloads for ChunkLattice emitted events. @public */
1004
1005
  export declare interface ChunkLatticeEventPayloads {
1006
+ /** Emitted when a chunk is added to the lattice. */
1007
+ [ChunkLatticeEvent.ADD_CHUNK]: {
1008
+ chunkLattice: ChunkLattice;
1009
+ chunk: Chunk;
1010
+ };
1005
1011
  /** Emitted when a chunk is removed from the lattice. */
1006
1012
  [ChunkLatticeEvent.REMOVE_CHUNK]: {
1007
1013
  chunkLattice: ChunkLattice;
@@ -3862,6 +3868,12 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3862
3868
  * @param velocityVariance - The velocity variance of an emitted particle.
3863
3869
  */
3864
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;
3865
3877
  /**
3866
3878
  * Despawns the ParticleEmitter from the world.
3867
3879
  */
@@ -3885,6 +3897,7 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3885
3897
 
3886
3898
  /** Event types a ParticleEmitter instance can emit. See {@link ParticleEmitterEventPayloads} @public */
3887
3899
  export declare enum ParticleEmitterEvent {
3900
+ BURST = "PARTICLE_EMITTER.BURST",
3888
3901
  DESPAWN = "PARTICLE_EMITTER.DESPAWN",
3889
3902
  SET_ALPHA_TEST = "PARTICLE_EMITTER.SET_ALPHA_TEST",
3890
3903
  SET_ATTACHED_TO_ENTITY = "PARTICLE_EMITTER.SET_ATTACHED_TO_ENTITY",
@@ -3920,6 +3933,11 @@ export declare enum ParticleEmitterEvent {
3920
3933
 
3921
3934
  /** Event payloads for ParticleEmitter emitted events. @public */
3922
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
+ };
3923
3941
  /** Emitted when a ParticleEmitter is despawned. */
3924
3942
  [ParticleEmitterEvent.DESPAWN]: {
3925
3943
  particleEmitter: ParticleEmitter;