@rpg-engine/shared 0.1.29 → 0.1.30
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/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/libs/GridHelper.d.ts +5 -0
- package/dist/libs/GridHelper.d.ts.map +1 -0
- package/dist/libs/GridHelper.js +13 -0
- package/dist/libs/GridHelper.js.map +1 -0
- package/dist/types/npcMetadata.types.d.ts +7 -0
- package/dist/types/npcMetadata.types.d.ts.map +1 -0
- package/dist/types/npcMetadata.types.js +21 -0
- package/dist/types/npcMetadata.types.js.map +1 -0
- package/dist/types/tiled.types.d.ts +108 -0
- package/dist/types/tiled.types.d.ts.map +1 -0
- package/dist/types/tiled.types.js +15 -0
- package/dist/types/tiled.types.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./constants/world.constants";
|
|
2
|
+
export * from "./libs/GridHelper";
|
|
2
3
|
export * from "./libs/TextHelper";
|
|
3
4
|
export * from "./types/animation.types";
|
|
4
5
|
export * from "./types/api.types";
|
|
@@ -11,6 +12,7 @@ export * from "./types/googleOAuth.types";
|
|
|
11
12
|
export * from "./types/maps.types";
|
|
12
13
|
export * from "./types/notification.types";
|
|
13
14
|
export * from "./types/npc.types";
|
|
15
|
+
export * from "./types/npcMetadata.types";
|
|
14
16
|
export * from "./types/pagination.types";
|
|
15
17
|
export * from "./types/places.types";
|
|
16
18
|
export * from "./types/player.types";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AACl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,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./constants/world.constants"), exports);
|
|
14
|
+
__exportStar(require("./libs/GridHelper"), exports);
|
|
14
15
|
__exportStar(require("./libs/TextHelper"), exports);
|
|
15
16
|
__exportStar(require("./types/animation.types"), exports);
|
|
16
17
|
__exportStar(require("./types/api.types"), exports);
|
|
@@ -23,6 +24,7 @@ __exportStar(require("./types/googleOAuth.types"), exports);
|
|
|
23
24
|
__exportStar(require("./types/maps.types"), exports);
|
|
24
25
|
__exportStar(require("./types/notification.types"), exports);
|
|
25
26
|
__exportStar(require("./types/npc.types"), exports);
|
|
27
|
+
__exportStar(require("./types/npcMetadata.types"), exports);
|
|
26
28
|
__exportStar(require("./types/pagination.types"), exports);
|
|
27
29
|
__exportStar(require("./types/places.types"), exports);
|
|
28
30
|
__exportStar(require("./types/player.types"), exports);
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,sDAAoC;AACpC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,6DAA2C;AAC3C,oDAAkC;AAClC,4DAA0C;AAC1C,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,uDAAqC;AACrC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const ToGridX: (x: number) => number;
|
|
2
|
+
export declare const ToGridY: (y: number) => number;
|
|
3
|
+
export declare const FromGridX: (gridX: number) => number;
|
|
4
|
+
export declare const FromGridY: (gridY: number) => number;
|
|
5
|
+
//# sourceMappingURL=GridHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridHelper.d.ts","sourceRoot":"","sources":["../../src/libs/GridHelper.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,MAAO,MAAM,KAAG,MAAoC,CAAC;AACzE,eAAO,MAAM,OAAO,MAAO,MAAM,KAAG,MAAqC,CAAC;AAE1E,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAA4B,CAAC;AACvE,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,MAA6B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FromGridY = exports.FromGridX = exports.ToGridY = exports.ToGridX = void 0;
|
|
4
|
+
const world_constants_1 = require("../constants/world.constants");
|
|
5
|
+
const ToGridX = (x) => Math.floor(x / world_constants_1.GRID_WIDTH);
|
|
6
|
+
exports.ToGridX = ToGridX;
|
|
7
|
+
const ToGridY = (y) => Math.floor(y / world_constants_1.GRID_HEIGHT);
|
|
8
|
+
exports.ToGridY = ToGridY;
|
|
9
|
+
const FromGridX = (gridX) => gridX * world_constants_1.GRID_WIDTH;
|
|
10
|
+
exports.FromGridX = FromGridX;
|
|
11
|
+
const FromGridY = (gridY) => gridY * world_constants_1.GRID_HEIGHT;
|
|
12
|
+
exports.FromGridY = FromGridY;
|
|
13
|
+
//# sourceMappingURL=GridHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridHelper.js","sourceRoot":"","sources":["../../src/libs/GridHelper.ts"],"names":[],"mappings":";;;AAAA,kEAAuE;AAEhE,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,4BAAU,CAAC,CAAC;AAA5D,QAAA,OAAO,WAAqD;AAClE,MAAM,OAAO,GAAG,CAAC,CAAS,EAAU,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,6BAAW,CAAC,CAAC;AAA7D,QAAA,OAAO,WAAsD;AAEnE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,4BAAU,CAAC;AAA1D,QAAA,SAAS,aAAiD;AAChE,MAAM,SAAS,GAAG,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,GAAG,6BAAW,CAAC;AAA3D,QAAA,SAAS,aAAkD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npcMetadata.types.d.ts","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,UAAU,YAAa,SAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC;IAC9C,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,WAAW,EAAE,YAAY,EAarC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NPCMetaData = void 0;
|
|
4
|
+
const GridHelper_1 = require("../libs/GridHelper");
|
|
5
|
+
const character_types_1 = require("./character.types");
|
|
6
|
+
const maps_types_1 = require("./maps.types");
|
|
7
|
+
exports.NPCMetaData = [
|
|
8
|
+
{
|
|
9
|
+
key: "npc-alice",
|
|
10
|
+
name: "Alice",
|
|
11
|
+
x: (0, GridHelper_1.FromGridX)(22),
|
|
12
|
+
y: (0, GridHelper_1.FromGridY)(12),
|
|
13
|
+
direction: "down",
|
|
14
|
+
scene: "MainScene",
|
|
15
|
+
class: character_types_1.CharacterClass.None,
|
|
16
|
+
gender: character_types_1.CharacterGender.Female,
|
|
17
|
+
texture: "npc-alice",
|
|
18
|
+
layer: maps_types_1.MapLayers.Player,
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
//# sourceMappingURL=npcMetadata.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npcMetadata.types.js","sourceRoot":"","sources":["../../src/types/npcMetadata.types.ts"],"names":[],"mappings":";;;AAAA,mDAA0D;AAC1D,uDAAoE;AACpE,6CAAyC;AAO5B,QAAA,WAAW,GAAmB;IACzC;QACE,GAAG,EAAE,WAAW;QAChB,IAAI,EAAE,OAAO;QACb,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,CAAC,EAAE,IAAA,sBAAS,EAAC,EAAE,CAAC;QAChB,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,gCAAc,CAAC,IAAI;QAC1B,MAAM,EAAE,iCAAe,CAAC,MAAM;QAC9B,OAAO,EAAE,WAAW;QACpB,KAAK,EAAE,sBAAS,CAAC,MAAM;KACxB;CACF,CAAC"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export interface ITiled {
|
|
2
|
+
compressionlevel: number;
|
|
3
|
+
height: number;
|
|
4
|
+
infinite: boolean;
|
|
5
|
+
layers: ITiledLayer[];
|
|
6
|
+
nextlayerid: number;
|
|
7
|
+
nextobjectid: number;
|
|
8
|
+
orientation: string;
|
|
9
|
+
renderorder: string;
|
|
10
|
+
tiledversion: string;
|
|
11
|
+
tileheight: number;
|
|
12
|
+
tilesets: ITileset[];
|
|
13
|
+
tilewidth: number;
|
|
14
|
+
type: string;
|
|
15
|
+
version: string;
|
|
16
|
+
width: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ITiledLayer {
|
|
19
|
+
chunks: ITiledChunk[];
|
|
20
|
+
height: number;
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
opacity: number;
|
|
24
|
+
properties: ILayerProperty[];
|
|
25
|
+
startx: number;
|
|
26
|
+
starty: number;
|
|
27
|
+
type: string;
|
|
28
|
+
visible: boolean;
|
|
29
|
+
width: number;
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
}
|
|
33
|
+
export interface ITiledChunk {
|
|
34
|
+
data: number[];
|
|
35
|
+
height: number;
|
|
36
|
+
width: number;
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
}
|
|
40
|
+
export interface ILayerProperty {
|
|
41
|
+
name: string;
|
|
42
|
+
type: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}
|
|
45
|
+
export interface ITileset {
|
|
46
|
+
columns: number;
|
|
47
|
+
firstgid: number;
|
|
48
|
+
image: string;
|
|
49
|
+
imageheight: number;
|
|
50
|
+
imagewidth: number;
|
|
51
|
+
margin: number;
|
|
52
|
+
name: string;
|
|
53
|
+
spacing: number;
|
|
54
|
+
tilecount: number;
|
|
55
|
+
tileheight: number;
|
|
56
|
+
tiles: ITile[];
|
|
57
|
+
tilewidth: number;
|
|
58
|
+
wangsets: IWangset[];
|
|
59
|
+
}
|
|
60
|
+
export interface ITile {
|
|
61
|
+
id: number;
|
|
62
|
+
properties: ITileProperty[];
|
|
63
|
+
animation?: IAnimation[];
|
|
64
|
+
}
|
|
65
|
+
export interface IAnimation {
|
|
66
|
+
duration: number;
|
|
67
|
+
tileid: number;
|
|
68
|
+
}
|
|
69
|
+
export interface ITileProperty {
|
|
70
|
+
name: string;
|
|
71
|
+
type: Type;
|
|
72
|
+
value: boolean;
|
|
73
|
+
}
|
|
74
|
+
export declare enum Type {
|
|
75
|
+
Bool = "bool"
|
|
76
|
+
}
|
|
77
|
+
export interface IWangset {
|
|
78
|
+
colors: IColor[];
|
|
79
|
+
name: string;
|
|
80
|
+
tile: number;
|
|
81
|
+
type: string;
|
|
82
|
+
wangtiles: IWangTile[];
|
|
83
|
+
}
|
|
84
|
+
export interface IColor {
|
|
85
|
+
color: string;
|
|
86
|
+
name: string;
|
|
87
|
+
probability: number;
|
|
88
|
+
tile: number;
|
|
89
|
+
}
|
|
90
|
+
export interface IWangTile {
|
|
91
|
+
tileid: number;
|
|
92
|
+
wangid: number[];
|
|
93
|
+
}
|
|
94
|
+
export interface IGetTileXYResult {
|
|
95
|
+
x: number;
|
|
96
|
+
y: number;
|
|
97
|
+
}
|
|
98
|
+
export interface ITiledTile {
|
|
99
|
+
id: number;
|
|
100
|
+
properties: ITileProperty[];
|
|
101
|
+
}
|
|
102
|
+
export declare const TiledLayerNames: {
|
|
103
|
+
0: string;
|
|
104
|
+
1: string;
|
|
105
|
+
2: string;
|
|
106
|
+
3: string;
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=tiled.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiled.types.d.ts","sourceRoot":"","sources":["../../src/types/tiled.types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,C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,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TiledLayerNames = exports.Type = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
var Type;
|
|
6
|
+
(function (Type) {
|
|
7
|
+
Type["Bool"] = "bool";
|
|
8
|
+
})(Type = exports.Type || (exports.Type = {}));
|
|
9
|
+
exports.TiledLayerNames = {
|
|
10
|
+
[__1.MapLayers.Ground]: "ground",
|
|
11
|
+
[__1.MapLayers.OverGround]: "over-ground",
|
|
12
|
+
[__1.MapLayers.Player]: "player",
|
|
13
|
+
[__1.MapLayers.OverPlayer]: "over-player",
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=tiled.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiled.types.js","sourceRoot":"","sources":["../../src/types/tiled.types.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAmF/B,IAAY,IAEX;AAFD,WAAY,IAAI;IACd,qBAAa,CAAA;AACf,CAAC,EAFW,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAEf;AAgCY,QAAA,eAAe,GAAG;IAC7B,CAAC,aAAS,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC5B,CAAC,aAAS,CAAC,UAAU,CAAC,EAAE,aAAa;IACrC,CAAC,aAAS,CAAC,MAAM,CAAC,EAAE,QAAQ;IAC5B,CAAC,aAAS,CAAC,UAAU,CAAC,EAAE,aAAa;CACtC,CAAC"}
|