hytopia 0.7.6 → 0.7.7

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.7.6",
3
+ "version": "0.7.7",
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
@@ -7722,6 +7722,27 @@
7722
7722
  "name": "ChunkLatticeEvent",
7723
7723
  "preserveMemberOrder": false,
7724
7724
  "members": [
7725
+ {
7726
+ "kind": "EnumMember",
7727
+ "canonicalReference": "server!ChunkLatticeEvent.ADD_CHUNK:member",
7728
+ "docComment": "",
7729
+ "excerptTokens": [
7730
+ {
7731
+ "kind": "Content",
7732
+ "text": "ADD_CHUNK = "
7733
+ },
7734
+ {
7735
+ "kind": "Content",
7736
+ "text": "\"CHUNK_LATTICE.ADD_CHUNK\""
7737
+ }
7738
+ ],
7739
+ "initializerTokenRange": {
7740
+ "startIndex": 1,
7741
+ "endIndex": 2
7742
+ },
7743
+ "releaseTag": "Public",
7744
+ "name": "ADD_CHUNK"
7745
+ },
7725
7746
  {
7726
7747
  "kind": "EnumMember",
7727
7748
  "canonicalReference": "server!ChunkLatticeEvent.REMOVE_CHUNK:member",
@@ -7781,6 +7802,60 @@
7781
7802
  "name": "ChunkLatticeEventPayloads",
7782
7803
  "preserveMemberOrder": false,
7783
7804
  "members": [
7805
+ {
7806
+ "kind": "PropertySignature",
7807
+ "canonicalReference": "server!ChunkLatticeEventPayloads#\"CHUNK_LATTICE.ADD_CHUNK\":member",
7808
+ "docComment": "/**\n * Emitted when a chunk is added to the lattice.\n */\n",
7809
+ "excerptTokens": [
7810
+ {
7811
+ "kind": "Content",
7812
+ "text": "["
7813
+ },
7814
+ {
7815
+ "kind": "Reference",
7816
+ "text": "ChunkLatticeEvent.ADD_CHUNK",
7817
+ "canonicalReference": "server!ChunkLatticeEvent.ADD_CHUNK:member"
7818
+ },
7819
+ {
7820
+ "kind": "Content",
7821
+ "text": "]: "
7822
+ },
7823
+ {
7824
+ "kind": "Content",
7825
+ "text": "{\n chunkLattice: "
7826
+ },
7827
+ {
7828
+ "kind": "Reference",
7829
+ "text": "ChunkLattice",
7830
+ "canonicalReference": "server!ChunkLattice:class"
7831
+ },
7832
+ {
7833
+ "kind": "Content",
7834
+ "text": ";\n chunk: "
7835
+ },
7836
+ {
7837
+ "kind": "Reference",
7838
+ "text": "Chunk",
7839
+ "canonicalReference": "server!Chunk:class"
7840
+ },
7841
+ {
7842
+ "kind": "Content",
7843
+ "text": ";\n }"
7844
+ },
7845
+ {
7846
+ "kind": "Content",
7847
+ "text": ";"
7848
+ }
7849
+ ],
7850
+ "isReadonly": false,
7851
+ "isOptional": false,
7852
+ "releaseTag": "Public",
7853
+ "name": "\"CHUNK_LATTICE.ADD_CHUNK\"",
7854
+ "propertyTypeTokenRange": {
7855
+ "startIndex": 3,
7856
+ "endIndex": 8
7857
+ }
7858
+ },
7784
7859
  {
7785
7860
  "kind": "PropertySignature",
7786
7861
  "canonicalReference": "server!ChunkLatticeEventPayloads#\"CHUNK_LATTICE.REMOVE_CHUNK\":member",
package/server.d.ts CHANGED
@@ -1027,12 +1027,18 @@ export declare class ChunkLattice extends EventRouter {
1027
1027
 
1028
1028
  /** Event types a ChunkLattice instance can emit. See {@link ChunkLatticeEventPayloads} for the payloads. @public */
1029
1029
  export declare enum ChunkLatticeEvent {
1030
+ ADD_CHUNK = "CHUNK_LATTICE.ADD_CHUNK",
1030
1031
  REMOVE_CHUNK = "CHUNK_LATTICE.REMOVE_CHUNK",
1031
1032
  SET_BLOCK = "CHUNK_LATTICE.SET_BLOCK"
1032
1033
  }
1033
1034
 
1034
1035
  /** Event payloads for ChunkLattice emitted events. @public */
1035
1036
  export declare interface ChunkLatticeEventPayloads {
1037
+ /** Emitted when a chunk is added to the lattice. */
1038
+ [ChunkLatticeEvent.ADD_CHUNK]: {
1039
+ chunkLattice: ChunkLattice;
1040
+ chunk: Chunk;
1041
+ };
1036
1042
  /** Emitted when a chunk is removed from the lattice. */
1037
1043
  [ChunkLatticeEvent.REMOVE_CHUNK]: {
1038
1044
  chunkLattice: ChunkLattice;