@rpg-engine/shared 0.4.22 → 0.4.23
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/README.md +29 -29
- package/dist/constants/date.constants.d.ts +2 -2
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.js +13 -13
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/index.d.ts +41 -41
- package/dist/index.js +57 -57
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/translations/app-rate.lang.json +38 -38
- package/dist/translations/assets.lang.json +82 -82
- package/dist/translations/auth.lang.json +182 -182
- package/dist/translations/email.lang.json +70 -70
- package/dist/translations/error.lang.json +18 -18
- package/dist/translations/form.lang.json +94 -94
- package/dist/translations/global.lang.json +90 -90
- package/dist/translations/logs.lang.json +6 -6
- package/dist/translations/onboarding.lang.d.ts +10 -10
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.json +50 -50
- package/dist/translations/order.lang.json +90 -90
- package/dist/translations/search.lang.json +50 -50
- package/dist/translations/settings.lang.json +14 -14
- package/dist/translations/tabs.lang.json +22 -22
- package/dist/translations/users.lang.json +22 -22
- package/dist/translations/validation.lang.json +86 -86
- package/dist/types/animation.types.d.ts +16 -16
- package/dist/types/animation.types.js +2 -2
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.js +20 -20
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.js +2 -2
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.js +2 -2
- package/dist/types/battle.types.d.ts +38 -38
- package/dist/types/battle.types.js +18 -18
- package/dist/types/character.types.d.ts +151 -151
- package/dist/types/character.types.js +30 -30
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.js +14 -14
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/entity.types.d.ts +21 -21
- package/dist/types/entity.types.js +15 -15
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.js +9 -9
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/item.types.d.ts +186 -186
- package/dist/types/item.types.js +107 -107
- package/dist/types/itemContainer.types.d.ts +67 -67
- package/dist/types/itemContainer.types.js +10 -10
- package/dist/types/maps.types.d.ts +44 -43
- package/dist/types/maps.types.d.ts.map +1 -1
- package/dist/types/maps.types.js +47 -46
- package/dist/types/maps.types.js.map +1 -1
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +117 -117
- package/dist/types/npc.types.js +35 -35
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.js +9 -9
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/quest.types.d.ts +67 -67
- package/dist/types/quest.types.js +21 -21
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.js +2 -2
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.js +8 -8
- package/dist/types/skills.types.d.ts +58 -58
- package/dist/types/skills.types.js +23 -23
- package/dist/types/socket.types.d.ts +17 -17
- package/dist/types/socket.types.js +8 -8
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.js +8 -8
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.js +7 -7
- package/dist/types/user.types.d.ts +101 -101
- package/dist/types/user.types.js +38 -38
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.js +2 -2
- package/dist/types/view.types.d.ts +14 -14
- package/dist/types/view.types.js +7 -7
- package/package.json +41 -41
- package/dist/libs/MapZipHelper.d.ts +0 -2
- package/dist/libs/MapZipHelper.d.ts.map +0 -1
- package/dist/libs/MapZipHelper.js +0 -24
- package/dist/libs/MapZipHelper.js.map +0 -1
- package/dist/types/container.types.d.ts +0 -9
- package/dist/types/container.types.d.ts.map +0 -1
- package/dist/types/container.types.js +0 -3
- package/dist/types/container.types.js.map +0 -1
package/dist/types/view.types.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ViewSocketEvents = void 0;
|
|
4
|
-
var ViewSocketEvents;
|
|
5
|
-
(function (ViewSocketEvents) {
|
|
6
|
-
ViewSocketEvents["Destroy"] = "Destroy";
|
|
7
|
-
})(ViewSocketEvents = exports.ViewSocketEvents || (exports.ViewSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ViewSocketEvents = void 0;
|
|
4
|
+
var ViewSocketEvents;
|
|
5
|
+
(function (ViewSocketEvents) {
|
|
6
|
+
ViewSocketEvents["Destroy"] = "Destroy";
|
|
7
|
+
})(ViewSocketEvents = exports.ViewSocketEvents || (exports.ViewSocketEvents = {}));
|
|
8
8
|
//# sourceMappingURL=view.types.js.map
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rpg-engine/shared",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Types shared across our API and client",
|
|
5
|
-
"author": "Definya Team",
|
|
6
|
-
"homepage": "",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"main": "dist/index",
|
|
9
|
-
"directories": {
|
|
10
|
-
"dist": "dist",
|
|
11
|
-
"src": "src"
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
21
|
-
"tsc": "tsc -p .",
|
|
22
|
-
"prepublish": "tsc",
|
|
23
|
-
"format": "prettier --write 'src/**/*.ts' --loglevel silent",
|
|
24
|
-
"format:check": "prettier --check '**/*.ts' '**/*.json'",
|
|
25
|
-
"configure": "./environment/download-credentials.sh"
|
|
26
|
-
},
|
|
27
|
-
"husky": {
|
|
28
|
-
"hooks": {
|
|
29
|
-
"pre-push": "yarn tsc && yarn format"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"dependencies": {
|
|
33
|
-
"husky": "^4.3.0",
|
|
34
|
-
"prettier": "^2.2.1",
|
|
35
|
-
"typescript": "^4.6.4"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@rpg-engine/shared": "^0.2.51",
|
|
39
|
-
"@types/mongoose": "^5.11.97"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rpg-engine/shared",
|
|
3
|
+
"version": "0.4.23",
|
|
4
|
+
"description": "Types shared across our API and client",
|
|
5
|
+
"author": "Definya Team",
|
|
6
|
+
"homepage": "",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"main": "dist/index",
|
|
9
|
+
"directories": {
|
|
10
|
+
"dist": "dist",
|
|
11
|
+
"src": "src"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
21
|
+
"tsc": "tsc -p .",
|
|
22
|
+
"prepublish": "tsc",
|
|
23
|
+
"format": "prettier --write 'src/**/*.ts' --loglevel silent",
|
|
24
|
+
"format:check": "prettier --check '**/*.ts' '**/*.json'",
|
|
25
|
+
"configure": "./environment/download-credentials.sh"
|
|
26
|
+
},
|
|
27
|
+
"husky": {
|
|
28
|
+
"hooks": {
|
|
29
|
+
"pre-push": "yarn tsc && yarn format"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"husky": "^4.3.0",
|
|
34
|
+
"prettier": "^2.2.1",
|
|
35
|
+
"typescript": "^4.6.4"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@rpg-engine/shared": "^0.2.51",
|
|
39
|
+
"@types/mongoose": "^5.11.97"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MapZipHelper.d.ts","sourceRoot":"","sources":["../../src/libs/MapZipHelper.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,YAAmB,MAAM,aAAa,MAAM,cAAc,MAAM,KAAG,QAAQ,IAAI,CAMvG,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.createZipMap = void 0;
|
|
13
|
-
const { compress } = require("compress-json");
|
|
14
|
-
const fs = require("fs");
|
|
15
|
-
const JSZip = require("jszip");
|
|
16
|
-
const createZipMap = (mapName, mapObject, pathToSave) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
const data = compress(mapObject);
|
|
18
|
-
const zip = new JSZip();
|
|
19
|
-
zip.file(`${mapName}.txt`, JSON.stringify(data));
|
|
20
|
-
const buffer = yield zip.generateAsync({ type: "uint8array" });
|
|
21
|
-
yield fs.createWriteStream(`${pathToSave}/${mapName}.zip`).write(buffer);
|
|
22
|
-
});
|
|
23
|
-
exports.createZipMap = createZipMap;
|
|
24
|
-
//# sourceMappingURL=MapZipHelper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MapZipHelper.js","sourceRoot":"","sources":["../../src/libs/MapZipHelper.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC9C,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAExB,MAAM,YAAY,GAAG,CAAO,OAAe,EAAE,SAAiB,EAAE,UAAkB,EAAiB,EAAE;IAC1G,MAAM,IAAI,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;IACxB,GAAG,CAAC,IAAI,CAAC,GAAG,OAAO,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IACjD,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,aAAa,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC;IAC/D,MAAM,EAAE,CAAC,iBAAiB,CAAC,GAAG,UAAU,IAAI,OAAO,MAAM,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;AAC3E,CAAC,CAAA,CAAC;AANW,QAAA,YAAY,gBAMvB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IItemContainer } from "./item.types";
|
|
2
|
-
export interface IContainersProps {
|
|
3
|
-
openedContainers: Set<string>;
|
|
4
|
-
containersData: {
|
|
5
|
-
[key: string]: IItemContainer;
|
|
6
|
-
};
|
|
7
|
-
onMouseOverElement: (element: any) => void;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=container.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.types.d.ts","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,cAAc,CAAA;KAAE,CAAC;IAClD,kBAAkB,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;CAC5C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.types.js","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":""}
|