@rpg-engine/shared 0.3.21 → 0.3.24
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 +39 -39
- package/dist/index.js +55 -55
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/MapZipHelper.d.ts +2 -0
- package/dist/libs/MapZipHelper.d.ts.map +1 -0
- package/dist/libs/MapZipHelper.js +27 -0
- package/dist/libs/MapZipHelper.js.map +1 -0
- 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 +33 -33
- package/dist/types/battle.types.js +17 -17
- package/dist/types/character.types.d.ts +134 -134
- package/dist/types/character.types.js +29 -29
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.js +14 -14
- package/dist/types/container.types.d.ts +9 -0
- package/dist/types/container.types.d.ts.map +1 -0
- package/dist/types/container.types.js +3 -0
- package/dist/types/container.types.js.map +1 -0
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/entity.types.d.ts +20 -20
- package/dist/types/entity.types.js +14 -14
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.js +9 -9
- package/dist/types/equipment.types.d.ts +16 -17
- package/dist/types/equipment.types.d.ts.map +1 -1
- package/dist/types/equipment.types.js +2 -2
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/item.types.d.ts +149 -148
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +75 -75
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +52 -52
- package/dist/types/itemContainer.types.js +2 -2
- package/dist/types/maps.types.d.ts +17 -17
- package/dist/types/maps.types.js +10 -10
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +104 -104
- package/dist/types/npc.types.js +35 -35
- 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 +20 -0
- package/dist/types/npcMetadata.types.js.map +1 -0
- 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/player.types.d.ts +49 -0
- package/dist/types/player.types.d.ts.map +1 -0
- package/dist/types/player.types.js +14 -0
- package/dist/types/player.types.js.map +1 -0
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.js +7 -7
- 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 +44 -44
- package/dist/types/skills.types.js +12 -12
- package/dist/types/socket.types.d.ts +17 -17
- package/dist/types/socket.types.js +8 -8
- package/dist/types/tiled.types.d.ts +107 -107
- package/dist/types/tiled.types.js +13 -13
- 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
|
@@ -0,0 +1,9 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"container.types.js","sourceRoot":"","sources":["../../src/types/container.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Languages } from "./translation.types";
|
|
2
|
-
interface IDeviceDetailedInfo {
|
|
3
|
-
isVirtual: boolean;
|
|
4
|
-
manufacturer: string;
|
|
5
|
-
model: string;
|
|
6
|
-
operatingSystem: string;
|
|
7
|
-
osVersion: string;
|
|
8
|
-
platform: string;
|
|
9
|
-
}
|
|
10
|
-
export interface IDeviceInfo {
|
|
11
|
-
info: IDeviceDetailedInfo | null;
|
|
12
|
-
screenOrientation: "landscape" | "portrait" | null;
|
|
13
|
-
isAssetScreen: boolean | null;
|
|
14
|
-
language: Languages | null;
|
|
15
|
-
}
|
|
16
|
-
export declare enum DeviceInfoActionTypes {
|
|
17
|
-
updateDeviceInfo = "updateDeviceInfo"
|
|
18
|
-
}
|
|
19
|
-
export interface IDispatchUpdateDeviceInfo {
|
|
20
|
-
type: DeviceInfoActionTypes.updateDeviceInfo;
|
|
21
|
-
payload: IDeviceInfo;
|
|
22
|
-
}
|
|
23
|
-
export declare type DeviceAction = IDispatchUpdateDeviceInfo;
|
|
24
|
-
export {};
|
|
1
|
+
import { Languages } from "./translation.types";
|
|
2
|
+
interface IDeviceDetailedInfo {
|
|
3
|
+
isVirtual: boolean;
|
|
4
|
+
manufacturer: string;
|
|
5
|
+
model: string;
|
|
6
|
+
operatingSystem: string;
|
|
7
|
+
osVersion: string;
|
|
8
|
+
platform: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IDeviceInfo {
|
|
11
|
+
info: IDeviceDetailedInfo | null;
|
|
12
|
+
screenOrientation: "landscape" | "portrait" | null;
|
|
13
|
+
isAssetScreen: boolean | null;
|
|
14
|
+
language: Languages | null;
|
|
15
|
+
}
|
|
16
|
+
export declare enum DeviceInfoActionTypes {
|
|
17
|
+
updateDeviceInfo = "updateDeviceInfo"
|
|
18
|
+
}
|
|
19
|
+
export interface IDispatchUpdateDeviceInfo {
|
|
20
|
+
type: DeviceInfoActionTypes.updateDeviceInfo;
|
|
21
|
+
payload: IDeviceInfo;
|
|
22
|
+
}
|
|
23
|
+
export declare type DeviceAction = IDispatchUpdateDeviceInfo;
|
|
24
|
+
export {};
|
|
25
25
|
//# sourceMappingURL=device.types.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeviceInfoActionTypes = void 0;
|
|
4
|
-
var DeviceInfoActionTypes;
|
|
5
|
-
(function (DeviceInfoActionTypes) {
|
|
6
|
-
DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
|
|
7
|
-
})(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceInfoActionTypes = void 0;
|
|
4
|
+
var DeviceInfoActionTypes;
|
|
5
|
+
(function (DeviceInfoActionTypes) {
|
|
6
|
+
DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
|
|
7
|
+
})(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
|
|
8
8
|
//# sourceMappingURL=device.types.js.map
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare enum EntityType {
|
|
2
|
-
Character = "Character",
|
|
3
|
-
NPC = "NPC"
|
|
4
|
-
}
|
|
5
|
-
export declare enum EntityAttackType {
|
|
6
|
-
Melee = "Melee",
|
|
7
|
-
Ranged = "Ranged",
|
|
8
|
-
None = "None"
|
|
9
|
-
}
|
|
10
|
-
export interface IEntitiesInView {
|
|
11
|
-
[id: string]: IEntityInViewBasicInfo;
|
|
12
|
-
}
|
|
13
|
-
export interface IEntityInViewBasicInfo {
|
|
14
|
-
id: string;
|
|
15
|
-
type?: EntityType;
|
|
16
|
-
name?: string;
|
|
17
|
-
x?: number;
|
|
18
|
-
y?: number;
|
|
19
|
-
direction?: string;
|
|
20
|
-
}
|
|
1
|
+
export declare enum EntityType {
|
|
2
|
+
Character = "Character",
|
|
3
|
+
NPC = "NPC"
|
|
4
|
+
}
|
|
5
|
+
export declare enum EntityAttackType {
|
|
6
|
+
Melee = "Melee",
|
|
7
|
+
Ranged = "Ranged",
|
|
8
|
+
None = "None"
|
|
9
|
+
}
|
|
10
|
+
export interface IEntitiesInView {
|
|
11
|
+
[id: string]: IEntityInViewBasicInfo;
|
|
12
|
+
}
|
|
13
|
+
export interface IEntityInViewBasicInfo {
|
|
14
|
+
id: string;
|
|
15
|
+
type?: EntityType;
|
|
16
|
+
name?: string;
|
|
17
|
+
x?: number;
|
|
18
|
+
y?: number;
|
|
19
|
+
direction?: string;
|
|
20
|
+
}
|
|
21
21
|
//# sourceMappingURL=entity.types.d.ts.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EntityAttackType = exports.EntityType = void 0;
|
|
4
|
-
var EntityType;
|
|
5
|
-
(function (EntityType) {
|
|
6
|
-
EntityType["Character"] = "Character";
|
|
7
|
-
EntityType["NPC"] = "NPC";
|
|
8
|
-
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|
|
9
|
-
var EntityAttackType;
|
|
10
|
-
(function (EntityAttackType) {
|
|
11
|
-
EntityAttackType["Melee"] = "Melee";
|
|
12
|
-
EntityAttackType["Ranged"] = "Ranged";
|
|
13
|
-
EntityAttackType["None"] = "None";
|
|
14
|
-
})(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntityAttackType = exports.EntityType = void 0;
|
|
4
|
+
var EntityType;
|
|
5
|
+
(function (EntityType) {
|
|
6
|
+
EntityType["Character"] = "Character";
|
|
7
|
+
EntityType["NPC"] = "NPC";
|
|
8
|
+
})(EntityType = exports.EntityType || (exports.EntityType = {}));
|
|
9
|
+
var EntityAttackType;
|
|
10
|
+
(function (EntityAttackType) {
|
|
11
|
+
EntityAttackType["Melee"] = "Melee";
|
|
12
|
+
EntityAttackType["Ranged"] = "Ranged";
|
|
13
|
+
EntityAttackType["None"] = "None";
|
|
14
|
+
})(EntityAttackType = exports.EntityAttackType || (exports.EntityAttackType = {}));
|
|
15
15
|
//# sourceMappingURL=entity.types.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare enum EnvType {
|
|
2
|
-
Development = "Development",
|
|
3
|
-
Staging = "Staging",
|
|
4
|
-
Production = "Production"
|
|
5
|
-
}
|
|
1
|
+
export declare enum EnvType {
|
|
2
|
+
Development = "Development",
|
|
3
|
+
Staging = "Staging",
|
|
4
|
+
Production = "Production"
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=env.types.d.ts.map
|
package/dist/types/env.types.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EnvType = void 0;
|
|
4
|
-
var EnvType;
|
|
5
|
-
(function (EnvType) {
|
|
6
|
-
EnvType["Development"] = "Development";
|
|
7
|
-
EnvType["Staging"] = "Staging";
|
|
8
|
-
EnvType["Production"] = "Production";
|
|
9
|
-
})(EnvType = exports.EnvType || (exports.EnvType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvType = void 0;
|
|
4
|
+
var EnvType;
|
|
5
|
+
(function (EnvType) {
|
|
6
|
+
EnvType["Development"] = "Development";
|
|
7
|
+
EnvType["Staging"] = "Staging";
|
|
8
|
+
EnvType["Production"] = "Production";
|
|
9
|
+
})(EnvType = exports.EnvType || (exports.EnvType = {}));
|
|
10
10
|
//# sourceMappingURL=env.types.js.map
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { ICharacter } from "./character.types";
|
|
2
|
-
import { IItem } from "./item.types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
1
|
+
import { ICharacter } from "./character.types";
|
|
2
|
+
import { IItem } from "./item.types";
|
|
3
|
+
import { IResource } from "./resource.types";
|
|
4
|
+
export interface IEquipementSet extends IResource {
|
|
5
|
+
owner?: ICharacter | string;
|
|
6
|
+
head?: IItem | string;
|
|
7
|
+
neck?: IItem | string;
|
|
8
|
+
leftHand?: IItem | string;
|
|
9
|
+
rightHand?: IItem | string;
|
|
10
|
+
ring?: IItem | string;
|
|
11
|
+
legs?: IItem | string;
|
|
12
|
+
boot?: IItem | string;
|
|
13
|
+
armor?: IItem | string;
|
|
14
|
+
accessory?: IItem | string;
|
|
15
|
+
inventory: IItem | string;
|
|
16
|
+
}
|
|
18
17
|
//# sourceMappingURL=equipment.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.types.d.ts","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"equipment.types.d.ts","sourceRoot":"","sources":["../../src/types/equipment.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,KAAK,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,KAAK,GAAG,MAAM,CAAC;CAC3B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=equipment.types.js.map
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
export interface IGoogleConfig {
|
|
2
|
-
clientID: string;
|
|
3
|
-
clientSecret: string;
|
|
4
|
-
redirectURI: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IGoogleOAuthUrlResponse {
|
|
7
|
-
googleOAuthUrl: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IGoogleOAuthTokenPayload {
|
|
10
|
-
access_token: string;
|
|
11
|
-
id_token: string;
|
|
12
|
-
expires_in: string;
|
|
13
|
-
token_type: string;
|
|
14
|
-
refresh_token: string;
|
|
15
|
-
}
|
|
16
|
-
export interface IGoogleOAuthUserInfoResponse {
|
|
17
|
-
id: string;
|
|
18
|
-
email: string;
|
|
19
|
-
verified_email: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
given_name: string;
|
|
22
|
-
family_name: string;
|
|
23
|
-
picture: string;
|
|
24
|
-
locale: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IGoogleCapacitorOAuthResponse {
|
|
27
|
-
email: string;
|
|
28
|
-
familyName: string;
|
|
29
|
-
givenName: string;
|
|
30
|
-
id: string;
|
|
31
|
-
imageUrl: string;
|
|
32
|
-
name: string;
|
|
33
|
-
authentication: IAuthentication;
|
|
34
|
-
serverAuthCode: string;
|
|
35
|
-
}
|
|
36
|
-
export interface IAuthentication {
|
|
37
|
-
accessToken: string;
|
|
38
|
-
idToken: string;
|
|
39
|
-
}
|
|
40
|
-
export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
|
|
41
|
-
iss: string;
|
|
42
|
-
sub: string;
|
|
43
|
-
azp: string;
|
|
44
|
-
aud: string;
|
|
45
|
-
iat: string;
|
|
46
|
-
exp: string;
|
|
47
|
-
}
|
|
1
|
+
export interface IGoogleConfig {
|
|
2
|
+
clientID: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
redirectURI: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGoogleOAuthUrlResponse {
|
|
7
|
+
googleOAuthUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IGoogleOAuthTokenPayload {
|
|
10
|
+
access_token: string;
|
|
11
|
+
id_token: string;
|
|
12
|
+
expires_in: string;
|
|
13
|
+
token_type: string;
|
|
14
|
+
refresh_token: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IGoogleOAuthUserInfoResponse {
|
|
17
|
+
id: string;
|
|
18
|
+
email: string;
|
|
19
|
+
verified_email: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
given_name: string;
|
|
22
|
+
family_name: string;
|
|
23
|
+
picture: string;
|
|
24
|
+
locale: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IGoogleCapacitorOAuthResponse {
|
|
27
|
+
email: string;
|
|
28
|
+
familyName: string;
|
|
29
|
+
givenName: string;
|
|
30
|
+
id: string;
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
name: string;
|
|
33
|
+
authentication: IAuthentication;
|
|
34
|
+
serverAuthCode: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IAuthentication {
|
|
37
|
+
accessToken: string;
|
|
38
|
+
idToken: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
|
|
41
|
+
iss: string;
|
|
42
|
+
sub: string;
|
|
43
|
+
azp: string;
|
|
44
|
+
aud: string;
|
|
45
|
+
iat: string;
|
|
46
|
+
exp: string;
|
|
47
|
+
}
|
|
48
48
|
//# sourceMappingURL=googleOAuth.types.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=googleOAuth.types.js.map
|
|
@@ -1,149 +1,150 @@
|
|
|
1
|
-
import { ICharacter } from "./character.types";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
1
|
+
import { ICharacter } from "./character.types";
|
|
2
|
+
import { IItemContainer } from "./itemContainer.types";
|
|
3
|
+
import { MapLayers } from "./maps.types";
|
|
4
|
+
import { IResource } from "./resource.types";
|
|
5
|
+
export interface IItem extends IResource {
|
|
6
|
+
tiledId?: number;
|
|
7
|
+
owner?: ICharacter | string;
|
|
8
|
+
type: ItemType;
|
|
9
|
+
subType: ItemSubType;
|
|
10
|
+
name: string;
|
|
11
|
+
description: string;
|
|
12
|
+
fullDescription: string;
|
|
13
|
+
key: string;
|
|
14
|
+
textureAtlas: string;
|
|
15
|
+
texturePath: string;
|
|
16
|
+
textureKey: string;
|
|
17
|
+
attack?: number;
|
|
18
|
+
defense?: number;
|
|
19
|
+
weight: number;
|
|
20
|
+
allowedEquipSlotType: ItemSlotType[];
|
|
21
|
+
isEquipable: boolean;
|
|
22
|
+
equipSlotType?: ItemSlotType;
|
|
23
|
+
isStackable: boolean;
|
|
24
|
+
maxStackSize: number;
|
|
25
|
+
stackQty?: number;
|
|
26
|
+
isUsable: boolean;
|
|
27
|
+
usableEffect?: string;
|
|
28
|
+
isStorable: boolean;
|
|
29
|
+
x?: number;
|
|
30
|
+
y?: number;
|
|
31
|
+
scene?: string;
|
|
32
|
+
layer?: MapLayers;
|
|
33
|
+
isSolid: boolean;
|
|
34
|
+
isItemContainer?: boolean;
|
|
35
|
+
itemContainer?: string | IItemContainer;
|
|
36
|
+
generateContainerSlots?: number;
|
|
37
|
+
}
|
|
38
|
+
export declare enum ItemType {
|
|
39
|
+
Weapon = "Weapon",
|
|
40
|
+
Armor = "Armor",
|
|
41
|
+
Accessory = "Accessory",
|
|
42
|
+
Jewelry = "Jewelry",
|
|
43
|
+
Consumable = "Consumable",
|
|
44
|
+
CraftMaterial = "CraftMaterial",
|
|
45
|
+
Quest = "Quest",
|
|
46
|
+
Information = "Information",
|
|
47
|
+
Tool = "Tool",
|
|
48
|
+
Container = "Container",
|
|
49
|
+
Other = "Other"
|
|
50
|
+
}
|
|
51
|
+
export declare enum ItemSubType {
|
|
52
|
+
Accessory = "Accessory",
|
|
53
|
+
Armor = "Armor",
|
|
54
|
+
Axe = "Axe",
|
|
55
|
+
Boot = "Boot",
|
|
56
|
+
Bow = "Bow",
|
|
57
|
+
Food = "Food",
|
|
58
|
+
Glove = "Glove",
|
|
59
|
+
Helmet = "Helmet",
|
|
60
|
+
Magic = "Magic",
|
|
61
|
+
Potion = "Potion",
|
|
62
|
+
Shield = "Shield",
|
|
63
|
+
Spear = "Spear",
|
|
64
|
+
Staff = "Staff",
|
|
65
|
+
Sword = "Sword",
|
|
66
|
+
Other = "Other",
|
|
67
|
+
DeadBody = "DeadBody",
|
|
68
|
+
Dagger = "Dagger"
|
|
69
|
+
}
|
|
70
|
+
export declare enum ItemSlotType {
|
|
71
|
+
Head = "Head",
|
|
72
|
+
Neck = "Neck",
|
|
73
|
+
Torso = "Torso",
|
|
74
|
+
LeftHand = "LeftHand",
|
|
75
|
+
RightHand = "RightHand",
|
|
76
|
+
Waist = "Waist",
|
|
77
|
+
Legs = "Legs",
|
|
78
|
+
Feet = "Feet",
|
|
79
|
+
Ring = "Ring",
|
|
80
|
+
Accessory = "Accessory",
|
|
81
|
+
Inventory = "Inventory"
|
|
82
|
+
}
|
|
83
|
+
export declare enum ItemSocketEvents {
|
|
84
|
+
Update = "Update",
|
|
85
|
+
Look = "Look",
|
|
86
|
+
Equip = "Equip",
|
|
87
|
+
Unequip = "Unequip",
|
|
88
|
+
Pickup = "Pickup",
|
|
89
|
+
Drop = "Drop",
|
|
90
|
+
Use = "Use",
|
|
91
|
+
GetItemInfo = "GetItemInfo",
|
|
92
|
+
ReadItemInfo = "ReadItemInfo",
|
|
93
|
+
ContainerOpen = "ContainerOpen",
|
|
94
|
+
ContainerRead = "ContainerRead",
|
|
95
|
+
ContainerTransfer = "ContainerTransfer",
|
|
96
|
+
EquipmentAndInventoryUpdate = "EquipmentAndInventoryUpdate"
|
|
97
|
+
}
|
|
98
|
+
export interface IGetItemInfo {
|
|
99
|
+
id: string;
|
|
100
|
+
fields: string[];
|
|
101
|
+
}
|
|
102
|
+
export interface IReadItemInfo {
|
|
103
|
+
id: string;
|
|
104
|
+
information: string;
|
|
105
|
+
}
|
|
106
|
+
export interface IItemUpdate {
|
|
107
|
+
id: string;
|
|
108
|
+
textureKey: string;
|
|
109
|
+
textureAtlas: string;
|
|
110
|
+
texturePath: string;
|
|
111
|
+
type: ItemType;
|
|
112
|
+
subType: ItemSubType;
|
|
113
|
+
name: string;
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
scene: string;
|
|
117
|
+
layer: MapLayers;
|
|
118
|
+
}
|
|
119
|
+
export interface IItemsInView {
|
|
120
|
+
[id: string]: IItemInViewBasicInfo;
|
|
121
|
+
}
|
|
122
|
+
export interface IItemInViewBasicInfo {
|
|
123
|
+
id: string;
|
|
124
|
+
x?: number;
|
|
125
|
+
y?: number;
|
|
126
|
+
}
|
|
127
|
+
export declare const ActionsByItemType: {
|
|
128
|
+
Equipment: ItemSocketEvents[];
|
|
129
|
+
Consumable: ItemSocketEvents[];
|
|
130
|
+
CraftMaterial: ItemSocketEvents[];
|
|
131
|
+
Other: ItemSocketEvents[];
|
|
132
|
+
EquipmenSetItems: ItemSocketEvents[];
|
|
133
|
+
EquipmenSetContainer: ItemSocketEvents[];
|
|
134
|
+
};
|
|
135
|
+
export interface IPayloadProps {
|
|
136
|
+
item: IItem | null;
|
|
137
|
+
actionType: ItemSocketEvents | string;
|
|
138
|
+
}
|
|
139
|
+
export interface IEquipItemPayload {
|
|
140
|
+
itemId: string;
|
|
141
|
+
targetSlot: ItemSlotType;
|
|
142
|
+
}
|
|
143
|
+
export interface IUnequipItemPayload {
|
|
144
|
+
itemId: string;
|
|
145
|
+
}
|
|
146
|
+
export interface IEquipmentAndInventoryUpdatePayload {
|
|
147
|
+
equipment: object;
|
|
148
|
+
inventory: object;
|
|
149
|
+
}
|
|
149
150
|
//# sourceMappingURL=item.types.d.ts.map
|