@rpg-engine/shared 0.7.42 → 0.7.43
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.d.ts.map +0 -0
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/date.constants.js.map +0 -0
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.d.ts.map +0 -0
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/npc.constants.js.map +0 -0
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.d.ts.map +0 -0
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/socket.constants.js.map +0 -0
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.d.ts.map +0 -0
- package/dist/constants/world.constants.js +13 -13
- package/dist/constants/world.constants.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/helpers/itemSlotHelper.js +27 -27
- package/dist/helpers/itemSlotHelper.js.map +0 -0
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.d.ts.map +0 -0
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/helpers/skillHelpers.js.map +0 -0
- package/dist/index.d.ts +50 -49
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +66 -65
- package/dist/index.js.map +1 -1
- package/dist/libs/GridHelper.d.ts +11 -11
- package/dist/libs/GridHelper.d.ts.map +0 -0
- package/dist/libs/GridHelper.js +37 -37
- package/dist/libs/GridHelper.js.map +0 -0
- package/dist/libs/MathHelper.d.ts +16 -16
- package/dist/libs/MathHelper.d.ts.map +0 -0
- package/dist/libs/MathHelper.js +14 -14
- package/dist/libs/MathHelper.js.map +0 -0
- package/dist/libs/SocketHelper.d.ts +2 -2
- package/dist/libs/SocketHelper.d.ts.map +0 -0
- package/dist/libs/SocketHelper.js +14 -14
- package/dist/libs/SocketHelper.js.map +0 -0
- package/dist/libs/TextHelper.d.ts +7 -7
- package/dist/libs/TextHelper.d.ts.map +0 -0
- package/dist/libs/TextHelper.js +21 -21
- package/dist/libs/TextHelper.js.map +0 -0
- package/dist/libs/TypeHelper.d.ts +3 -3
- package/dist/libs/TypeHelper.d.ts.map +0 -0
- package/dist/libs/TypeHelper.js +16 -16
- package/dist/libs/TypeHelper.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/translations/onboarding.lang.js +21 -21
- package/dist/translations/onboarding.lang.js.map +0 -0
- 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 +64 -64
- package/dist/types/animation.types.d.ts.map +0 -0
- package/dist/types/animation.types.js +41 -41
- package/dist/types/animation.types.js.map +0 -0
- package/dist/types/api.types.d.ts +21 -21
- package/dist/types/api.types.d.ts.map +0 -0
- package/dist/types/api.types.js +20 -20
- package/dist/types/api.types.js.map +0 -0
- package/dist/types/asset.types.d.ts +6 -6
- package/dist/types/asset.types.d.ts.map +0 -0
- package/dist/types/asset.types.js +2 -2
- package/dist/types/asset.types.js.map +0 -0
- package/dist/types/auth.types.d.ts +7 -7
- package/dist/types/auth.types.d.ts.map +0 -0
- package/dist/types/auth.types.js +2 -2
- package/dist/types/auth.types.js.map +0 -0
- package/dist/types/battle.types.d.ts +40 -40
- package/dist/types/battle.types.d.ts.map +0 -0
- package/dist/types/battle.types.js +18 -18
- package/dist/types/battle.types.js.map +0 -0
- package/dist/types/character.types.d.ts +197 -197
- package/dist/types/character.types.d.ts.map +0 -0
- package/dist/types/character.types.js +51 -51
- package/dist/types/character.types.js.map +0 -0
- package/dist/types/chat.types.d.ts +30 -30
- package/dist/types/chat.types.d.ts.map +0 -0
- package/dist/types/chat.types.js +14 -14
- package/dist/types/chat.types.js.map +0 -0
- 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.d.ts.map +0 -0
- package/dist/types/device.types.js +7 -7
- package/dist/types/device.types.js.map +0 -0
- package/dist/types/entity.types.d.ts +30 -30
- package/dist/types/entity.types.d.ts.map +0 -0
- package/dist/types/entity.types.js +20 -20
- package/dist/types/entity.types.js.map +0 -0
- package/dist/types/env.types.d.ts +5 -5
- package/dist/types/env.types.d.ts.map +0 -0
- package/dist/types/env.types.js +9 -9
- package/dist/types/env.types.js.map +0 -0
- package/dist/types/equipment.types.d.ts +35 -35
- package/dist/types/equipment.types.d.ts.map +0 -0
- package/dist/types/equipment.types.js +18 -18
- package/dist/types/equipment.types.js.map +0 -0
- package/dist/types/googleOAuth.types.d.ts +47 -47
- package/dist/types/googleOAuth.types.d.ts.map +0 -0
- package/dist/types/googleOAuth.types.js +2 -2
- package/dist/types/googleOAuth.types.js.map +0 -0
- package/dist/types/inventory.types.d.ts +7 -7
- package/dist/types/inventory.types.d.ts.map +0 -0
- package/dist/types/inventory.types.js +2 -2
- package/dist/types/inventory.types.js.map +0 -0
- package/dist/types/item.types.d.ts +345 -345
- package/dist/types/item.types.d.ts.map +0 -0
- package/dist/types/item.types.js +155 -155
- package/dist/types/item.types.js.map +0 -0
- package/dist/types/itemContainer.types.d.ts +83 -83
- package/dist/types/itemContainer.types.d.ts.map +0 -0
- package/dist/types/itemContainer.types.js +11 -11
- package/dist/types/itemContainer.types.js.map +0 -0
- package/dist/types/macro.types.d.ts +9 -0
- package/dist/types/macro.types.d.ts.map +1 -0
- package/dist/types/macro.types.js +13 -0
- package/dist/types/macro.types.js.map +1 -0
- package/dist/types/maps.types.d.ts +82 -82
- package/dist/types/maps.types.d.ts.map +0 -0
- package/dist/types/maps.types.js +81 -81
- package/dist/types/maps.types.js.map +0 -0
- package/dist/types/notification.types.d.ts +14 -14
- package/dist/types/notification.types.d.ts.map +0 -0
- package/dist/types/notification.types.js +2 -2
- package/dist/types/notification.types.js.map +0 -0
- package/dist/types/npc.types.d.ts +151 -151
- package/dist/types/npc.types.d.ts.map +0 -0
- package/dist/types/npc.types.js +48 -48
- package/dist/types/npc.types.js.map +0 -0
- package/dist/types/pagination.types.d.ts +13 -13
- package/dist/types/pagination.types.d.ts.map +0 -0
- package/dist/types/pagination.types.js +2 -2
- package/dist/types/pagination.types.js.map +0 -0
- package/dist/types/places.types.d.ts +16 -16
- package/dist/types/places.types.d.ts.map +0 -0
- package/dist/types/places.types.js +9 -9
- package/dist/types/places.types.js.map +0 -0
- package/dist/types/preloadScene.types.d.ts +4 -4
- package/dist/types/preloadScene.types.d.ts.map +0 -0
- package/dist/types/preloadScene.types.js +7 -7
- package/dist/types/preloadScene.types.js.map +0 -0
- package/dist/types/quest.types.d.ts +74 -74
- package/dist/types/quest.types.d.ts.map +0 -0
- package/dist/types/quest.types.js +21 -21
- package/dist/types/quest.types.js.map +0 -0
- package/dist/types/resource.types.d.ts +5 -5
- package/dist/types/resource.types.d.ts.map +0 -0
- package/dist/types/resource.types.js +2 -2
- package/dist/types/resource.types.js.map +0 -0
- package/dist/types/scene.types.d.ts +8 -8
- package/dist/types/scene.types.d.ts.map +0 -0
- package/dist/types/scene.types.js +8 -8
- package/dist/types/scene.types.js.map +0 -0
- package/dist/types/shortcut.types.d.ts +11 -11
- package/dist/types/shortcut.types.js +9 -9
- package/dist/types/skills.types.d.ts +141 -141
- package/dist/types/skills.types.d.ts.map +0 -0
- package/dist/types/skills.types.js +105 -105
- package/dist/types/skills.types.js.map +0 -0
- package/dist/types/socket.types.d.ts +17 -17
- package/dist/types/socket.types.d.ts.map +0 -0
- package/dist/types/socket.types.js +8 -8
- package/dist/types/socket.types.js.map +0 -0
- package/dist/types/spell.types.d.ts +24 -24
- package/dist/types/spell.types.js +9 -9
- package/dist/types/tiled.types.d.ts +119 -119
- package/dist/types/tiled.types.d.ts.map +0 -0
- package/dist/types/tiled.types.js +7 -7
- package/dist/types/tiled.types.js.map +0 -0
- package/dist/types/trade.types.d.ts +38 -38
- package/dist/types/trade.types.d.ts.map +0 -0
- package/dist/types/trade.types.js +8 -8
- package/dist/types/trade.types.js.map +0 -0
- package/dist/types/translation.types.d.ts +5 -5
- package/dist/types/translation.types.d.ts.map +0 -0
- package/dist/types/translation.types.js +8 -8
- package/dist/types/translation.types.js.map +0 -0
- package/dist/types/ui.types.d.ts +8 -8
- package/dist/types/ui.types.d.ts.map +0 -0
- package/dist/types/ui.types.js +7 -7
- package/dist/types/ui.types.js.map +0 -0
- package/dist/types/useWith.types.d.ts +25 -25
- package/dist/types/useWith.types.d.ts.map +0 -0
- package/dist/types/useWith.types.js +9 -9
- package/dist/types/useWith.types.js.map +0 -0
- package/dist/types/user.types.d.ts +101 -101
- package/dist/types/user.types.d.ts.map +0 -0
- package/dist/types/user.types.js +38 -38
- package/dist/types/user.types.js.map +0 -0
- package/dist/types/validation.types.d.ts +9 -9
- package/dist/types/validation.types.d.ts.map +0 -0
- package/dist/types/validation.types.js +2 -2
- package/dist/types/validation.types.js.map +0 -0
- package/dist/types/view.types.d.ts +14 -14
- package/dist/types/view.types.d.ts.map +0 -0
- package/dist/types/view.types.js +7 -7
- package/dist/types/view.types.js.map +0 -0
- package/package.json +43 -43
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import { ICharacter } from "./character.types";
|
|
2
|
-
import { IResource } from "./resource.types";
|
|
3
|
-
export interface IQuest extends IResource {
|
|
4
|
-
key: string;
|
|
5
|
-
npcId: string;
|
|
6
|
-
title: string;
|
|
7
|
-
description: string;
|
|
8
|
-
rewards: IQuestReward[];
|
|
9
|
-
objectives: IQuestObjectiveKill[] | IQuestObjectiveInteraction[];
|
|
10
|
-
thumbnail?: string;
|
|
11
|
-
status?: QuestStatus;
|
|
12
|
-
}
|
|
13
|
-
export interface IQuestReward {
|
|
14
|
-
id?: string;
|
|
15
|
-
itemKeys: string[];
|
|
16
|
-
spellKeys?: string[];
|
|
17
|
-
qty: number;
|
|
18
|
-
}
|
|
19
|
-
export interface IQuestObjective {
|
|
20
|
-
id?: string;
|
|
21
|
-
type: QuestType;
|
|
22
|
-
status?: QuestStatus;
|
|
23
|
-
}
|
|
24
|
-
export interface IQuestObjectiveKill extends IQuestObjective {
|
|
25
|
-
killCount: number;
|
|
26
|
-
killCountTarget: number;
|
|
27
|
-
creatureKeys: string[];
|
|
28
|
-
}
|
|
29
|
-
export interface IQuestObjectiveInteraction extends IQuestObjective {
|
|
30
|
-
targetNPCkey?: string;
|
|
31
|
-
items?: IQuestItems[];
|
|
32
|
-
}
|
|
33
|
-
export interface IQuestItems {
|
|
34
|
-
itemKey: string;
|
|
35
|
-
qty: number;
|
|
36
|
-
}
|
|
37
|
-
export interface IQuestRecord {
|
|
38
|
-
id: string;
|
|
39
|
-
character: ICharacter | string;
|
|
40
|
-
objective: IQuestObjectiveKill | IQuestObjectiveInteraction | string;
|
|
41
|
-
}
|
|
42
|
-
export declare enum QuestType {
|
|
43
|
-
Kill = "Kill",
|
|
44
|
-
Interaction = "Interaction"
|
|
45
|
-
}
|
|
46
|
-
export declare enum QuestStatus {
|
|
47
|
-
Pending = "Pending",
|
|
48
|
-
InProgress = "InProgress",
|
|
49
|
-
Completed = "Completed"
|
|
50
|
-
}
|
|
51
|
-
export interface IGetQuests {
|
|
52
|
-
npcId?: string;
|
|
53
|
-
characterId?: string;
|
|
54
|
-
status?: QuestStatus;
|
|
55
|
-
}
|
|
56
|
-
export interface IQuestsResponse {
|
|
57
|
-
npcId?: string;
|
|
58
|
-
quests: IQuest[];
|
|
59
|
-
}
|
|
60
|
-
export interface IChooseQuest {
|
|
61
|
-
npcId: string;
|
|
62
|
-
questId: string;
|
|
63
|
-
}
|
|
64
|
-
export declare enum QuestSocketEvents {
|
|
65
|
-
Started = "Started",
|
|
66
|
-
Completed = "Completed",
|
|
67
|
-
GetQuests = "GetQuests",
|
|
68
|
-
ChooseQuest = "ChooseQuest"
|
|
69
|
-
}
|
|
70
|
-
export interface IQuestEventFromServer {
|
|
71
|
-
characterId: string;
|
|
72
|
-
npcId: string;
|
|
73
|
-
questId: string;
|
|
74
|
-
}
|
|
1
|
+
import { ICharacter } from "./character.types";
|
|
2
|
+
import { IResource } from "./resource.types";
|
|
3
|
+
export interface IQuest extends IResource {
|
|
4
|
+
key: string;
|
|
5
|
+
npcId: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
rewards: IQuestReward[];
|
|
9
|
+
objectives: IQuestObjectiveKill[] | IQuestObjectiveInteraction[];
|
|
10
|
+
thumbnail?: string;
|
|
11
|
+
status?: QuestStatus;
|
|
12
|
+
}
|
|
13
|
+
export interface IQuestReward {
|
|
14
|
+
id?: string;
|
|
15
|
+
itemKeys: string[];
|
|
16
|
+
spellKeys?: string[];
|
|
17
|
+
qty: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IQuestObjective {
|
|
20
|
+
id?: string;
|
|
21
|
+
type: QuestType;
|
|
22
|
+
status?: QuestStatus;
|
|
23
|
+
}
|
|
24
|
+
export interface IQuestObjectiveKill extends IQuestObjective {
|
|
25
|
+
killCount: number;
|
|
26
|
+
killCountTarget: number;
|
|
27
|
+
creatureKeys: string[];
|
|
28
|
+
}
|
|
29
|
+
export interface IQuestObjectiveInteraction extends IQuestObjective {
|
|
30
|
+
targetNPCkey?: string;
|
|
31
|
+
items?: IQuestItems[];
|
|
32
|
+
}
|
|
33
|
+
export interface IQuestItems {
|
|
34
|
+
itemKey: string;
|
|
35
|
+
qty: number;
|
|
36
|
+
}
|
|
37
|
+
export interface IQuestRecord {
|
|
38
|
+
id: string;
|
|
39
|
+
character: ICharacter | string;
|
|
40
|
+
objective: IQuestObjectiveKill | IQuestObjectiveInteraction | string;
|
|
41
|
+
}
|
|
42
|
+
export declare enum QuestType {
|
|
43
|
+
Kill = "Kill",
|
|
44
|
+
Interaction = "Interaction"
|
|
45
|
+
}
|
|
46
|
+
export declare enum QuestStatus {
|
|
47
|
+
Pending = "Pending",
|
|
48
|
+
InProgress = "InProgress",
|
|
49
|
+
Completed = "Completed"
|
|
50
|
+
}
|
|
51
|
+
export interface IGetQuests {
|
|
52
|
+
npcId?: string;
|
|
53
|
+
characterId?: string;
|
|
54
|
+
status?: QuestStatus;
|
|
55
|
+
}
|
|
56
|
+
export interface IQuestsResponse {
|
|
57
|
+
npcId?: string;
|
|
58
|
+
quests: IQuest[];
|
|
59
|
+
}
|
|
60
|
+
export interface IChooseQuest {
|
|
61
|
+
npcId: string;
|
|
62
|
+
questId: string;
|
|
63
|
+
}
|
|
64
|
+
export declare enum QuestSocketEvents {
|
|
65
|
+
Started = "Started",
|
|
66
|
+
Completed = "Completed",
|
|
67
|
+
GetQuests = "GetQuests",
|
|
68
|
+
ChooseQuest = "ChooseQuest"
|
|
69
|
+
}
|
|
70
|
+
export interface IQuestEventFromServer {
|
|
71
|
+
characterId: string;
|
|
72
|
+
npcId: string;
|
|
73
|
+
questId: string;
|
|
74
|
+
}
|
|
75
75
|
//# sourceMappingURL=quest.types.d.ts.map
|
|
File without changes
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuestSocketEvents = exports.QuestStatus = exports.QuestType = void 0;
|
|
4
|
-
var QuestType;
|
|
5
|
-
(function (QuestType) {
|
|
6
|
-
QuestType["Kill"] = "Kill";
|
|
7
|
-
QuestType["Interaction"] = "Interaction";
|
|
8
|
-
})(QuestType = exports.QuestType || (exports.QuestType = {}));
|
|
9
|
-
var QuestStatus;
|
|
10
|
-
(function (QuestStatus) {
|
|
11
|
-
QuestStatus["Pending"] = "Pending";
|
|
12
|
-
QuestStatus["InProgress"] = "InProgress";
|
|
13
|
-
QuestStatus["Completed"] = "Completed";
|
|
14
|
-
})(QuestStatus = exports.QuestStatus || (exports.QuestStatus = {}));
|
|
15
|
-
var QuestSocketEvents;
|
|
16
|
-
(function (QuestSocketEvents) {
|
|
17
|
-
QuestSocketEvents["Started"] = "Started";
|
|
18
|
-
QuestSocketEvents["Completed"] = "Completed";
|
|
19
|
-
QuestSocketEvents["GetQuests"] = "GetQuests";
|
|
20
|
-
QuestSocketEvents["ChooseQuest"] = "ChooseQuest";
|
|
21
|
-
})(QuestSocketEvents = exports.QuestSocketEvents || (exports.QuestSocketEvents = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestSocketEvents = exports.QuestStatus = exports.QuestType = void 0;
|
|
4
|
+
var QuestType;
|
|
5
|
+
(function (QuestType) {
|
|
6
|
+
QuestType["Kill"] = "Kill";
|
|
7
|
+
QuestType["Interaction"] = "Interaction";
|
|
8
|
+
})(QuestType = exports.QuestType || (exports.QuestType = {}));
|
|
9
|
+
var QuestStatus;
|
|
10
|
+
(function (QuestStatus) {
|
|
11
|
+
QuestStatus["Pending"] = "Pending";
|
|
12
|
+
QuestStatus["InProgress"] = "InProgress";
|
|
13
|
+
QuestStatus["Completed"] = "Completed";
|
|
14
|
+
})(QuestStatus = exports.QuestStatus || (exports.QuestStatus = {}));
|
|
15
|
+
var QuestSocketEvents;
|
|
16
|
+
(function (QuestSocketEvents) {
|
|
17
|
+
QuestSocketEvents["Started"] = "Started";
|
|
18
|
+
QuestSocketEvents["Completed"] = "Completed";
|
|
19
|
+
QuestSocketEvents["GetQuests"] = "GetQuests";
|
|
20
|
+
QuestSocketEvents["ChooseQuest"] = "ChooseQuest";
|
|
21
|
+
})(QuestSocketEvents = exports.QuestSocketEvents || (exports.QuestSocketEvents = {}));
|
|
22
22
|
//# sourceMappingURL=quest.types.js.map
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export interface IResource {
|
|
2
|
-
_id: string;
|
|
3
|
-
createdAt?: string | Date;
|
|
4
|
-
updatedAt?: string | Date;
|
|
5
|
-
}
|
|
1
|
+
export interface IResource {
|
|
2
|
+
_id: string;
|
|
3
|
+
createdAt?: string | Date;
|
|
4
|
+
updatedAt?: string | Date;
|
|
5
|
+
}
|
|
6
6
|
//# sourceMappingURL=resource.types.d.ts.map
|
|
File without changes
|
|
@@ -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=resource.types.js.map
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export interface ISceneData {
|
|
2
|
-
key: string;
|
|
3
|
-
}
|
|
4
|
-
export declare const ScenesMetaData: {
|
|
5
|
-
MainScene: {
|
|
6
|
-
map: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
export interface ISceneData {
|
|
2
|
+
key: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const ScenesMetaData: {
|
|
5
|
+
MainScene: {
|
|
6
|
+
map: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
9
|
//# sourceMappingURL=scene.types.d.ts.map
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ScenesMetaData = void 0;
|
|
4
|
-
exports.ScenesMetaData = {
|
|
5
|
-
MainScene: {
|
|
6
|
-
map: "another_map",
|
|
7
|
-
},
|
|
8
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ScenesMetaData = void 0;
|
|
4
|
+
exports.ScenesMetaData = {
|
|
5
|
+
MainScene: {
|
|
6
|
+
map: "another_map",
|
|
7
|
+
},
|
|
8
|
+
};
|
|
9
9
|
//# sourceMappingURL=scene.types.js.map
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IItem } from "./item.types";
|
|
2
|
-
import { IRawSpell } from "./spell.types";
|
|
3
|
-
export declare enum ShortcutType {
|
|
4
|
-
Spell = 0,
|
|
5
|
-
Item = 1,
|
|
6
|
-
None = 2
|
|
7
|
-
}
|
|
8
|
-
export interface IShortcut {
|
|
9
|
-
type: ShortcutType;
|
|
10
|
-
payload: IRawSpell | IItem | null;
|
|
11
|
-
}
|
|
1
|
+
import { IItem } from "./item.types";
|
|
2
|
+
import { IRawSpell } from "./spell.types";
|
|
3
|
+
export declare enum ShortcutType {
|
|
4
|
+
Spell = 0,
|
|
5
|
+
Item = 1,
|
|
6
|
+
None = 2
|
|
7
|
+
}
|
|
8
|
+
export interface IShortcut {
|
|
9
|
+
type: ShortcutType;
|
|
10
|
+
payload: IRawSpell | IItem | null;
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=shortcut.types.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ShortcutType = void 0;
|
|
4
|
-
var ShortcutType;
|
|
5
|
-
(function (ShortcutType) {
|
|
6
|
-
ShortcutType[ShortcutType["Spell"] = 0] = "Spell";
|
|
7
|
-
ShortcutType[ShortcutType["Item"] = 1] = "Item";
|
|
8
|
-
ShortcutType[ShortcutType["None"] = 2] = "None";
|
|
9
|
-
})(ShortcutType = exports.ShortcutType || (exports.ShortcutType = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShortcutType = void 0;
|
|
4
|
+
var ShortcutType;
|
|
5
|
+
(function (ShortcutType) {
|
|
6
|
+
ShortcutType[ShortcutType["Spell"] = 0] = "Spell";
|
|
7
|
+
ShortcutType[ShortcutType["Item"] = 1] = "Item";
|
|
8
|
+
ShortcutType[ShortcutType["None"] = 2] = "None";
|
|
9
|
+
})(ShortcutType = exports.ShortcutType || (exports.ShortcutType = {}));
|
|
10
10
|
//# sourceMappingURL=shortcut.types.js.map
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import { EntityAttackType } from "./entity.types";
|
|
2
|
-
import { ItemSubType } from "./item.types";
|
|
3
|
-
import { IResource } from "./resource.types";
|
|
4
|
-
export declare enum SkillSocketEvents {
|
|
5
|
-
ExperienceGain = "ExperienceGain",
|
|
6
|
-
SkillGain = "SkillGain",
|
|
7
|
-
ReadInfo = "ReadInfo"
|
|
8
|
-
}
|
|
9
|
-
export declare enum SkillEventType {
|
|
10
|
-
LevelUp = "LevelUp",
|
|
11
|
-
SkillLevelUp = "SkillLevelUp"
|
|
12
|
-
}
|
|
13
|
-
export interface ISkillEventFromServer {
|
|
14
|
-
characterId: string;
|
|
15
|
-
targetId: string;
|
|
16
|
-
targetType: "Character" | "NPC";
|
|
17
|
-
eventType: SkillEventType;
|
|
18
|
-
exp?: number;
|
|
19
|
-
level?: number;
|
|
20
|
-
skill?: string;
|
|
21
|
-
}
|
|
22
|
-
export interface ISkillDetails {
|
|
23
|
-
type: SkillType;
|
|
24
|
-
level: number;
|
|
25
|
-
skillPoints: number;
|
|
26
|
-
skillPointsToNextLevel: number;
|
|
27
|
-
}
|
|
28
|
-
export interface ISkill extends IResource {
|
|
29
|
-
owner: string;
|
|
30
|
-
level: number;
|
|
31
|
-
xpGainRate: number;
|
|
32
|
-
experience: number;
|
|
33
|
-
xpToNextLevel: number;
|
|
34
|
-
stamina: ISkillDetails;
|
|
35
|
-
magic: ISkillDetails;
|
|
36
|
-
magicResistance: ISkillDetails;
|
|
37
|
-
strength: ISkillDetails;
|
|
38
|
-
resistance: ISkillDetails;
|
|
39
|
-
dexterity: ISkillDetails;
|
|
40
|
-
first: ISkillDetails;
|
|
41
|
-
club: ISkillDetails;
|
|
42
|
-
sword: ISkillDetails;
|
|
43
|
-
axe: ISkillDetails;
|
|
44
|
-
distance: ISkillDetails;
|
|
45
|
-
shielding: ISkillDetails;
|
|
46
|
-
dagger: ISkillDetails;
|
|
47
|
-
fishing: ISkillDetails;
|
|
48
|
-
mining: ISkillDetails;
|
|
49
|
-
lumberjacking: ISkillDetails;
|
|
50
|
-
cooking: ISkillDetails;
|
|
51
|
-
alchemy: ISkillDetails;
|
|
52
|
-
blacksmithing: ISkillDetails;
|
|
53
|
-
}
|
|
54
|
-
export declare enum SkillType {
|
|
55
|
-
BasicAttributes = "BasicAttributes",
|
|
56
|
-
Combat = "Combat",
|
|
57
|
-
Crafting = "Crafting",
|
|
58
|
-
Gathering = "Gathering",
|
|
59
|
-
Magic = "Magic",
|
|
60
|
-
Misc = "Misc",
|
|
61
|
-
Character = "Character"
|
|
62
|
-
}
|
|
63
|
-
export declare enum CombatSkill {
|
|
64
|
-
First = "first",
|
|
65
|
-
Sword = "sword",
|
|
66
|
-
Dagger = "dagger",
|
|
67
|
-
Axe = "axe",
|
|
68
|
-
Distance = "distance",
|
|
69
|
-
Shielding = "shielding",
|
|
70
|
-
Club = "club"
|
|
71
|
-
}
|
|
72
|
-
export declare enum CraftingSkill {
|
|
73
|
-
Fishing = "fishing",
|
|
74
|
-
Mining = "mining",
|
|
75
|
-
Lumberjacking = "lumberjacking",
|
|
76
|
-
Cooking = "cooking",
|
|
77
|
-
Alchemy = "alchemy",
|
|
78
|
-
Blacksmithing = "blacksmithing"
|
|
79
|
-
}
|
|
80
|
-
export declare enum BasicAttribute {
|
|
81
|
-
Strength = "strength",
|
|
82
|
-
Resistance = "resistance",
|
|
83
|
-
Dexterity = "dexterity",
|
|
84
|
-
Magic = "magic",
|
|
85
|
-
MagicResistance = "magicResistance"
|
|
86
|
-
}
|
|
87
|
-
export declare enum CharacterEntities {
|
|
88
|
-
Speed = "baseSpeed",
|
|
89
|
-
MaxMana = "maxMana",
|
|
90
|
-
MaxHealth = "maxHealth",
|
|
91
|
-
AttackIntervalSpeed = "attackIntervalSpeed"
|
|
92
|
-
}
|
|
93
|
-
export declare const ENTITIES_SKILLS: CharacterEntities[];
|
|
94
|
-
export declare const BASIC_ATTRIBUTES: BasicAttribute[];
|
|
95
|
-
export declare const COMBAT_SKILLS: (ItemSubType | EntityAttackType)[];
|
|
96
|
-
export declare const SKILLS_MAP: Map<string, string>;
|
|
97
|
-
export interface IDecreaseSPResult {
|
|
98
|
-
skillType: string;
|
|
99
|
-
skillName: string;
|
|
100
|
-
skillLevel: number;
|
|
101
|
-
skillPoints: number;
|
|
102
|
-
spToNextLevel: number;
|
|
103
|
-
}
|
|
104
|
-
export interface IIncreaseSPResult {
|
|
105
|
-
skillLevelUp: boolean;
|
|
106
|
-
skillLevelBefore: number;
|
|
107
|
-
skillLevelAfter: number;
|
|
108
|
-
skillName: string;
|
|
109
|
-
skillPoints?: number;
|
|
110
|
-
skillPointsToNextLevel?: number;
|
|
111
|
-
}
|
|
112
|
-
export interface IIncreaseXPResult {
|
|
113
|
-
level: number;
|
|
114
|
-
previousLevel: number;
|
|
115
|
-
exp: number;
|
|
116
|
-
}
|
|
117
|
-
export interface IBasicAttributesBonusAndPenalties {
|
|
118
|
-
stamina: number;
|
|
119
|
-
strength: number;
|
|
120
|
-
resistance: number;
|
|
121
|
-
dexterity: number;
|
|
122
|
-
magic: number;
|
|
123
|
-
magicResistance: number;
|
|
124
|
-
}
|
|
125
|
-
export interface ICombatSkillsBonusAndPenalties {
|
|
126
|
-
first: number;
|
|
127
|
-
sword: number;
|
|
128
|
-
dagger: number;
|
|
129
|
-
axe: number;
|
|
130
|
-
distance: number;
|
|
131
|
-
shielding: number;
|
|
132
|
-
club: number;
|
|
133
|
-
}
|
|
134
|
-
export interface ICraftingSkillsBonusAndPenalties {
|
|
135
|
-
fishing: number;
|
|
136
|
-
mining: number;
|
|
137
|
-
lumberjacking: number;
|
|
138
|
-
cooking: number;
|
|
139
|
-
alchemy: number;
|
|
140
|
-
blacksmithing: number;
|
|
141
|
-
}
|
|
1
|
+
import { EntityAttackType } from "./entity.types";
|
|
2
|
+
import { ItemSubType } from "./item.types";
|
|
3
|
+
import { IResource } from "./resource.types";
|
|
4
|
+
export declare enum SkillSocketEvents {
|
|
5
|
+
ExperienceGain = "ExperienceGain",
|
|
6
|
+
SkillGain = "SkillGain",
|
|
7
|
+
ReadInfo = "ReadInfo"
|
|
8
|
+
}
|
|
9
|
+
export declare enum SkillEventType {
|
|
10
|
+
LevelUp = "LevelUp",
|
|
11
|
+
SkillLevelUp = "SkillLevelUp"
|
|
12
|
+
}
|
|
13
|
+
export interface ISkillEventFromServer {
|
|
14
|
+
characterId: string;
|
|
15
|
+
targetId: string;
|
|
16
|
+
targetType: "Character" | "NPC";
|
|
17
|
+
eventType: SkillEventType;
|
|
18
|
+
exp?: number;
|
|
19
|
+
level?: number;
|
|
20
|
+
skill?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface ISkillDetails {
|
|
23
|
+
type: SkillType;
|
|
24
|
+
level: number;
|
|
25
|
+
skillPoints: number;
|
|
26
|
+
skillPointsToNextLevel: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ISkill extends IResource {
|
|
29
|
+
owner: string;
|
|
30
|
+
level: number;
|
|
31
|
+
xpGainRate: number;
|
|
32
|
+
experience: number;
|
|
33
|
+
xpToNextLevel: number;
|
|
34
|
+
stamina: ISkillDetails;
|
|
35
|
+
magic: ISkillDetails;
|
|
36
|
+
magicResistance: ISkillDetails;
|
|
37
|
+
strength: ISkillDetails;
|
|
38
|
+
resistance: ISkillDetails;
|
|
39
|
+
dexterity: ISkillDetails;
|
|
40
|
+
first: ISkillDetails;
|
|
41
|
+
club: ISkillDetails;
|
|
42
|
+
sword: ISkillDetails;
|
|
43
|
+
axe: ISkillDetails;
|
|
44
|
+
distance: ISkillDetails;
|
|
45
|
+
shielding: ISkillDetails;
|
|
46
|
+
dagger: ISkillDetails;
|
|
47
|
+
fishing: ISkillDetails;
|
|
48
|
+
mining: ISkillDetails;
|
|
49
|
+
lumberjacking: ISkillDetails;
|
|
50
|
+
cooking: ISkillDetails;
|
|
51
|
+
alchemy: ISkillDetails;
|
|
52
|
+
blacksmithing: ISkillDetails;
|
|
53
|
+
}
|
|
54
|
+
export declare enum SkillType {
|
|
55
|
+
BasicAttributes = "BasicAttributes",
|
|
56
|
+
Combat = "Combat",
|
|
57
|
+
Crafting = "Crafting",
|
|
58
|
+
Gathering = "Gathering",
|
|
59
|
+
Magic = "Magic",
|
|
60
|
+
Misc = "Misc",
|
|
61
|
+
Character = "Character"
|
|
62
|
+
}
|
|
63
|
+
export declare enum CombatSkill {
|
|
64
|
+
First = "first",
|
|
65
|
+
Sword = "sword",
|
|
66
|
+
Dagger = "dagger",
|
|
67
|
+
Axe = "axe",
|
|
68
|
+
Distance = "distance",
|
|
69
|
+
Shielding = "shielding",
|
|
70
|
+
Club = "club"
|
|
71
|
+
}
|
|
72
|
+
export declare enum CraftingSkill {
|
|
73
|
+
Fishing = "fishing",
|
|
74
|
+
Mining = "mining",
|
|
75
|
+
Lumberjacking = "lumberjacking",
|
|
76
|
+
Cooking = "cooking",
|
|
77
|
+
Alchemy = "alchemy",
|
|
78
|
+
Blacksmithing = "blacksmithing"
|
|
79
|
+
}
|
|
80
|
+
export declare enum BasicAttribute {
|
|
81
|
+
Strength = "strength",
|
|
82
|
+
Resistance = "resistance",
|
|
83
|
+
Dexterity = "dexterity",
|
|
84
|
+
Magic = "magic",
|
|
85
|
+
MagicResistance = "magicResistance"
|
|
86
|
+
}
|
|
87
|
+
export declare enum CharacterEntities {
|
|
88
|
+
Speed = "baseSpeed",
|
|
89
|
+
MaxMana = "maxMana",
|
|
90
|
+
MaxHealth = "maxHealth",
|
|
91
|
+
AttackIntervalSpeed = "attackIntervalSpeed"
|
|
92
|
+
}
|
|
93
|
+
export declare const ENTITIES_SKILLS: CharacterEntities[];
|
|
94
|
+
export declare const BASIC_ATTRIBUTES: BasicAttribute[];
|
|
95
|
+
export declare const COMBAT_SKILLS: (ItemSubType | EntityAttackType)[];
|
|
96
|
+
export declare const SKILLS_MAP: Map<string, string>;
|
|
97
|
+
export interface IDecreaseSPResult {
|
|
98
|
+
skillType: string;
|
|
99
|
+
skillName: string;
|
|
100
|
+
skillLevel: number;
|
|
101
|
+
skillPoints: number;
|
|
102
|
+
spToNextLevel: number;
|
|
103
|
+
}
|
|
104
|
+
export interface IIncreaseSPResult {
|
|
105
|
+
skillLevelUp: boolean;
|
|
106
|
+
skillLevelBefore: number;
|
|
107
|
+
skillLevelAfter: number;
|
|
108
|
+
skillName: string;
|
|
109
|
+
skillPoints?: number;
|
|
110
|
+
skillPointsToNextLevel?: number;
|
|
111
|
+
}
|
|
112
|
+
export interface IIncreaseXPResult {
|
|
113
|
+
level: number;
|
|
114
|
+
previousLevel: number;
|
|
115
|
+
exp: number;
|
|
116
|
+
}
|
|
117
|
+
export interface IBasicAttributesBonusAndPenalties {
|
|
118
|
+
stamina: number;
|
|
119
|
+
strength: number;
|
|
120
|
+
resistance: number;
|
|
121
|
+
dexterity: number;
|
|
122
|
+
magic: number;
|
|
123
|
+
magicResistance: number;
|
|
124
|
+
}
|
|
125
|
+
export interface ICombatSkillsBonusAndPenalties {
|
|
126
|
+
first: number;
|
|
127
|
+
sword: number;
|
|
128
|
+
dagger: number;
|
|
129
|
+
axe: number;
|
|
130
|
+
distance: number;
|
|
131
|
+
shielding: number;
|
|
132
|
+
club: number;
|
|
133
|
+
}
|
|
134
|
+
export interface ICraftingSkillsBonusAndPenalties {
|
|
135
|
+
fishing: number;
|
|
136
|
+
mining: number;
|
|
137
|
+
lumberjacking: number;
|
|
138
|
+
cooking: number;
|
|
139
|
+
alchemy: number;
|
|
140
|
+
blacksmithing: number;
|
|
141
|
+
}
|
|
142
142
|
//# sourceMappingURL=skills.types.d.ts.map
|
|
File without changes
|