@rpg-engine/shared 0.8.92 → 0.8.94
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/deviceHelpers.d.ts +2 -2
- package/dist/helpers/deviceHelpers.js +16 -16
- package/dist/helpers/itemSlotHelper.d.ts +7 -7
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/weightHelper.d.ts +1 -1
- package/dist/helpers/weightHelper.js +14 -14
- package/dist/index.d.ts +57 -57
- package/dist/index.js +73 -73
- 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 +69 -69
- package/dist/types/animation.types.js +46 -46
- 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 +41 -41
- package/dist/types/battle.types.js +18 -18
- package/dist/types/buff.types.d.ts +39 -39
- package/dist/types/buff.types.js +13 -13
- package/dist/types/character.types.d.ts +233 -233
- package/dist/types/character.types.js +65 -65
- package/dist/types/chat.types.d.ts +71 -72
- package/dist/types/chat.types.d.ts.map +1 -1
- package/dist/types/chat.types.js +22 -22
- package/dist/types/chat.types.js.map +1 -1
- package/dist/types/depot.types.d.ts +18 -18
- package/dist/types/depot.types.js +9 -9
- package/dist/types/device.types.d.ts +24 -24
- package/dist/types/device.types.js +7 -7
- package/dist/types/displayText.types.d.ts +10 -10
- package/dist/types/displayText.types.js +7 -7
- package/dist/types/entity.types.d.ts +30 -30
- package/dist/types/entity.types.js +20 -20
- 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 +377 -377
- package/dist/types/item.types.js +154 -154
- package/dist/types/itemContainer.types.d.ts +83 -83
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/leaderboard.types.d.ts +32 -32
- package/dist/types/leaderboard.types.js +9 -9
- package/dist/types/macro.types.d.ts +8 -8
- package/dist/types/macro.types.js +12 -12
- package/dist/types/maps.types.d.ts +90 -90
- package/dist/types/maps.types.js +85 -85
- package/dist/types/marketplace.types.d.ts +61 -61
- package/dist/types/marketplace.types.js +15 -15
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.js +2 -2
- package/dist/types/npc.types.d.ts +165 -165
- package/dist/types/npc.types.js +49 -49
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/party.types.d.ts +83 -83
- package/dist/types/party.types.js +54 -54
- 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/premiumAccount.types.d.ts +7 -7
- package/dist/types/premiumAccount.types.js +11 -11
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.js +21 -21
- package/dist/types/raid.types.d.ts +6 -6
- package/dist/types/raid.types.js +2 -2
- 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/shortcut.types.d.ts +11 -11
- package/dist/types/shortcut.types.js +9 -9
- package/dist/types/skills.types.d.ts +144 -144
- package/dist/types/skills.types.js +106 -106
- package/dist/types/socket.types.d.ts +18 -18
- package/dist/types/socket.types.js +8 -8
- package/dist/types/spell.types.d.ts +156 -156
- package/dist/types/spell.types.d.ts.map +1 -1
- package/dist/types/spell.types.js +108 -108
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/trade.types.d.ts +65 -65
- package/dist/types/trade.types.js +15 -15
- 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/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/user.types.d.ts +104 -104
- 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 +15 -15
- package/dist/types/view.types.js +7 -7
- package/package.json +43 -43
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { ICharacter } from "./character.types";
|
|
2
|
-
import { IItem } from "./item.types";
|
|
3
|
-
import { IResource } from "./resource.types";
|
|
4
|
-
export interface IEquipmentSet extends IResource {
|
|
5
|
-
owner?: ICharacter | string;
|
|
6
|
-
ownerRef?: string;
|
|
7
|
-
head?: IItem | string;
|
|
8
|
-
neck?: IItem | string;
|
|
9
|
-
leftHand?: IItem | string;
|
|
10
|
-
rightHand?: IItem | string;
|
|
11
|
-
ring?: IItem | string;
|
|
12
|
-
legs?: IItem | string;
|
|
13
|
-
boot?: IItem | string;
|
|
14
|
-
armor?: IItem | string;
|
|
15
|
-
accessory?: IItem | string;
|
|
16
|
-
inventory?: IItem | string;
|
|
17
|
-
totalEquippedAttack?: Promise<number>;
|
|
18
|
-
totalEquippedDefense?: Promise<number>;
|
|
19
|
-
}
|
|
20
|
-
export declare enum EquipmentSocketEvents {
|
|
21
|
-
Unequip = "Unequip",
|
|
22
|
-
ContainerOpen = "EquipmentOpen",
|
|
23
|
-
ContainerRead = "EquipmentRead",
|
|
24
|
-
GetEquipmentInfo = "GetEquipmentInfo",
|
|
25
|
-
ReadEquipmentInfo = "ReadEquipmentInfo",
|
|
26
|
-
EquipmentUpdate = "EquipmentUpdate"
|
|
27
|
-
}
|
|
28
|
-
export interface IEquipmentRead {
|
|
29
|
-
equipment: IEquipmentSet;
|
|
30
|
-
}
|
|
31
|
-
interface IStringIndex {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}
|
|
34
|
-
export declare const EquipmentSocketEventsDisplayLabels: IStringIndex;
|
|
35
|
-
export {};
|
|
1
|
+
import { ICharacter } from "./character.types";
|
|
2
|
+
import { IItem } from "./item.types";
|
|
3
|
+
import { IResource } from "./resource.types";
|
|
4
|
+
export interface IEquipmentSet extends IResource {
|
|
5
|
+
owner?: ICharacter | string;
|
|
6
|
+
ownerRef?: string;
|
|
7
|
+
head?: IItem | string;
|
|
8
|
+
neck?: IItem | string;
|
|
9
|
+
leftHand?: IItem | string;
|
|
10
|
+
rightHand?: IItem | string;
|
|
11
|
+
ring?: IItem | string;
|
|
12
|
+
legs?: IItem | string;
|
|
13
|
+
boot?: IItem | string;
|
|
14
|
+
armor?: IItem | string;
|
|
15
|
+
accessory?: IItem | string;
|
|
16
|
+
inventory?: IItem | string;
|
|
17
|
+
totalEquippedAttack?: Promise<number>;
|
|
18
|
+
totalEquippedDefense?: Promise<number>;
|
|
19
|
+
}
|
|
20
|
+
export declare enum EquipmentSocketEvents {
|
|
21
|
+
Unequip = "Unequip",
|
|
22
|
+
ContainerOpen = "EquipmentOpen",
|
|
23
|
+
ContainerRead = "EquipmentRead",
|
|
24
|
+
GetEquipmentInfo = "GetEquipmentInfo",
|
|
25
|
+
ReadEquipmentInfo = "ReadEquipmentInfo",
|
|
26
|
+
EquipmentUpdate = "EquipmentUpdate"
|
|
27
|
+
}
|
|
28
|
+
export interface IEquipmentRead {
|
|
29
|
+
equipment: IEquipmentSet;
|
|
30
|
+
}
|
|
31
|
+
interface IStringIndex {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}
|
|
34
|
+
export declare const EquipmentSocketEventsDisplayLabels: IStringIndex;
|
|
35
|
+
export {};
|
|
36
36
|
//# sourceMappingURL=equipment.types.d.ts.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EquipmentSocketEventsDisplayLabels = exports.EquipmentSocketEvents = void 0;
|
|
4
|
-
var EquipmentSocketEvents;
|
|
5
|
-
(function (EquipmentSocketEvents) {
|
|
6
|
-
EquipmentSocketEvents["Unequip"] = "Unequip";
|
|
7
|
-
EquipmentSocketEvents["ContainerOpen"] = "EquipmentOpen";
|
|
8
|
-
EquipmentSocketEvents["ContainerRead"] = "EquipmentRead";
|
|
9
|
-
EquipmentSocketEvents["GetEquipmentInfo"] = "GetEquipmentInfo";
|
|
10
|
-
EquipmentSocketEvents["ReadEquipmentInfo"] = "ReadEquipmentInfo";
|
|
11
|
-
EquipmentSocketEvents["EquipmentUpdate"] = "EquipmentUpdate";
|
|
12
|
-
})(EquipmentSocketEvents = exports.EquipmentSocketEvents || (exports.EquipmentSocketEvents = {}));
|
|
13
|
-
exports.EquipmentSocketEventsDisplayLabels = {
|
|
14
|
-
[EquipmentSocketEvents.Unequip]: "Unequip",
|
|
15
|
-
[EquipmentSocketEvents.GetEquipmentInfo]: "Look",
|
|
16
|
-
[EquipmentSocketEvents.ContainerOpen]: "Open",
|
|
17
|
-
[EquipmentSocketEvents.ContainerRead]: "Read",
|
|
18
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EquipmentSocketEventsDisplayLabels = exports.EquipmentSocketEvents = void 0;
|
|
4
|
+
var EquipmentSocketEvents;
|
|
5
|
+
(function (EquipmentSocketEvents) {
|
|
6
|
+
EquipmentSocketEvents["Unequip"] = "Unequip";
|
|
7
|
+
EquipmentSocketEvents["ContainerOpen"] = "EquipmentOpen";
|
|
8
|
+
EquipmentSocketEvents["ContainerRead"] = "EquipmentRead";
|
|
9
|
+
EquipmentSocketEvents["GetEquipmentInfo"] = "GetEquipmentInfo";
|
|
10
|
+
EquipmentSocketEvents["ReadEquipmentInfo"] = "ReadEquipmentInfo";
|
|
11
|
+
EquipmentSocketEvents["EquipmentUpdate"] = "EquipmentUpdate";
|
|
12
|
+
})(EquipmentSocketEvents = exports.EquipmentSocketEvents || (exports.EquipmentSocketEvents = {}));
|
|
13
|
+
exports.EquipmentSocketEventsDisplayLabels = {
|
|
14
|
+
[EquipmentSocketEvents.Unequip]: "Unequip",
|
|
15
|
+
[EquipmentSocketEvents.GetEquipmentInfo]: "Look",
|
|
16
|
+
[EquipmentSocketEvents.ContainerOpen]: "Open",
|
|
17
|
+
[EquipmentSocketEvents.ContainerRead]: "Read",
|
|
18
|
+
};
|
|
19
19
|
//# 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,8 +1,8 @@
|
|
|
1
|
-
import { IItemContainer } from "./itemContainer.types";
|
|
2
|
-
export interface IInventoryContainerOpen {
|
|
3
|
-
inventoryId: string;
|
|
4
|
-
}
|
|
5
|
-
export interface IInventoryRead {
|
|
6
|
-
inventory: IItemContainer;
|
|
7
|
-
}
|
|
1
|
+
import { IItemContainer } from "./itemContainer.types";
|
|
2
|
+
export interface IInventoryContainerOpen {
|
|
3
|
+
inventoryId: string;
|
|
4
|
+
}
|
|
5
|
+
export interface IInventoryRead {
|
|
6
|
+
inventory: IItemContainer;
|
|
7
|
+
}
|
|
8
8
|
//# sourceMappingURL=inventory.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=inventory.types.js.map
|