@rpg-engine/shared 0.3.71 → 0.3.74
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare enum MapLayers {
|
|
2
2
|
Ground = 0,
|
|
3
3
|
OverGround = 1,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
Decoration = 2,
|
|
5
|
+
Character = 3,
|
|
6
|
+
OverCharacter = 4,
|
|
7
|
+
Roof = 5
|
|
7
8
|
}
|
|
8
9
|
export declare const TiledLayerNames: {
|
|
9
10
|
0: string;
|
|
@@ -11,12 +12,14 @@ export declare const TiledLayerNames: {
|
|
|
11
12
|
2: string;
|
|
12
13
|
3: string;
|
|
13
14
|
4: string;
|
|
15
|
+
5: string;
|
|
14
16
|
};
|
|
15
17
|
export declare const MAP_OBJECT_LAYERS: string[];
|
|
16
18
|
export declare const MAP_LAYERS: string[];
|
|
17
19
|
export declare const MAP_LAYERS_TO_ID: {
|
|
18
20
|
ground: number;
|
|
19
21
|
"over-ground": number;
|
|
22
|
+
decoration: number;
|
|
20
23
|
character: number;
|
|
21
24
|
"over-character": number;
|
|
22
25
|
roof: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,IAAI,IAAI;CACT;AAED,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,UAAU,IAAI;IACd,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,IAAI,IAAI;CACT;AAED,eAAO,MAAM,eAAe;;;;;;;CAO3B,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAA4C,CAAC;AAE3E,eAAO,MAAM,UAAU,UAAiF,CAAC;AAEzG,eAAO,MAAM,gBAAgB;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAW/B,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,mBAAmB,EAAE,CAAC;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oBAAY,eAAe;IACzB,SAAS,cAAc;CACxB"}
|
package/dist/types/maps.types.js
CHANGED
|
@@ -5,25 +5,28 @@ var MapLayers;
|
|
|
5
5
|
(function (MapLayers) {
|
|
6
6
|
MapLayers[MapLayers["Ground"] = 0] = "Ground";
|
|
7
7
|
MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
|
|
8
|
-
MapLayers[MapLayers["
|
|
9
|
-
MapLayers[MapLayers["
|
|
10
|
-
MapLayers[MapLayers["
|
|
8
|
+
MapLayers[MapLayers["Decoration"] = 2] = "Decoration";
|
|
9
|
+
MapLayers[MapLayers["Character"] = 3] = "Character";
|
|
10
|
+
MapLayers[MapLayers["OverCharacter"] = 4] = "OverCharacter";
|
|
11
|
+
MapLayers[MapLayers["Roof"] = 5] = "Roof";
|
|
11
12
|
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
12
13
|
exports.TiledLayerNames = {
|
|
13
14
|
0: "ground",
|
|
14
15
|
1: "over-ground",
|
|
15
|
-
2: "
|
|
16
|
-
3: "
|
|
17
|
-
4: "
|
|
16
|
+
2: "decoration",
|
|
17
|
+
3: "character",
|
|
18
|
+
4: "over-character",
|
|
19
|
+
5: "roof",
|
|
18
20
|
};
|
|
19
21
|
exports.MAP_OBJECT_LAYERS = ["NPCs", "Transitions", "Items", "Roofs"];
|
|
20
|
-
exports.MAP_LAYERS = ["ground", "over-ground", "character", "over-character", "roof"];
|
|
22
|
+
exports.MAP_LAYERS = ["ground", "over-ground", "decoration", "character", "over-character", "roof"];
|
|
21
23
|
exports.MAP_LAYERS_TO_ID = {
|
|
22
24
|
ground: 0,
|
|
23
25
|
"over-ground": 1,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
decoration: 2,
|
|
27
|
+
character: 3,
|
|
28
|
+
"over-character": 4,
|
|
29
|
+
roof: 5,
|
|
27
30
|
};
|
|
28
31
|
exports.MAP_REQUIRED_LAYERS = [
|
|
29
32
|
"Roofs",
|
|
@@ -33,6 +36,7 @@ exports.MAP_REQUIRED_LAYERS = [
|
|
|
33
36
|
"Transitions",
|
|
34
37
|
"character",
|
|
35
38
|
"Items",
|
|
39
|
+
"decoration",
|
|
36
40
|
"over-ground",
|
|
37
41
|
"ground",
|
|
38
42
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maps.types.js","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"maps.types.js","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAOX;AAPD,WAAY,SAAS;IACnB,6CAAU,CAAA;IACV,qDAAc,CAAA;IACd,qDAAc,CAAA;IACd,mDAAa,CAAA;IACb,2DAAiB,CAAA;IACjB,yCAAQ,CAAA;AACV,CAAC,EAPW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAOpB;AAEY,QAAA,eAAe,GAAG;IAC7B,CAAC,EAAE,QAAQ;IACX,CAAC,EAAE,aAAa;IAChB,CAAC,EAAE,YAAY;IACf,CAAC,EAAE,WAAW;IACd,CAAC,EAAE,gBAAgB;IACnB,CAAC,EAAE,MAAM;CACV,CAAC;AAEW,QAAA,iBAAiB,GAAG,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAE9D,QAAA,UAAU,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,YAAY,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;AAE5F,QAAA,gBAAgB,GAAG;IAC9B,MAAM,EAAE,CAAC;IACT,aAAa,EAAE,CAAC;IAChB,UAAU,EAAE,CAAC;IACb,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,CAAC;IACnB,IAAI,EAAE,CAAC;CACR,CAAC;AAEW,QAAA,mBAAmB,GAAG;IACjC,OAAO;IACP,MAAM;IACN,gBAAgB;IAChB,MAAM;IACN,aAAa;IACb,WAAW;IACX,OAAO;IACP,YAAY;IACZ,aAAa;IACb,QAAQ;CACT,CAAC;AAiBF,IAAY,eAEX;AAFD,WAAY,eAAe;IACzB,0CAAuB,CAAA;AACzB,CAAC,EAFW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAE1B"}
|