hytopia 0.8.6-devtrace-9201bd0 → 0.8.6-devtrace-2990041

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-9201bd0",
3
+ "version": "0.8.6-devtrace-2990041",
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",
package/server.d.ts CHANGED
@@ -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;