@rpg-engine/shared 0.3.20 → 0.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -29
- package/dist/constants/date.constants.d.ts +2 -2
- package/dist/constants/date.constants.js +5 -5
- package/dist/constants/npc.constants.d.ts +1 -1
- package/dist/constants/npc.constants.js +4 -4
- package/dist/constants/socket.constants.d.ts +2 -2
- package/dist/constants/socket.constants.js +6 -6
- package/dist/constants/world.constants.d.ts +10 -10
- package/dist/constants/world.constants.js +13 -13
- package/dist/helpers/skillHelpers.d.ts +4 -4
- package/dist/helpers/skillHelpers.js +25 -25
- package/dist/index.d.ts +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 +148 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.types.d.ts","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"item.types.d.ts","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,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;IACpB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,CAAC,EAAE,EAAE,MAAM,GAAG,oBAAoB,CAAC;CACpC;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAED,eAAO,MAAM,iBAAiB;;;;;;;CAO7B,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,KAAK,GAAG,IAAI,CAAC;IACnB,UAAU,EAAE,gBAAgB,GAAG,MAAM,CAAC;CACvC;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,YAAY,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,mCAAmC;IAClD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/types/item.types.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
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
|
-
})(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
|
|
38
|
-
var ItemSlotType;
|
|
39
|
-
(function (ItemSlotType) {
|
|
40
|
-
ItemSlotType["Head"] = "Head";
|
|
41
|
-
ItemSlotType["Neck"] = "Neck";
|
|
42
|
-
ItemSlotType["Torso"] = "Torso";
|
|
43
|
-
ItemSlotType["LeftHand"] = "LeftHand";
|
|
44
|
-
ItemSlotType["RightHand"] = "RightHand";
|
|
45
|
-
ItemSlotType["Waist"] = "Waist";
|
|
46
|
-
ItemSlotType["Legs"] = "Legs";
|
|
47
|
-
ItemSlotType["Feet"] = "Feet";
|
|
48
|
-
ItemSlotType["Ring"] = "Ring";
|
|
49
|
-
ItemSlotType["Accessory"] = "Accessory";
|
|
50
|
-
ItemSlotType["Inventory"] = "Inventory";
|
|
51
|
-
})(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
|
|
52
|
-
var ItemSocketEvents;
|
|
53
|
-
(function (ItemSocketEvents) {
|
|
54
|
-
ItemSocketEvents["Update"] = "Update";
|
|
55
|
-
ItemSocketEvents["Look"] = "Look";
|
|
56
|
-
ItemSocketEvents["Equip"] = "Equip";
|
|
57
|
-
ItemSocketEvents["Unequip"] = "Unequip";
|
|
58
|
-
ItemSocketEvents["Pickup"] = "Pickup";
|
|
59
|
-
ItemSocketEvents["Drop"] = "Drop";
|
|
60
|
-
ItemSocketEvents["Use"] = "Use";
|
|
61
|
-
ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
|
|
62
|
-
ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
|
|
63
|
-
ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
|
|
64
|
-
ItemSocketEvents["ContainerRead"] = "ContainerRead";
|
|
65
|
-
ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
|
|
66
|
-
ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
|
|
67
|
-
})(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
|
|
68
|
-
exports.ActionsByItemType = {
|
|
69
|
-
Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
70
|
-
Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
71
|
-
CraftMaterial: [, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
72
|
-
Other: [ItemSocketEvents.GetItemInfo],
|
|
73
|
-
EquipmenSetItems: [ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
74
|
-
EquipmenSetContainer: [ItemSocketEvents.Look, ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
75
|
-
};
|
|
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
|
+
})(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
|
|
38
|
+
var ItemSlotType;
|
|
39
|
+
(function (ItemSlotType) {
|
|
40
|
+
ItemSlotType["Head"] = "Head";
|
|
41
|
+
ItemSlotType["Neck"] = "Neck";
|
|
42
|
+
ItemSlotType["Torso"] = "Torso";
|
|
43
|
+
ItemSlotType["LeftHand"] = "LeftHand";
|
|
44
|
+
ItemSlotType["RightHand"] = "RightHand";
|
|
45
|
+
ItemSlotType["Waist"] = "Waist";
|
|
46
|
+
ItemSlotType["Legs"] = "Legs";
|
|
47
|
+
ItemSlotType["Feet"] = "Feet";
|
|
48
|
+
ItemSlotType["Ring"] = "Ring";
|
|
49
|
+
ItemSlotType["Accessory"] = "Accessory";
|
|
50
|
+
ItemSlotType["Inventory"] = "Inventory";
|
|
51
|
+
})(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
|
|
52
|
+
var ItemSocketEvents;
|
|
53
|
+
(function (ItemSocketEvents) {
|
|
54
|
+
ItemSocketEvents["Update"] = "Update";
|
|
55
|
+
ItemSocketEvents["Look"] = "Look";
|
|
56
|
+
ItemSocketEvents["Equip"] = "Equip";
|
|
57
|
+
ItemSocketEvents["Unequip"] = "Unequip";
|
|
58
|
+
ItemSocketEvents["Pickup"] = "Pickup";
|
|
59
|
+
ItemSocketEvents["Drop"] = "Drop";
|
|
60
|
+
ItemSocketEvents["Use"] = "Use";
|
|
61
|
+
ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
|
|
62
|
+
ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
|
|
63
|
+
ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
|
|
64
|
+
ItemSocketEvents["ContainerRead"] = "ContainerRead";
|
|
65
|
+
ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
|
|
66
|
+
ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
|
|
67
|
+
})(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
|
|
68
|
+
exports.ActionsByItemType = {
|
|
69
|
+
Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
70
|
+
Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
71
|
+
CraftMaterial: [, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
|
|
72
|
+
Other: [ItemSocketEvents.GetItemInfo],
|
|
73
|
+
EquipmenSetItems: [ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
74
|
+
EquipmenSetContainer: [ItemSocketEvents.Look, ItemSocketEvents.Unequip, ItemSocketEvents.GetItemInfo],
|
|
75
|
+
};
|
|
76
76
|
//# sourceMappingURL=item.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../src/types/item.types.ts"],"names":[],"mappings":";;;AAsCA,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,WAkBX;AAlBD,WAAY,WAAW;I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,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
|
-
containerId: 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 {};
|
|
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
|
+
containerId: 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,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
|