@lzimul/minecraft-mcp 1.0.4 → 1.0.5
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/LICENSE +21 -21
- package/README.md +238 -219
- package/build/config/server-info.js +4 -4
- package/build/config/storage.js +2 -1
- package/build/config/world-limits.js +2 -0
- package/build/enums/move-direction.enum.js +9 -0
- package/build/index.js +3 -1
- package/build/resources/dimension-resources.js +1 -1
- package/build/tools/entity-tools.js +318 -5
- package/build/tools/world-tools.js +388 -1
- package/build/utils/logger.js +1 -1
- package/build/world/block-spec.js +3 -1
- package/build/world/entity-inventory.js +21 -4
- package/build/world/simulated-dimension.js +135 -9
- package/build/world/stores/file-world-store.js +47 -39
- package/build/world/stores/memory-world-store.js +5 -0
- package/build/world/stores/serialized-entity.js +4 -3
- package/build/world/stores/serialized-snapshot.js +35 -0
- package/lib/app/server.d.ts.map +1 -1
- package/lib/config/dimensions.d.ts.map +1 -1
- package/lib/config/server-info.d.ts.map +1 -1
- package/lib/config/storage.d.ts.map +1 -1
- package/lib/config/world-limits.d.ts +2 -0
- package/lib/config/world-limits.d.ts.map +1 -1
- package/lib/data/entities.d.ts.map +1 -1
- package/lib/enums/bounding-box.enum.d.ts.map +1 -1
- package/lib/enums/dimension-type.enum.d.ts.map +1 -1
- package/lib/enums/entity-kind.enum.d.ts.map +1 -1
- package/lib/enums/icon-theme.enum.d.ts.map +1 -1
- package/lib/enums/inventory-section.enum.d.ts.map +1 -1
- package/lib/enums/move-direction.enum.d.ts +9 -0
- package/lib/enums/move-direction.enum.d.ts.map +1 -0
- package/lib/interfaces/block.interface.d.ts.map +1 -1
- package/lib/interfaces/data-entry.interface.d.ts.map +1 -1
- package/lib/interfaces/dimension.interface.d.ts.map +1 -1
- package/lib/interfaces/entity-inventory.interface.d.ts.map +1 -1
- package/lib/interfaces/entity-type.interface.d.ts.map +1 -1
- package/lib/interfaces/entity.interface.d.ts.map +1 -1
- package/lib/interfaces/item.interface.d.ts.map +1 -1
- package/lib/interfaces/placed-block.interface.d.ts.map +1 -1
- package/lib/interfaces/world-store.interface.d.ts +1 -0
- package/lib/interfaces/world-store.interface.d.ts.map +1 -1
- package/lib/resources/block-resources.d.ts.map +1 -1
- package/lib/resources/data-resources.d.ts.map +1 -1
- package/lib/resources/dimension-resources.d.ts.map +1 -1
- package/lib/resources/entity-resources.d.ts.map +1 -1
- package/lib/resources/index.d.ts.map +1 -1
- package/lib/resources/item-resources.d.ts.map +1 -1
- package/lib/schemas/block-schema.d.ts.map +1 -1
- package/lib/schemas/coordinate-schema.d.ts.map +1 -1
- package/lib/schemas/dimension-schema.d.ts.map +1 -1
- package/lib/schemas/entity-schema.d.ts.map +1 -1
- package/lib/schemas/item-schema.d.ts.map +1 -1
- package/lib/tools/block-tools.d.ts.map +1 -1
- package/lib/tools/entity-tools.d.ts.map +1 -1
- package/lib/tools/index.d.ts.map +1 -1
- package/lib/tools/item-tools.d.ts.map +1 -1
- package/lib/tools/result.d.ts.map +1 -1
- package/lib/tools/world-tools.d.ts.map +1 -1
- package/lib/utils/logger.d.ts.map +1 -1
- package/lib/world/block-spec.d.ts.map +1 -1
- package/lib/world/block-states.d.ts.map +1 -1
- package/lib/world/entity-inventory.d.ts.map +1 -1
- package/lib/world/item-spec.d.ts.map +1 -1
- package/lib/world/simulated-dimension.d.ts +25 -0
- package/lib/world/simulated-dimension.d.ts.map +1 -1
- package/lib/world/stores/file-world-store.d.ts +2 -2
- package/lib/world/stores/file-world-store.d.ts.map +1 -1
- package/lib/world/stores/index.d.ts.map +1 -1
- package/lib/world/stores/memory-world-store.d.ts +1 -0
- package/lib/world/stores/memory-world-store.d.ts.map +1 -1
- package/lib/world/stores/serialized-block.d.ts.map +1 -1
- package/lib/world/stores/serialized-entity.d.ts.map +1 -1
- package/lib/world/stores/serialized-snapshot.d.ts +6 -0
- package/lib/world/stores/serialized-snapshot.d.ts.map +1 -0
- package/lib/world/world.d.ts.map +1 -1
- package/package.json +113 -113
|
@@ -4,22 +4,15 @@ import path from 'node:path';
|
|
|
4
4
|
import { WORLD_LIMITS } from '../../config/world-limits.js';
|
|
5
5
|
import { toErrorMessage } from '../../utils/error-message.js';
|
|
6
6
|
import { logger } from '../../utils/logger.js';
|
|
7
|
-
import { fromSerialized
|
|
8
|
-
import { fromSerializedEntity
|
|
9
|
-
|
|
10
|
-
const MAX_SNAPSHOT_BYTES = 128 * 1024 * 1024;
|
|
7
|
+
import { fromSerialized } from './serialized-block.js';
|
|
8
|
+
import { fromSerializedEntity } from './serialized-entity.js';
|
|
9
|
+
import { MAX_SNAPSHOT_BYTES, serializeSnapshot } from './serialized-snapshot.js';
|
|
11
10
|
function warn(message) {
|
|
12
11
|
logger.warn(message);
|
|
13
12
|
}
|
|
14
13
|
function emptySnapshot() {
|
|
15
14
|
return { blocks: [], entities: [] };
|
|
16
15
|
}
|
|
17
|
-
function compareIds(a, b) {
|
|
18
|
-
if (a.id === b.id) {
|
|
19
|
-
return 0;
|
|
20
|
-
}
|
|
21
|
-
return a.id < b.id ? -1 : 1;
|
|
22
|
-
}
|
|
23
16
|
export class FileWorldStore {
|
|
24
17
|
directory;
|
|
25
18
|
directoryReady = false;
|
|
@@ -60,48 +53,74 @@ export class FileWorldStore {
|
|
|
60
53
|
await this.quarantine(file, 'invalid JSON');
|
|
61
54
|
return emptySnapshot();
|
|
62
55
|
}
|
|
63
|
-
if (!parsed ||
|
|
56
|
+
if (!parsed ||
|
|
57
|
+
typeof parsed !== 'object' ||
|
|
58
|
+
Array.isArray(parsed) ||
|
|
59
|
+
!Array.isArray(parsed.blocks)) {
|
|
64
60
|
await this.quarantine(file, 'missing blocks array');
|
|
65
61
|
return emptySnapshot();
|
|
66
62
|
}
|
|
67
|
-
|
|
68
|
-
|
|
63
|
+
const stored = parsed;
|
|
64
|
+
if (stored.blocks.length > WORLD_LIMITS.maxModifiedBlocks) {
|
|
65
|
+
await this.quarantine(file, `${stored.blocks.length} blocks exceed the limit of ${WORLD_LIMITS.maxModifiedBlocks}`);
|
|
69
66
|
return emptySnapshot();
|
|
70
67
|
}
|
|
71
68
|
let serializedEntities = [];
|
|
72
|
-
if (
|
|
73
|
-
if (!Array.isArray(
|
|
69
|
+
if (typeof stored.entities !== 'undefined') {
|
|
70
|
+
if (!Array.isArray(stored.entities)) {
|
|
74
71
|
await this.quarantine(file, 'invalid entities array');
|
|
75
72
|
return emptySnapshot();
|
|
76
73
|
}
|
|
77
|
-
if (
|
|
78
|
-
await this.quarantine(file, `${
|
|
74
|
+
if (stored.entities.length > WORLD_LIMITS.maxEntitiesPerDimension) {
|
|
75
|
+
await this.quarantine(file, `${stored.entities.length} entities exceed the limit of ${WORLD_LIMITS.maxEntitiesPerDimension}`);
|
|
79
76
|
return emptySnapshot();
|
|
80
77
|
}
|
|
81
|
-
serializedEntities =
|
|
78
|
+
serializedEntities = stored.entities;
|
|
82
79
|
}
|
|
83
|
-
const blocks =
|
|
80
|
+
const blocks = [];
|
|
81
|
+
for (const entry of stored.blocks) {
|
|
84
82
|
const block = fromSerialized(entry);
|
|
85
83
|
if (block) {
|
|
86
|
-
|
|
84
|
+
blocks.push(block);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
warn(`Skipped malformed block entry in ${file}`);
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const entities = serializedEntities.flatMap(entry => {
|
|
89
|
+
}
|
|
90
|
+
const entities = [];
|
|
91
|
+
for (const entry of serializedEntities) {
|
|
92
92
|
try {
|
|
93
93
|
const entity = fromSerializedEntity(entry, type);
|
|
94
94
|
if (entity) {
|
|
95
|
-
|
|
95
|
+
entities.push(entity);
|
|
96
|
+
continue;
|
|
96
97
|
}
|
|
97
98
|
}
|
|
98
99
|
catch {
|
|
99
100
|
}
|
|
100
101
|
warn(`Skipped malformed entity entry in ${file}`);
|
|
101
|
-
|
|
102
|
-
});
|
|
102
|
+
}
|
|
103
103
|
return { blocks, entities };
|
|
104
104
|
}
|
|
105
|
+
async readRaw(type) {
|
|
106
|
+
const file = this.fileFor(type);
|
|
107
|
+
try {
|
|
108
|
+
const info = await stat(file);
|
|
109
|
+
if (info.size > MAX_SNAPSHOT_BYTES) {
|
|
110
|
+
throw new RangeError(`World snapshot ${file} is larger than ${MAX_SNAPSHOT_BYTES} bytes`);
|
|
111
|
+
}
|
|
112
|
+
return await readFile(file, 'utf8');
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
if (error.code === 'ENOENT') {
|
|
116
|
+
return serializeSnapshot(type, emptySnapshot());
|
|
117
|
+
}
|
|
118
|
+
if (error instanceof RangeError) {
|
|
119
|
+
throw error;
|
|
120
|
+
}
|
|
121
|
+
throw new Error(`Cannot read world snapshot ${file}: ${toErrorMessage(error)}`, { cause: error });
|
|
122
|
+
}
|
|
123
|
+
}
|
|
105
124
|
async save(type, snapshot) {
|
|
106
125
|
if (snapshot.blocks.length > WORLD_LIMITS.maxModifiedBlocks) {
|
|
107
126
|
throw new RangeError(`World snapshot has ${snapshot.blocks.length} blocks, above the limit of ${WORLD_LIMITS.maxModifiedBlocks}`);
|
|
@@ -110,18 +129,7 @@ export class FileWorldStore {
|
|
|
110
129
|
throw new RangeError(`World snapshot has ${snapshot.entities.length} entities, above the limit of ${WORLD_LIMITS.maxEntitiesPerDimension}`);
|
|
111
130
|
}
|
|
112
131
|
const file = this.fileFor(type);
|
|
113
|
-
const
|
|
114
|
-
const sortedEntities = snapshot.entities.toSorted(compareIds);
|
|
115
|
-
const payload = {
|
|
116
|
-
format: FILE_FORMAT,
|
|
117
|
-
dimension: `minecraft:${type}`,
|
|
118
|
-
updatedAt: new Date().toISOString(),
|
|
119
|
-
modifiedBlockCount: sortedBlocks.length,
|
|
120
|
-
entityCount: sortedEntities.length,
|
|
121
|
-
blocks: sortedBlocks.map(toSerialized),
|
|
122
|
-
entities: sortedEntities.map(toSerializedEntity)
|
|
123
|
-
};
|
|
124
|
-
const text = `${JSON.stringify(payload)}\n`;
|
|
132
|
+
const text = serializeSnapshot(type, snapshot);
|
|
125
133
|
const bytes = Buffer.byteLength(text, 'utf8');
|
|
126
134
|
if (bytes > MAX_SNAPSHOT_BYTES) {
|
|
127
135
|
throw new RangeError(`World snapshot for ${type} would be ${bytes} bytes, above the load limit of ${MAX_SNAPSHOT_BYTES} bytes. Remove blocks, block states or entities and retry.`);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WORLD_LIMITS } from '../../config/world-limits.js';
|
|
2
|
+
import { serializeSnapshot } from './serialized-snapshot.js';
|
|
2
3
|
export class MemoryWorldStore {
|
|
3
4
|
worlds = new Map();
|
|
4
5
|
async load(type) {
|
|
@@ -19,4 +20,8 @@ export class MemoryWorldStore {
|
|
|
19
20
|
entities: [...snapshot.entities]
|
|
20
21
|
});
|
|
21
22
|
}
|
|
23
|
+
async readRaw(type) {
|
|
24
|
+
const stored = this.worlds.get(type);
|
|
25
|
+
return serializeSnapshot(type, stored ?? { blocks: [], entities: [] });
|
|
26
|
+
}
|
|
22
27
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WORLD_LIMITS } from '../../config/world-limits.js';
|
|
1
2
|
import { getEntityTypeByName } from '../../data/entities.js';
|
|
2
3
|
import { EEntityKind } from '../../enums/entity-kind.enum.js';
|
|
3
4
|
import { createEmptyInventory, normalizeInventory } from '../entity-inventory.js';
|
|
@@ -41,11 +42,11 @@ export function fromSerializedEntity(entry, dimension) {
|
|
|
41
42
|
const { id, type, name, x, y, z, createdAt, inventory } = record;
|
|
42
43
|
if (typeof id !== 'string' ||
|
|
43
44
|
id.trim().length === 0 ||
|
|
44
|
-
id.length >
|
|
45
|
+
id.length > WORLD_LIMITS.maxEntityIdLength ||
|
|
45
46
|
typeof type !== 'string' ||
|
|
46
47
|
typeof name !== 'string' ||
|
|
47
48
|
name.trim().length === 0 ||
|
|
48
|
-
name.length >
|
|
49
|
+
name.length > WORLD_LIMITS.maxEntityNameLength ||
|
|
49
50
|
!isCoordinate(x) ||
|
|
50
51
|
!isCoordinate(y) ||
|
|
51
52
|
!isCoordinate(z)) {
|
|
@@ -64,7 +65,7 @@ export function fromSerializedEntity(entry, dimension) {
|
|
|
64
65
|
y,
|
|
65
66
|
z,
|
|
66
67
|
dimension,
|
|
67
|
-
inventory: inventory ===
|
|
68
|
+
inventory: typeof inventory === 'undefined'
|
|
68
69
|
? createEmptyInventory()
|
|
69
70
|
: normalizeInventory(inventory),
|
|
70
71
|
createdAt: typeof createdAt === 'string' && createdAt.length > 0
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { toSerialized } from './serialized-block.js';
|
|
2
|
+
import { toSerializedEntity } from './serialized-entity.js';
|
|
3
|
+
export const SNAPSHOT_FORMAT = 'lzimul:minecraft/dimension';
|
|
4
|
+
export const MAX_SNAPSHOT_BYTES = 128 * 1024 * 1024;
|
|
5
|
+
function compareIds(a, b) {
|
|
6
|
+
if (a.id === b.id) {
|
|
7
|
+
return 0;
|
|
8
|
+
}
|
|
9
|
+
return a.id < b.id ? -1 : 1;
|
|
10
|
+
}
|
|
11
|
+
function compareBlocks(a, b) {
|
|
12
|
+
return a.x - b.x || a.y - b.y || a.z - b.z;
|
|
13
|
+
}
|
|
14
|
+
function sortedCopy(values, compare) {
|
|
15
|
+
for (let index = 1; index < values.length; index += 1) {
|
|
16
|
+
if (compare(values[index - 1], values[index]) > 0) {
|
|
17
|
+
return values.toSorted(compare);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return values;
|
|
21
|
+
}
|
|
22
|
+
export function serializeSnapshot(type, snapshot, updatedAt = new Date().toISOString()) {
|
|
23
|
+
const sortedBlocks = sortedCopy(snapshot.blocks, compareBlocks);
|
|
24
|
+
const sortedEntities = sortedCopy(snapshot.entities, compareIds);
|
|
25
|
+
const payload = {
|
|
26
|
+
format: SNAPSHOT_FORMAT,
|
|
27
|
+
dimension: `minecraft:${type}`,
|
|
28
|
+
updatedAt,
|
|
29
|
+
modifiedBlockCount: sortedBlocks.length,
|
|
30
|
+
entityCount: sortedEntities.length,
|
|
31
|
+
blocks: sortedBlocks.map(toSerialized),
|
|
32
|
+
entities: sortedEntities.map(toSerializedEntity)
|
|
33
|
+
};
|
|
34
|
+
return `${JSON.stringify(payload)}\n`;
|
|
35
|
+
}
|
package/lib/app/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/app/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/app/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAMzD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,wBAAgB,YAAY,CAAC,KAAK,EAAE,KAAK,GAAG,SAAS,CAKpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../src/config/dimensions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"dimensions.d.ts","sourceRoot":"","sources":["../../src/config/dimensions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGvE,eAAO,MAAM,UAAU,EAAE,SAAS,UAAU,EAyB3C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-info.d.ts","sourceRoot":"","sources":["../../src/config/server-info.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"server-info.d.ts","sourceRoot":"","sources":["../../src/config/server-info.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGzD,eAAO,MAAM,WAAW;;;;;;;;;;;;CAoBvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/config/storage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/config/storage.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAGlD,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;CAC/B;AAoBD,eAAO,MAAM,aAAa,EAAE,mBAI3B,CAAC"}
|
|
@@ -4,7 +4,9 @@ export declare const WORLD_LIMITS: {
|
|
|
4
4
|
readonly minVertical: -64;
|
|
5
5
|
readonly maxVertical: 320;
|
|
6
6
|
readonly maxModifiedBlocks: 250000;
|
|
7
|
+
readonly maxFillVolume: 16384;
|
|
7
8
|
readonly maxEntitiesPerDimension: 10000;
|
|
9
|
+
readonly maxEntityIdLength: 128;
|
|
8
10
|
readonly maxEntityNameLength: 64;
|
|
9
11
|
readonly maxPlayerNameLength: 32;
|
|
10
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world-limits.d.ts","sourceRoot":"","sources":["../../src/config/world-limits.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"world-limits.d.ts","sourceRoot":"","sources":["../../src/config/world-limits.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,YAAY;;;;;;;;;;;CAaf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/data/entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,eAAO,MAAM,sBAAsB,EAAE,SAAS,WAAW,EAmiDxD,CAAC;
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../src/data/entities.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAE1E,eAAO,MAAM,sBAAsB,EAAE,SAAS,WAAW,EAmiDxD,CAAC;AACF,eAAO,MAAM,sBAAsB,QAAgC,CAAC;AAMpE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAEzE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bounding-box.enum.d.ts","sourceRoot":"","sources":["../../src/enums/bounding-box.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"bounding-box.enum.d.ts","sourceRoot":"","sources":["../../src/enums/bounding-box.enum.ts"],"names":[],"mappings":"AACA,oBAAY,YAAY;IACtB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimension-type.enum.d.ts","sourceRoot":"","sources":["../../src/enums/dimension-type.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dimension-type.enum.d.ts","sourceRoot":"","sources":["../../src/enums/dimension-type.enum.ts"],"names":[],"mappings":"AACA,oBAAY,cAAc;IACxB,SAAS,cAAc;IACvB,SAAS,eAAe;IACxB,MAAM,YAAY;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-kind.enum.d.ts","sourceRoot":"","sources":["../../src/enums/entity-kind.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-kind.enum.d.ts","sourceRoot":"","sources":["../../src/enums/entity-kind.enum.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-theme.enum.d.ts","sourceRoot":"","sources":["../../src/enums/icon-theme.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icon-theme.enum.d.ts","sourceRoot":"","sources":["../../src/enums/icon-theme.enum.ts"],"names":[],"mappings":"AACA,oBAAY,UAAU;IACpB,KAAK,UAAU;IACf,IAAI,SAAS;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inventory-section.enum.d.ts","sourceRoot":"","sources":["../../src/enums/inventory-section.enum.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inventory-section.enum.d.ts","sourceRoot":"","sources":["../../src/enums/inventory-section.enum.ts"],"names":[],"mappings":"AACA,oBAAY,iBAAiB;IAC3B,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"move-direction.enum.d.ts","sourceRoot":"","sources":["../../src/enums/move-direction.enum.ts"],"names":[],"mappings":"AACA,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,EAAE,OAAO;IACT,IAAI,SAAS;CACd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,MAAM,WAAW,MAAO,SAAQ,UAAU;IACxC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-entry.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/data-entry.interface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"data-entry.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/data-entry.interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimension.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/dimension.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"dimension.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/dimension.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-inventory.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity-inventory.interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;
|
|
1
|
+
{"version":3,"file":"entity-inventory.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity-inventory.interface.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;IAChD,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC;CACpD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-type.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity-type.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-type.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity-type.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,MAAM,WAAW,WAAY,SAAQ,UAAU;IAC7C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"entity.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/entity.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAG9D,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,SAAS,EAAE,cAAc,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/item.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"item.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/item.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAG5D,MAAM,WAAW,KAAM,SAAQ,UAAU;IACvC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/C,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"placed-block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/placed-block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"placed-block.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/placed-block.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAGnD,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAC;CAC9B"}
|
|
@@ -8,5 +8,6 @@ export interface IWorldSnapshot {
|
|
|
8
8
|
export interface IWorldStore {
|
|
9
9
|
load(type: EDimensionType): Promise<IWorldSnapshot>;
|
|
10
10
|
save(type: EDimensionType, snapshot: IWorldSnapshot): Promise<void>;
|
|
11
|
+
readRaw(type: EDimensionType): Promise<string>;
|
|
11
12
|
}
|
|
12
13
|
//# sourceMappingURL=world-store.interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world-store.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/world-store.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"world-store.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/world-store.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;CACvC;AAGD,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IACpD,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpE,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAChD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-resources.d.ts","sourceRoot":"","sources":["../../src/resources/block-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"block-resources.d.ts","sourceRoot":"","sources":["../../src/resources/block-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAU9D,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAa9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-resources.d.ts","sourceRoot":"","sources":["../../src/resources/data-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"data-resources.d.ts","sourceRoot":"","sources":["../../src/resources/data-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAkBxE,wBAAgB,yBAAyB,CAAC,CAAC,SAAS,UAAU,EAC5D,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IACN,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;CACvB,GACA,IAAI,CA6BN;AAGD,wBAAgB,0BAA0B,CAAC,CAAC,SAAS,UAAU,EAC7D,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE;IACN,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;CACvB,GACA,IAAI,CAwBN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimension-resources.d.ts","sourceRoot":"","sources":["../../src/resources/dimension-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"dimension-resources.d.ts","sourceRoot":"","sources":["../../src/resources/dimension-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAI9D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAqD1C,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,KAAK,GACX,IAAI,CAgCN;AAGD,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,KAAK,GACX,IAAI,CA2BN"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-resources.d.ts","sourceRoot":"","sources":["../../src/resources/entity-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-resources.d.ts","sourceRoot":"","sources":["../../src/resources/entity-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAa9D,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAa/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAU9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAU9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAMvE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-resources.d.ts","sourceRoot":"","sources":["../../src/resources/item-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"item-resources.d.ts","sourceRoot":"","sources":["../../src/resources/item-resources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAU9D,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAa7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/block-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"block-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/block-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAG/D,eAAO,MAAM,eAAe;;;;;;;;;;;iBAW1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAapD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coordinate-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/coordinate-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"coordinate-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/coordinate-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAK5B,eAAO,MAAM,oBAAoB,aAIC,CAAC;AAGnC,eAAO,MAAM,kBAAkB,aAIC,CAAC;AAGjC,eAAO,MAAM,kBAAkB;;;;CAMrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dimension-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/dimension-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"dimension-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/dimension-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGjE,eAAO,MAAM,eAAe,gDAEQ,CAAC;AAGrC,eAAO,MAAM,mBAAmB,kCAAyB,CAAC;AAG1D,eAAO,MAAM,cAAc,gDAE1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/entity-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AASvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/entity-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AASvE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAG9E,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAG5D,eAAO,MAAM,qBAAqB;;;;;;;;;iBAGhC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGxE,eAAO,MAAM,mBAAmB;;;;;;;;;;;iBAW9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;iBAK3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;iBAQ9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAGhE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,wBAAgB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,aAAa,CAEhE;AAQD,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO,GAAG,mBAAmB,CAK1E;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAa9D;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,UAAU,CAQxD;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,OAAO,GAAG,aAAa,CAa9D;AAED,eAAO,MAAM,gBAAgB;;;CAGnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/item-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"item-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/item-schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAG7D,eAAO,MAAM,cAAc;;;;;;;;iBAQzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,wBAAgB,UAAU,CAAC,IAAI,EAAE,KAAK,GAAG,QAAQ,CAiBhD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-tools.d.ts","sourceRoot":"","sources":["../../src/tools/block-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAY9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"block-tools.d.ts","sourceRoot":"","sources":["../../src/tools/block-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAY9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAK/C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAiJxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-tools.d.ts","sourceRoot":"","sources":["../../src/tools/entity-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-tools.d.ts","sourceRoot":"","sources":["../../src/tools/entity-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAgC9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AA8H/C,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAqsBzE"}
|
package/lib/tools/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAO9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAO9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAKnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-tools.d.ts","sourceRoot":"","sources":["../../src/tools/item-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"item-tools.d.ts","sourceRoot":"","sources":["../../src/tools/item-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAS9D,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAoDzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"result.d.ts","sourceRoot":"","sources":["../../src/tools/result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAGvE,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG;IAC1C,OAAO,EAAE,IAAI,CAAC;IACd,OAAO,EAAE,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC3C,CAKA;AAGD,wBAAgB,oBAAoB,CAClC,SAAS,EAAE,UAAU,EACrB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,GACR,UAAU,CAAC,OAAO,SAAS,CAAC,CAI9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"world-tools.d.ts","sourceRoot":"","sources":["../../src/tools/world-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"world-tools.d.ts","sourceRoot":"","sources":["../../src/tools/world-tools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAoB9D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAyC/C,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAyjBxE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAGA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAqE5B,eAAO,MAAM,MAAM,eAAoC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-spec.d.ts","sourceRoot":"","sources":["../../src/world/block-spec.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"block-spec.d.ts","sourceRoot":"","sources":["../../src/world/block-spec.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAG3E,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;CAAE,GAC3E;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAanD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CA0E7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block-states.d.ts","sourceRoot":"","sources":["../../src/world/block-states.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E,eAAO,MAAM,kBAAkB,EAAE,WAA+B,CAAC;AAajE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQrD;
|
|
1
|
+
{"version":3,"file":"block-states.d.ts","sourceRoot":"","sources":["../../src/world/block-states.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAE3E,eAAO,MAAM,kBAAkB,EAAE,WAA+B,CAAC;AAajE,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAQrD;AAMD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAOvD;AAGD,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAK9D;AAGD,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAU7E;AAGD,wBAAgB,eAAe,CAC7B,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACrC,WAAW,CAkBb;AAGD,wBAAgB,UAAU,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAMlE;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAQxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-inventory.d.ts","sourceRoot":"","sources":["../../src/world/entity-inventory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACX,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"entity-inventory.d.ts","sourceRoot":"","sources":["../../src/world/entity-inventory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAEvE,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACX,MAAM,6CAA6C,CAAC;AAGrD,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAEnC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,MAAM,gBAAgB,QAA2C,CAAC;AAGzE,wBAAgB,SAAS,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAI5D;AAGD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,OAAO,CAET;AAGD,wBAAgB,oBAAoB,IAAI,gBAAgB,CAKvD;AAGD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,GAAG,IAAI,CAyBpE;AAcD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB,CAUnE;AAGD,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,GACX,UAAU,GAAG,IAAI,CAInB;AAGD,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,iBAAiB,EAC1B,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,GAAG,IAAI,GACvB,gBAAgB,CAUlB;AAGD,wBAAgB,aAAa,CAC3B,CAAC,EAAE,UAAU,GAAG,IAAI,EACpB,CAAC,EAAE,UAAU,GAAG,IAAI,GACnB,OAAO,CAKT;AAGD,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,gBAAgB,GAAG,MAAM,CAatE;AAGD,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,iBAAiB,GACzB,MAAM,CAYR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item-spec.d.ts","sourceRoot":"","sources":["../../src/world/item-spec.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"item-spec.d.ts","sourceRoot":"","sources":["../../src/world/item-spec.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAG7D,MAAM,MAAM,cAAc,GACtB;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAA;CAAE,GAC3C;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AASnD,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,CAyB3D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { EInventorySection } from '../enums/inventory-section.enum.js';
|
|
2
|
+
import { EMoveDirection } from '../enums/move-direction.enum.js';
|
|
2
3
|
import type { IBlock } from '../interfaces/block.interface.js';
|
|
3
4
|
import type { BlockStates } from '../interfaces/block-states.interface.js';
|
|
4
5
|
import type { IDimension } from '../interfaces/dimension.interface.js';
|
|
@@ -7,6 +8,24 @@ import type { IItemStack } from '../interfaces/entity-inventory.interface.js';
|
|
|
7
8
|
import type { IEntityType } from '../interfaces/entity-type.interface.js';
|
|
8
9
|
import type { IPlacedBlock } from '../interfaces/placed-block.interface.js';
|
|
9
10
|
import type { IWorldStore } from '../interfaces/world-store.interface.js';
|
|
11
|
+
export interface IEntityPosition {
|
|
12
|
+
readonly x: number;
|
|
13
|
+
readonly y: number;
|
|
14
|
+
readonly z: number;
|
|
15
|
+
}
|
|
16
|
+
export interface IEntityPositionResult {
|
|
17
|
+
readonly previous: IEntityPosition;
|
|
18
|
+
readonly entity: IEntity;
|
|
19
|
+
}
|
|
20
|
+
export interface IInventoryClearResult {
|
|
21
|
+
readonly clearedSlots: number;
|
|
22
|
+
readonly entity: IEntity;
|
|
23
|
+
}
|
|
24
|
+
export interface IInventorySwapResult {
|
|
25
|
+
readonly previousFrom: IItemStack | null;
|
|
26
|
+
readonly previousTo: IItemStack | null;
|
|
27
|
+
readonly entity: IEntity;
|
|
28
|
+
}
|
|
10
29
|
export declare class SimulatedDimension {
|
|
11
30
|
readonly info: IDimension;
|
|
12
31
|
private readonly blocks;
|
|
@@ -48,7 +67,13 @@ export declare class SimulatedDimension {
|
|
|
48
67
|
readonly previous: IItemStack | null;
|
|
49
68
|
readonly entity: IEntity;
|
|
50
69
|
};
|
|
70
|
+
deleteEntity(id: string): IEntity | undefined;
|
|
71
|
+
clearInventory(id: string): IInventoryClearResult;
|
|
72
|
+
swapInventorySlots(id: string, fromSection: EInventorySection, fromSlot: number, toSection: EInventorySection, toSlot: number): IInventorySwapResult;
|
|
73
|
+
moveEntity(id: string, direction: EMoveDirection): IEntityPositionResult;
|
|
74
|
+
setEntityPosition(id: string, x: number, y: number, z: number): IEntityPositionResult;
|
|
51
75
|
setBlock(x: number, y: number, z: number, block: IBlock, states?: BlockStates): IBlock;
|
|
76
|
+
readRaw(): Promise<string>;
|
|
52
77
|
flush(): Promise<void>;
|
|
53
78
|
private markDirty;
|
|
54
79
|
private scheduleFlush;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simulated-dimension.d.ts","sourceRoot":"","sources":["../../src/world/simulated-dimension.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"simulated-dimension.d.ts","sourceRoot":"","sources":["../../src/world/simulated-dimension.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { EDimensionType } from '../../enums/dimension-type.enum.js';
|
|
2
|
-
import type { IWorldSnapshot } from '../../interfaces/world-store.interface.js';
|
|
3
|
-
import type { IWorldStore } from '../../interfaces/world-store.interface.js';
|
|
2
|
+
import type { IWorldSnapshot, IWorldStore } from '../../interfaces/world-store.interface.js';
|
|
4
3
|
export declare class FileWorldStore implements IWorldStore {
|
|
5
4
|
private readonly directory;
|
|
6
5
|
private directoryReady;
|
|
@@ -8,6 +7,7 @@ export declare class FileWorldStore implements IWorldStore {
|
|
|
8
7
|
private ensureDirectory;
|
|
9
8
|
private fileFor;
|
|
10
9
|
load(type: EDimensionType): Promise<IWorldSnapshot>;
|
|
10
|
+
readRaw(type: EDimensionType): Promise<string>;
|
|
11
11
|
save(type: EDimensionType, snapshot: IWorldSnapshot): Promise<void>;
|
|
12
12
|
private quarantine;
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-world-store.d.ts","sourceRoot":"","sources":["../../../src/world/stores/file-world-store.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file-world-store.d.ts","sourceRoot":"","sources":["../../../src/world/stores/file-world-store.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAGzE,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACZ,MAAM,2CAA2C,CAAC;AAsBnD,qBAAa,cAAe,YAAW,WAAW;IAChD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAS;IACnC,OAAO,CAAC,cAAc,CAAS;gBAEnB,SAAS,EAAE,MAAM;YAKf,eAAe;IAQ7B,OAAO,CAAC,OAAO;IAKT,IAAI,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IA+FnD,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAyB9C,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;YAoC3D,UAAU;CAWzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/world/stores/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/world/stores/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAG7E,wBAAgB,gBAAgB,IAAI,WAAW,CAK9C"}
|