@rpg-engine/shared 0.3.27 → 0.3.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/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/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/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 -16
- 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 +163 -150
- package/dist/types/item.types.d.ts.map +1 -1
- package/dist/types/item.types.js +88 -75
- package/dist/types/item.types.js.map +1 -1
- package/dist/types/itemContainer.types.d.ts +52 -52
- package/dist/types/itemContainer.types.d.ts.map +1 -1
- 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/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/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 +40 -39
- package/dist/types/skills.types.d.ts.map +1 -1
- package/dist/types/skills.types.js +12 -12
- package/dist/types/skills.types.js.map +1 -1
- 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
- package/dist/libs/MapZipHelper.d.ts +0 -2
- package/dist/libs/MapZipHelper.d.ts.map +0 -1
- package/dist/libs/MapZipHelper.js +0 -27
- 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/npcMetadata.types.d.ts +0 -7
- package/dist/types/npcMetadata.types.d.ts.map +0 -1
- package/dist/types/npcMetadata.types.js +0 -20
- package/dist/types/npcMetadata.types.js.map +0 -1
- package/dist/types/player.types.d.ts +0 -49
- package/dist/types/player.types.d.ts.map +0 -1
- package/dist/types/player.types.js +0 -14
- package/dist/types/player.types.js.map +0 -1
package/dist/types/item.types.js
CHANGED
|
@@ -1,76 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActionsByItemType = exports.ItemSocketEvents = exports.ItemSlotType = exports.ItemSubType = exports.ItemType = void 0;
|
|
4
|
-
var ItemType;
|
|
5
|
-
(function (ItemType) {
|
|
6
|
-
ItemType["Weapon"] = "Weapon";
|
|
7
|
-
ItemType["Armor"] = "Armor";
|
|
8
|
-
ItemType["Accessory"] = "Accessory";
|
|
9
|
-
ItemType["Jewelry"] = "Jewelry";
|
|
10
|
-
ItemType["Consumable"] = "Consumable";
|
|
11
|
-
ItemType["CraftMaterial"] = "CraftMaterial";
|
|
12
|
-
ItemType["Quest"] = "Quest";
|
|
13
|
-
ItemType["Information"] = "Information";
|
|
14
|
-
ItemType["Tool"] = "Tool";
|
|
15
|
-
ItemType["Container"] = "Container";
|
|
16
|
-
ItemType["Other"] = "Other";
|
|
17
|
-
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
18
|
-
var ItemSubType;
|
|
19
|
-
(function (ItemSubType) {
|
|
20
|
-
ItemSubType["Accessory"] = "Accessory";
|
|
21
|
-
ItemSubType["Armor"] = "Armor";
|
|
22
|
-
ItemSubType["Axe"] = "Axe";
|
|
23
|
-
ItemSubType["Boot"] = "Boot";
|
|
24
|
-
ItemSubType["Bow"] = "Bow";
|
|
25
|
-
ItemSubType["Food"] = "Food";
|
|
26
|
-
ItemSubType["Glove"] = "Glove";
|
|
27
|
-
ItemSubType["Helmet"] = "Helmet";
|
|
28
|
-
ItemSubType["Magic"] = "Magic";
|
|
29
|
-
ItemSubType["Potion"] = "Potion";
|
|
30
|
-
ItemSubType["Shield"] = "Shield";
|
|
31
|
-
ItemSubType["Spear"] = "Spear";
|
|
32
|
-
ItemSubType["Staff"] = "Staff";
|
|
33
|
-
ItemSubType["Sword"] = "Sword";
|
|
34
|
-
ItemSubType["Other"] = "Other";
|
|
35
|
-
ItemSubType["DeadBody"] = "DeadBody";
|
|
36
|
-
ItemSubType["Dagger"] = "Dagger";
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
ItemSlotType["
|
|
42
|
-
ItemSlotType["
|
|
43
|
-
ItemSlotType["
|
|
44
|
-
ItemSlotType["
|
|
45
|
-
ItemSlotType["
|
|
46
|
-
ItemSlotType["
|
|
47
|
-
ItemSlotType["
|
|
48
|
-
ItemSlotType["
|
|
49
|
-
ItemSlotType["
|
|
50
|
-
ItemSlotType["
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
ItemSocketEvents["
|
|
56
|
-
ItemSocketEvents["
|
|
57
|
-
ItemSocketEvents["
|
|
58
|
-
ItemSocketEvents["
|
|
59
|
-
ItemSocketEvents["
|
|
60
|
-
ItemSocketEvents["
|
|
61
|
-
ItemSocketEvents["
|
|
62
|
-
ItemSocketEvents["
|
|
63
|
-
ItemSocketEvents["
|
|
64
|
-
ItemSocketEvents["
|
|
65
|
-
ItemSocketEvents["
|
|
66
|
-
ItemSocketEvents["
|
|
67
|
-
|
|
68
|
-
exports.
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ActionsByItemType = exports.ItemSocketEventsDisplayLabels = exports.ItemSocketEvents = exports.ItemSlotType = exports.ItemSubType = exports.ItemType = void 0;
|
|
4
|
+
var ItemType;
|
|
5
|
+
(function (ItemType) {
|
|
6
|
+
ItemType["Weapon"] = "Weapon";
|
|
7
|
+
ItemType["Armor"] = "Armor";
|
|
8
|
+
ItemType["Accessory"] = "Accessory";
|
|
9
|
+
ItemType["Jewelry"] = "Jewelry";
|
|
10
|
+
ItemType["Consumable"] = "Consumable";
|
|
11
|
+
ItemType["CraftMaterial"] = "CraftMaterial";
|
|
12
|
+
ItemType["Quest"] = "Quest";
|
|
13
|
+
ItemType["Information"] = "Information";
|
|
14
|
+
ItemType["Tool"] = "Tool";
|
|
15
|
+
ItemType["Container"] = "Container";
|
|
16
|
+
ItemType["Other"] = "Other";
|
|
17
|
+
})(ItemType = exports.ItemType || (exports.ItemType = {}));
|
|
18
|
+
var ItemSubType;
|
|
19
|
+
(function (ItemSubType) {
|
|
20
|
+
ItemSubType["Accessory"] = "Accessory";
|
|
21
|
+
ItemSubType["Armor"] = "Armor";
|
|
22
|
+
ItemSubType["Axe"] = "Axe";
|
|
23
|
+
ItemSubType["Boot"] = "Boot";
|
|
24
|
+
ItemSubType["Bow"] = "Bow";
|
|
25
|
+
ItemSubType["Food"] = "Food";
|
|
26
|
+
ItemSubType["Glove"] = "Glove";
|
|
27
|
+
ItemSubType["Helmet"] = "Helmet";
|
|
28
|
+
ItemSubType["Magic"] = "Magic";
|
|
29
|
+
ItemSubType["Potion"] = "Potion";
|
|
30
|
+
ItemSubType["Shield"] = "Shield";
|
|
31
|
+
ItemSubType["Spear"] = "Spear";
|
|
32
|
+
ItemSubType["Staff"] = "Staff";
|
|
33
|
+
ItemSubType["Sword"] = "Sword";
|
|
34
|
+
ItemSubType["Other"] = "Other";
|
|
35
|
+
ItemSubType["DeadBody"] = "DeadBody";
|
|
36
|
+
ItemSubType["Dagger"] = "Dagger";
|
|
37
|
+
ItemSubType["Mace"] = "Mace";
|
|
38
|
+
})(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
|
|
39
|
+
var ItemSlotType;
|
|
40
|
+
(function (ItemSlotType) {
|
|
41
|
+
ItemSlotType["Head"] = "Head";
|
|
42
|
+
ItemSlotType["Neck"] = "Neck";
|
|
43
|
+
ItemSlotType["Torso"] = "Torso";
|
|
44
|
+
ItemSlotType["LeftHand"] = "LeftHand";
|
|
45
|
+
ItemSlotType["RightHand"] = "RightHand";
|
|
46
|
+
ItemSlotType["Waist"] = "Waist";
|
|
47
|
+
ItemSlotType["Legs"] = "Legs";
|
|
48
|
+
ItemSlotType["Feet"] = "Feet";
|
|
49
|
+
ItemSlotType["Ring"] = "Ring";
|
|
50
|
+
ItemSlotType["Accessory"] = "Accessory";
|
|
51
|
+
ItemSlotType["Inventory"] = "Inventory";
|
|
52
|
+
})(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
|
|
53
|
+
var ItemSocketEvents;
|
|
54
|
+
(function (ItemSocketEvents) {
|
|
55
|
+
ItemSocketEvents["Update"] = "Update";
|
|
56
|
+
ItemSocketEvents["Look"] = "Look";
|
|
57
|
+
ItemSocketEvents["Equip"] = "Equip";
|
|
58
|
+
ItemSocketEvents["Unequip"] = "Unequip";
|
|
59
|
+
ItemSocketEvents["Pickup"] = "Pickup";
|
|
60
|
+
ItemSocketEvents["Drop"] = "Drop";
|
|
61
|
+
ItemSocketEvents["Use"] = "Use";
|
|
62
|
+
ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
|
|
63
|
+
ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
|
|
64
|
+
ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
|
|
65
|
+
ItemSocketEvents["ContainerRead"] = "ContainerRead";
|
|
66
|
+
ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
|
|
67
|
+
ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
|
|
68
|
+
})(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
|
|
69
|
+
exports.ItemSocketEventsDisplayLabels = {
|
|
70
|
+
[ItemSocketEvents.GetItemInfo]: "Look",
|
|
71
|
+
[ItemSocketEvents.ContainerTransfer]: "Transfer",
|
|
72
|
+
[ItemSocketEvents.Equip]: "Equip",
|
|
73
|
+
[ItemSocketEvents.Unequip]: "Unequip",
|
|
74
|
+
[ItemSocketEvents.Pickup]: "Pickup",
|
|
75
|
+
[ItemSocketEvents.Drop]: "Drop",
|
|
76
|
+
[ItemSocketEvents.Use]: "Use",
|
|
77
|
+
[ItemSocketEvents.ContainerOpen]: "Open",
|
|
78
|
+
[ItemSocketEvents.ReadItemInfo]: "Inspect",
|
|
79
|
+
[ItemSocketEvents.ContainerRead]: "Read",
|
|
80
|
+
};
|
|
81
|
+
exports.ActionsByItemType = {
|
|
82
|
+
Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
83
|
+
Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
84
|
+
CraftMaterial: [, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
85
|
+
Other: [ItemSocketEvents.GetItemInfo],
|
|
86
|
+
EquipmenSetItems: [ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
87
|
+
EquipmenSetContainer: [ItemSocketEvents.Look, ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
88
|
+
};
|
|
76
89
|
//# sourceMappingURL=item.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":";;;AAwCA,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2CAA+B,CAAA;IAC/B,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACjB,CAAC,EAZW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYnB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":";;;AAwCA,IAAY,QAYX;AAZD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,+BAAmB,CAAA;IACnB,qCAAyB,CAAA;IACzB,2CAA+B,CAAA;IAC/B,2BAAe,CAAA;IACf,uCAA2B,CAAA;IAC3B,yBAAa,CAAA;IACb,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACjB,CAAC,EAZW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAYnB;AAED,IAAY,WAmBX;AAnBD,WAAY,WAAW;IACrB,sCAAuB,CAAA;IACvB,8BAAe,CAAA;IAC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AC,OAAO,CAAC,EAAE,SAAS;IACrC,CAAC,gBAAgB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACnC,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,MAAM;IAC/B,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,KAAK;IAC7B,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,MAAM;IACxC,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE,SAAS;IAC1C,CAAC,gBAAgB,CAAC,aAAa,CAAC,EAAE,MAAM;CACzC,CAAA;AAoCY,QAAA,iBAAiB,GAAG;IAC/B,SAAS,EAAE,CAAC,gBAAgB,CAAC,KAAK,EAAE,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,IAAI,CAAC;IACxF,UAAU,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,IAAI,CAAC;IACvF,aAAa,EAAE,CAAC,EAAE,gBAAgB,CAAC,WAAW,EAAE,gBAAgB,CAAC,IAAI,CAAC;IACtE,KAAK,EAAE,CAAC,gBAAgB,CAAC,WAAW,CAAC;IACrC,gBAAgB,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC;IAC1E,oBAAoB,EAAE,CAAC,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,CAAC,WAAW,CAAC;CACtG,CAAC"}
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { IItem, ItemType } from "./item.types";
|
|
2
|
-
import { IResource } from "./resource.types";
|
|
3
|
-
interface IItemContainerSlots {
|
|
4
|
-
[slot: number]: IItem;
|
|
5
|
-
}
|
|
6
|
-
export interface IItemContainer extends IResource {
|
|
7
|
-
parentItem: string;
|
|
8
|
-
owner?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
slotQty: number;
|
|
11
|
-
slots: IItemContainerSlots;
|
|
12
|
-
allowedItemTypes?: ItemType[];
|
|
13
|
-
isEmpty: boolean;
|
|
14
|
-
}
|
|
15
|
-
export interface IItemContainerOpen {
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
export interface IItemTransfer {
|
|
19
|
-
itemId: string;
|
|
20
|
-
fromContainerId: string;
|
|
21
|
-
toContainerId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface IItemPickup {
|
|
24
|
-
itemId: string;
|
|
25
|
-
x: number;
|
|
26
|
-
y: number;
|
|
27
|
-
scene: string;
|
|
28
|
-
toContainerId: string;
|
|
29
|
-
}
|
|
30
|
-
export interface IItemDrop {
|
|
31
|
-
itemId: string;
|
|
32
|
-
x: number;
|
|
33
|
-
y: number;
|
|
34
|
-
scene: string;
|
|
35
|
-
fromContainerId: string;
|
|
36
|
-
toPosition: {
|
|
37
|
-
x: number;
|
|
38
|
-
y: number;
|
|
39
|
-
scene: string;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface IItemContainerRead {
|
|
43
|
-
itemContainer: IItemContainer;
|
|
44
|
-
}
|
|
45
|
-
export interface IItemContainerProps {
|
|
46
|
-
openedContainers: Set<string>;
|
|
47
|
-
containersData: {
|
|
48
|
-
[key: string]: IItemContainer;
|
|
49
|
-
};
|
|
50
|
-
onMouseOverElement: (element: any) => void;
|
|
51
|
-
}
|
|
52
|
-
export {};
|
|
1
|
+
import { IItem, ItemType } from "./item.types";
|
|
2
|
+
import { IResource } from "./resource.types";
|
|
3
|
+
interface IItemContainerSlots {
|
|
4
|
+
[slot: number]: IItem;
|
|
5
|
+
}
|
|
6
|
+
export interface IItemContainer extends IResource {
|
|
7
|
+
parentItem: string;
|
|
8
|
+
owner?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
slotQty: number;
|
|
11
|
+
slots: IItemContainerSlots;
|
|
12
|
+
allowedItemTypes?: ItemType[];
|
|
13
|
+
isEmpty: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IItemContainerOpen {
|
|
16
|
+
itemId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface IItemTransfer {
|
|
19
|
+
itemId: string;
|
|
20
|
+
fromContainerId: string;
|
|
21
|
+
toContainerId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IItemPickup {
|
|
24
|
+
itemId: string;
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
scene: string;
|
|
28
|
+
toContainerId: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IItemDrop {
|
|
31
|
+
itemId: string;
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
scene: string;
|
|
35
|
+
fromContainerId: string;
|
|
36
|
+
toPosition: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
scene: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface IItemContainerRead {
|
|
43
|
+
itemContainer: IItemContainer;
|
|
44
|
+
}
|
|
45
|
+
export interface IItemContainerProps {
|
|
46
|
+
openedContainers: Set<string>;
|
|
47
|
+
containersData: {
|
|
48
|
+
[key: string]: IItemContainer;
|
|
49
|
+
};
|
|
50
|
+
onMouseOverElement: (element: any) => void;
|
|
51
|
+
}
|
|
52
|
+
export {};
|
|
53
53
|
//# sourceMappingURL=itemContainer.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"itemContainer.types.d.ts","sourceRoot":"","sources":["../../src/types/itemContainer.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE7C,UAAU,mBAAmB;IAC3B,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC;CACvB;AAED,MAAM,WAAW,cAAe,SAAQ,SAAS;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MA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AE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE;QACV,CAAC,EAAE,MAAM,CAAC;QACV,CAAC,EAAE,MAAM,CAAC;QACV,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,cAAc,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,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,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=itemContainer.types.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export interface IMap {
|
|
2
|
-
JSONKey: string;
|
|
3
|
-
imageKey: string;
|
|
4
|
-
layers: string[];
|
|
5
|
-
tileWidth: number;
|
|
6
|
-
tileHeight: number;
|
|
7
|
-
imagePath: string;
|
|
8
|
-
jsonPath: string;
|
|
9
|
-
zipPath: string;
|
|
10
|
-
tilesetName: string;
|
|
11
|
-
}
|
|
12
|
-
export declare enum MapLayers {
|
|
13
|
-
Ground = 0,
|
|
14
|
-
OverGround = 1,
|
|
15
|
-
Character = 2,
|
|
16
|
-
OverCharacter = 3
|
|
17
|
-
}
|
|
1
|
+
export interface IMap {
|
|
2
|
+
JSONKey: string;
|
|
3
|
+
imageKey: string;
|
|
4
|
+
layers: string[];
|
|
5
|
+
tileWidth: number;
|
|
6
|
+
tileHeight: number;
|
|
7
|
+
imagePath: string;
|
|
8
|
+
jsonPath: string;
|
|
9
|
+
zipPath: string;
|
|
10
|
+
tilesetName: string;
|
|
11
|
+
}
|
|
12
|
+
export declare enum MapLayers {
|
|
13
|
+
Ground = 0,
|
|
14
|
+
OverGround = 1,
|
|
15
|
+
Character = 2,
|
|
16
|
+
OverCharacter = 3
|
|
17
|
+
}
|
|
18
18
|
//# sourceMappingURL=maps.types.d.ts.map
|
package/dist/types/maps.types.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MapLayers = void 0;
|
|
4
|
-
var MapLayers;
|
|
5
|
-
(function (MapLayers) {
|
|
6
|
-
MapLayers[MapLayers["Ground"] = 0] = "Ground";
|
|
7
|
-
MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
|
|
8
|
-
MapLayers[MapLayers["Character"] = 2] = "Character";
|
|
9
|
-
MapLayers[MapLayers["OverCharacter"] = 3] = "OverCharacter";
|
|
10
|
-
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MapLayers = void 0;
|
|
4
|
+
var MapLayers;
|
|
5
|
+
(function (MapLayers) {
|
|
6
|
+
MapLayers[MapLayers["Ground"] = 0] = "Ground";
|
|
7
|
+
MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
|
|
8
|
+
MapLayers[MapLayers["Character"] = 2] = "Character";
|
|
9
|
+
MapLayers[MapLayers["OverCharacter"] = 3] = "OverCharacter";
|
|
10
|
+
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
11
11
|
//# sourceMappingURL=maps.types.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface IShowPromptOption {
|
|
2
|
-
label: string;
|
|
3
|
-
color?: string;
|
|
4
|
-
action: (label: string) => void;
|
|
5
|
-
}
|
|
6
|
-
export interface IShowPrompt {
|
|
7
|
-
question: string;
|
|
8
|
-
options: IShowPromptOption[];
|
|
9
|
-
addDefaultCancelOption?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface INotification {
|
|
12
|
-
variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
13
|
-
message: string;
|
|
14
|
-
}
|
|
1
|
+
export interface IShowPromptOption {
|
|
2
|
+
label: string;
|
|
3
|
+
color?: string;
|
|
4
|
+
action: (label: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export interface IShowPrompt {
|
|
7
|
+
question: string;
|
|
8
|
+
options: IShowPromptOption[];
|
|
9
|
+
addDefaultCancelOption?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface INotification {
|
|
12
|
+
variant: "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark";
|
|
13
|
+
message: string;
|
|
14
|
+
}
|
|
15
15
|
//# sourceMappingURL=notification.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=notification.types.js.map
|
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
import { AnimationDirection } from "./animation.types";
|
|
2
|
-
import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
|
|
3
|
-
import { EntityAttackType } from "./entity.types";
|
|
4
|
-
import { MapLayers } from "./maps.types";
|
|
5
|
-
import { IResource } from "./resource.types";
|
|
6
|
-
import { ISkill } from "./skills.types";
|
|
7
|
-
export interface INPC extends IResource {
|
|
8
|
-
tiledId?: number;
|
|
9
|
-
key: string;
|
|
10
|
-
textureKey: string;
|
|
11
|
-
name: string;
|
|
12
|
-
health: number;
|
|
13
|
-
maxHealth: number;
|
|
14
|
-
mana: number;
|
|
15
|
-
maxMana: number;
|
|
16
|
-
alignment: NPCAlignment;
|
|
17
|
-
targetType: NPCTargetType;
|
|
18
|
-
targetCharacter?: ICharacter | null;
|
|
19
|
-
x: number;
|
|
20
|
-
y: number;
|
|
21
|
-
initialX: number;
|
|
22
|
-
initialY: number;
|
|
23
|
-
direction: AnimationDirection;
|
|
24
|
-
scene: string;
|
|
25
|
-
class: CharacterClass;
|
|
26
|
-
gender: CharacterGender;
|
|
27
|
-
layer: MapLayers;
|
|
28
|
-
attackType: EntityAttackType;
|
|
29
|
-
originalMovementType: NPCMovementType;
|
|
30
|
-
currentMovementType: NPCMovementType;
|
|
31
|
-
maxRangeInGridCells?: number;
|
|
32
|
-
maxRangedDistanceInGridCells?: number;
|
|
33
|
-
pathOrientation?: NPCPathOrientation;
|
|
34
|
-
fixedPath?: {
|
|
35
|
-
endGridX: number;
|
|
36
|
-
endGridY: number;
|
|
37
|
-
};
|
|
38
|
-
pm2InstanceManager: number;
|
|
39
|
-
speed: number;
|
|
40
|
-
dialogText: string;
|
|
41
|
-
skills: ISkill | string;
|
|
42
|
-
spawnIntervalMin: number;
|
|
43
|
-
nextSpawnTime: Date;
|
|
44
|
-
fleeOnLowHealth: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare enum NPCTargetType {
|
|
47
|
-
Default = "Default",
|
|
48
|
-
Talking = "Talking"
|
|
49
|
-
}
|
|
50
|
-
export declare enum NPCAlignment {
|
|
51
|
-
Friendly = "Friendly",
|
|
52
|
-
Neutral = "Neutral",
|
|
53
|
-
Hostile = "Hostile"
|
|
54
|
-
}
|
|
55
|
-
export declare enum NPCPathOrientation {
|
|
56
|
-
Forward = "Forward",
|
|
57
|
-
Backward = "Backward"
|
|
58
|
-
}
|
|
59
|
-
export declare enum NPCMovementType {
|
|
60
|
-
Random = "Random",
|
|
61
|
-
FixedPath = "FixedPath",
|
|
62
|
-
Stopped = "Stopped",
|
|
63
|
-
MoveAway = "MoveAway",
|
|
64
|
-
MoveTowards = "MoveTowards"
|
|
65
|
-
}
|
|
66
|
-
export declare enum NPCSocketEvents {
|
|
67
|
-
NPCDataUpdate = "NPCDataUpdate",
|
|
68
|
-
NPCPositionUpdate = "NPCPositionUpdate",
|
|
69
|
-
NPCTalkToNPC = "NPCTalkToNPC",
|
|
70
|
-
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
71
|
-
NPCStopDialogNPC = "NPCStopDialogNPC"
|
|
72
|
-
}
|
|
73
|
-
export interface INPCPositionUpdatePayload {
|
|
74
|
-
id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
x: number;
|
|
77
|
-
y: number;
|
|
78
|
-
direction: string;
|
|
79
|
-
key: string;
|
|
80
|
-
layer: MapLayers;
|
|
81
|
-
textureKey: string;
|
|
82
|
-
scene: string;
|
|
83
|
-
speed: number;
|
|
84
|
-
alignment: NPCAlignment;
|
|
85
|
-
health: number;
|
|
86
|
-
maxHealth: number;
|
|
87
|
-
mana: number;
|
|
88
|
-
maxMana: number;
|
|
89
|
-
}
|
|
90
|
-
export interface INPCDataUpdatePayload {
|
|
91
|
-
[key: string]: any;
|
|
92
|
-
}
|
|
93
|
-
export interface INPCGetInfoEmitterClient {
|
|
94
|
-
npcId: string;
|
|
95
|
-
}
|
|
96
|
-
export interface INPCGetInfoEmitterServer extends INPC {
|
|
97
|
-
}
|
|
98
|
-
export interface INPCStartDialog {
|
|
99
|
-
npcId: string;
|
|
100
|
-
dialogText: string;
|
|
101
|
-
}
|
|
102
|
-
export interface INPCStopDialog {
|
|
103
|
-
npcId: string;
|
|
104
|
-
}
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { CharacterClass, CharacterGender, ICharacter } from "./character.types";
|
|
3
|
+
import { EntityAttackType } from "./entity.types";
|
|
4
|
+
import { MapLayers } from "./maps.types";
|
|
5
|
+
import { IResource } from "./resource.types";
|
|
6
|
+
import { ISkill } from "./skills.types";
|
|
7
|
+
export interface INPC extends IResource {
|
|
8
|
+
tiledId?: number;
|
|
9
|
+
key: string;
|
|
10
|
+
textureKey: string;
|
|
11
|
+
name: string;
|
|
12
|
+
health: number;
|
|
13
|
+
maxHealth: number;
|
|
14
|
+
mana: number;
|
|
15
|
+
maxMana: number;
|
|
16
|
+
alignment: NPCAlignment;
|
|
17
|
+
targetType: NPCTargetType;
|
|
18
|
+
targetCharacter?: ICharacter | null;
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
initialX: number;
|
|
22
|
+
initialY: number;
|
|
23
|
+
direction: AnimationDirection;
|
|
24
|
+
scene: string;
|
|
25
|
+
class: CharacterClass;
|
|
26
|
+
gender: CharacterGender;
|
|
27
|
+
layer: MapLayers;
|
|
28
|
+
attackType: EntityAttackType;
|
|
29
|
+
originalMovementType: NPCMovementType;
|
|
30
|
+
currentMovementType: NPCMovementType;
|
|
31
|
+
maxRangeInGridCells?: number;
|
|
32
|
+
maxRangedDistanceInGridCells?: number;
|
|
33
|
+
pathOrientation?: NPCPathOrientation;
|
|
34
|
+
fixedPath?: {
|
|
35
|
+
endGridX: number;
|
|
36
|
+
endGridY: number;
|
|
37
|
+
};
|
|
38
|
+
pm2InstanceManager: number;
|
|
39
|
+
speed: number;
|
|
40
|
+
dialogText: string;
|
|
41
|
+
skills: ISkill | string;
|
|
42
|
+
spawnIntervalMin: number;
|
|
43
|
+
nextSpawnTime: Date;
|
|
44
|
+
fleeOnLowHealth: boolean;
|
|
45
|
+
}
|
|
46
|
+
export declare enum NPCTargetType {
|
|
47
|
+
Default = "Default",
|
|
48
|
+
Talking = "Talking"
|
|
49
|
+
}
|
|
50
|
+
export declare enum NPCAlignment {
|
|
51
|
+
Friendly = "Friendly",
|
|
52
|
+
Neutral = "Neutral",
|
|
53
|
+
Hostile = "Hostile"
|
|
54
|
+
}
|
|
55
|
+
export declare enum NPCPathOrientation {
|
|
56
|
+
Forward = "Forward",
|
|
57
|
+
Backward = "Backward"
|
|
58
|
+
}
|
|
59
|
+
export declare enum NPCMovementType {
|
|
60
|
+
Random = "Random",
|
|
61
|
+
FixedPath = "FixedPath",
|
|
62
|
+
Stopped = "Stopped",
|
|
63
|
+
MoveAway = "MoveAway",
|
|
64
|
+
MoveTowards = "MoveTowards"
|
|
65
|
+
}
|
|
66
|
+
export declare enum NPCSocketEvents {
|
|
67
|
+
NPCDataUpdate = "NPCDataUpdate",
|
|
68
|
+
NPCPositionUpdate = "NPCPositionUpdate",
|
|
69
|
+
NPCTalkToNPC = "NPCTalkToNPC",
|
|
70
|
+
NPCStartDialogNPC = "NPCStartDialogNPC",
|
|
71
|
+
NPCStopDialogNPC = "NPCStopDialogNPC"
|
|
72
|
+
}
|
|
73
|
+
export interface INPCPositionUpdatePayload {
|
|
74
|
+
id: string;
|
|
75
|
+
name: string;
|
|
76
|
+
x: number;
|
|
77
|
+
y: number;
|
|
78
|
+
direction: string;
|
|
79
|
+
key: string;
|
|
80
|
+
layer: MapLayers;
|
|
81
|
+
textureKey: string;
|
|
82
|
+
scene: string;
|
|
83
|
+
speed: number;
|
|
84
|
+
alignment: NPCAlignment;
|
|
85
|
+
health: number;
|
|
86
|
+
maxHealth: number;
|
|
87
|
+
mana: number;
|
|
88
|
+
maxMana: number;
|
|
89
|
+
}
|
|
90
|
+
export interface INPCDataUpdatePayload {
|
|
91
|
+
[key: string]: any;
|
|
92
|
+
}
|
|
93
|
+
export interface INPCGetInfoEmitterClient {
|
|
94
|
+
npcId: string;
|
|
95
|
+
}
|
|
96
|
+
export interface INPCGetInfoEmitterServer extends INPC {
|
|
97
|
+
}
|
|
98
|
+
export interface INPCStartDialog {
|
|
99
|
+
npcId: string;
|
|
100
|
+
dialogText: string;
|
|
101
|
+
}
|
|
102
|
+
export interface INPCStopDialog {
|
|
103
|
+
npcId: string;
|
|
104
|
+
}
|
|
105
105
|
//# sourceMappingURL=npc.types.d.ts.map
|