@rpg-engine/shared 0.6.82 → 0.6.83

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.
Files changed (121) hide show
  1. package/README.md +29 -29
  2. package/dist/constants/date.constants.d.ts +2 -2
  3. package/dist/constants/date.constants.js +5 -5
  4. package/dist/constants/npc.constants.d.ts +1 -1
  5. package/dist/constants/npc.constants.js +4 -4
  6. package/dist/constants/socket.constants.d.ts +2 -2
  7. package/dist/constants/socket.constants.js +6 -6
  8. package/dist/constants/world.constants.d.ts +10 -10
  9. package/dist/constants/world.constants.js +13 -13
  10. package/dist/helpers/deviceHelpers.d.ts +2 -2
  11. package/dist/helpers/deviceHelpers.d.ts.map +1 -1
  12. package/dist/helpers/deviceHelpers.js +17 -24
  13. package/dist/helpers/deviceHelpers.js.map +1 -1
  14. package/dist/helpers/itemSlotHelper.d.ts +6 -6
  15. package/dist/helpers/itemSlotHelper.js +21 -21
  16. package/dist/helpers/skillHelpers.d.ts +4 -4
  17. package/dist/helpers/skillHelpers.js +25 -25
  18. package/dist/index.d.ts +47 -48
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +63 -64
  21. package/dist/index.js.map +1 -1
  22. package/dist/libs/GridHelper.d.ts +11 -11
  23. package/dist/libs/GridHelper.js +37 -37
  24. package/dist/libs/MathHelper.d.ts +16 -16
  25. package/dist/libs/MathHelper.js +14 -14
  26. package/dist/libs/SocketHelper.d.ts +2 -2
  27. package/dist/libs/SocketHelper.js +14 -14
  28. package/dist/libs/TextHelper.d.ts +7 -7
  29. package/dist/libs/TextHelper.js +21 -21
  30. package/dist/libs/TypeHelper.d.ts +3 -3
  31. package/dist/libs/TypeHelper.js +16 -16
  32. package/dist/translations/app-rate.lang.json +38 -38
  33. package/dist/translations/assets.lang.json +82 -82
  34. package/dist/translations/auth.lang.json +182 -182
  35. package/dist/translations/email.lang.json +70 -70
  36. package/dist/translations/error.lang.json +18 -18
  37. package/dist/translations/form.lang.json +94 -94
  38. package/dist/translations/global.lang.json +90 -90
  39. package/dist/translations/logs.lang.json +6 -6
  40. package/dist/translations/onboarding.lang.d.ts +10 -10
  41. package/dist/translations/onboarding.lang.js +21 -21
  42. package/dist/translations/onboarding.lang.json +50 -50
  43. package/dist/translations/order.lang.json +90 -90
  44. package/dist/translations/search.lang.json +50 -50
  45. package/dist/translations/settings.lang.json +14 -14
  46. package/dist/translations/tabs.lang.json +22 -22
  47. package/dist/translations/users.lang.json +22 -22
  48. package/dist/translations/validation.lang.json +86 -86
  49. package/dist/types/animation.types.d.ts +61 -61
  50. package/dist/types/animation.types.js +38 -38
  51. package/dist/types/api.types.d.ts +21 -21
  52. package/dist/types/api.types.js +20 -20
  53. package/dist/types/asset.types.d.ts +6 -6
  54. package/dist/types/asset.types.js +2 -2
  55. package/dist/types/auth.types.d.ts +7 -7
  56. package/dist/types/auth.types.js +2 -2
  57. package/dist/types/battle.types.d.ts +40 -40
  58. package/dist/types/battle.types.js +18 -18
  59. package/dist/types/character.types.d.ts +203 -203
  60. package/dist/types/character.types.js +52 -52
  61. package/dist/types/chat.types.d.ts +30 -30
  62. package/dist/types/chat.types.js +14 -14
  63. package/dist/types/depot.types.d.ts +18 -18
  64. package/dist/types/depot.types.js +9 -9
  65. package/dist/types/device.types.d.ts +24 -24
  66. package/dist/types/device.types.js +7 -7
  67. package/dist/types/entity.types.d.ts +30 -30
  68. package/dist/types/entity.types.js +20 -20
  69. package/dist/types/env.types.d.ts +5 -5
  70. package/dist/types/env.types.js +9 -9
  71. package/dist/types/equipment.types.d.ts +35 -35
  72. package/dist/types/equipment.types.js +18 -18
  73. package/dist/types/googleOAuth.types.d.ts +47 -47
  74. package/dist/types/googleOAuth.types.js +2 -2
  75. package/dist/types/inventory.types.d.ts +7 -7
  76. package/dist/types/inventory.types.js +2 -2
  77. package/dist/types/item.types.d.ts +242 -242
  78. package/dist/types/item.types.js +138 -138
  79. package/dist/types/itemContainer.types.d.ts +82 -82
  80. package/dist/types/itemContainer.types.js +10 -10
  81. package/dist/types/maps.types.d.ts +82 -82
  82. package/dist/types/maps.types.js +81 -81
  83. package/dist/types/notification.types.d.ts +14 -14
  84. package/dist/types/notification.types.js +2 -2
  85. package/dist/types/npc.types.d.ts +151 -151
  86. package/dist/types/npc.types.js +48 -48
  87. package/dist/types/pagination.types.d.ts +13 -13
  88. package/dist/types/pagination.types.js +2 -2
  89. package/dist/types/places.types.d.ts +16 -16
  90. package/dist/types/places.types.js +9 -9
  91. package/dist/types/preloadScene.types.d.ts +4 -4
  92. package/dist/types/preloadScene.types.js +7 -7
  93. package/dist/types/quest.types.d.ts +74 -74
  94. package/dist/types/quest.types.js +21 -21
  95. package/dist/types/resource.types.d.ts +5 -5
  96. package/dist/types/resource.types.js +2 -2
  97. package/dist/types/scene.types.d.ts +8 -8
  98. package/dist/types/scene.types.js +8 -8
  99. package/dist/types/skills.types.d.ts +126 -126
  100. package/dist/types/skills.types.js +85 -85
  101. package/dist/types/socket.types.d.ts +17 -17
  102. package/dist/types/socket.types.js +8 -8
  103. package/dist/types/spell.types.d.ts +20 -20
  104. package/dist/types/spell.types.js +8 -8
  105. package/dist/types/tiled.types.d.ts +119 -119
  106. package/dist/types/tiled.types.js +7 -7
  107. package/dist/types/trade.types.d.ts +41 -41
  108. package/dist/types/trade.types.js +8 -8
  109. package/dist/types/translation.types.d.ts +5 -5
  110. package/dist/types/translation.types.js +8 -8
  111. package/dist/types/ui.types.d.ts +8 -8
  112. package/dist/types/ui.types.js +7 -7
  113. package/dist/types/useWith.types.d.ts +25 -25
  114. package/dist/types/useWith.types.js +9 -9
  115. package/dist/types/user.types.d.ts +101 -101
  116. package/dist/types/user.types.js +38 -38
  117. package/dist/types/validation.types.d.ts +9 -9
  118. package/dist/types/validation.types.js +2 -2
  119. package/dist/types/view.types.d.ts +14 -14
  120. package/dist/types/view.types.js +7 -7
  121. package/package.json +42 -42
@@ -1,139 +1,139 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SpellCastingType = exports.ActionsForMapContainer = exports.ActionsForEquipmentSet = exports.ActionsForLoot = exports.ActionsForInventory = exports.ItemSocketEventsDisplayLabels = exports.ItemSocketEvents = exports.ItemSlotType = exports.ItemSubType = exports.ItemRarities = 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["Quest"] = "Quest";
12
- ItemType["Information"] = "Information";
13
- ItemType["Tool"] = "Tool";
14
- ItemType["Container"] = "Container";
15
- ItemType["Other"] = "Other";
16
- ItemType["CraftingResource"] = "CraftingResource";
17
- })(ItemType = exports.ItemType || (exports.ItemType = {}));
18
- var ItemRarities;
19
- (function (ItemRarities) {
20
- ItemRarities["Common"] = "Common";
21
- ItemRarities["Uncommon"] = "Uncommon";
22
- ItemRarities["Rare"] = "Rare";
23
- ItemRarities["Epic"] = "Epic";
24
- ItemRarities["Legendary"] = "Legendary";
25
- })(ItemRarities = exports.ItemRarities || (exports.ItemRarities = {}));
26
- var ItemSubType;
27
- (function (ItemSubType) {
28
- ItemSubType["Accessory"] = "Accessory";
29
- ItemSubType["CraftingResource"] = "CraftingResource";
30
- ItemSubType["Armor"] = "Armor";
31
- ItemSubType["Legs"] = "Legs";
32
- ItemSubType["Axe"] = "Axe";
33
- ItemSubType["Boot"] = "Boot";
34
- ItemSubType["Ranged"] = "Ranged";
35
- ItemSubType["Food"] = "Food";
36
- ItemSubType["Glove"] = "Glove";
37
- ItemSubType["Helmet"] = "Helmet";
38
- ItemSubType["Magic"] = "Magic";
39
- ItemSubType["Potion"] = "Potion";
40
- ItemSubType["Shield"] = "Shield";
41
- ItemSubType["Spear"] = "Spear";
42
- ItemSubType["Staff"] = "Staff";
43
- ItemSubType["Sword"] = "Sword";
44
- ItemSubType["Other"] = "Other";
45
- ItemSubType["DeadBody"] = "DeadBody";
46
- ItemSubType["Dagger"] = "Dagger";
47
- ItemSubType["Mace"] = "Mace";
48
- ItemSubType["Tool"] = "Tool";
49
- ItemSubType["Book"] = "Book";
50
- })(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
51
- var ItemSlotType;
52
- (function (ItemSlotType) {
53
- ItemSlotType["Head"] = "Head";
54
- ItemSlotType["Neck"] = "Neck";
55
- ItemSlotType["Torso"] = "Torso";
56
- ItemSlotType["LeftHand"] = "LeftHand";
57
- ItemSlotType["RightHand"] = "RightHand";
58
- ItemSlotType["Waist"] = "Waist";
59
- ItemSlotType["Legs"] = "Legs";
60
- ItemSlotType["Feet"] = "Feet";
61
- ItemSlotType["Ring"] = "Ring";
62
- ItemSlotType["Accessory"] = "Accessory";
63
- ItemSlotType["Inventory"] = "Inventory";
64
- })(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
65
- var ItemSocketEvents;
66
- (function (ItemSocketEvents) {
67
- ItemSocketEvents["Update"] = "Update";
68
- ItemSocketEvents["UpdateAll"] = "UpdateAll";
69
- ItemSocketEvents["Look"] = "Look";
70
- ItemSocketEvents["Equip"] = "Equip";
71
- ItemSocketEvents["Unequip"] = "Unequip";
72
- ItemSocketEvents["Pickup"] = "Pickup";
73
- ItemSocketEvents["Drop"] = "Drop";
74
- ItemSocketEvents["Move"] = "Move";
75
- ItemSocketEvents["Use"] = "Use";
76
- ItemSocketEvents["UseWith"] = "Use with...";
77
- ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
78
- ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
79
- ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
80
- ItemSocketEvents["ContainerRead"] = "ContainerRead";
81
- ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
82
- ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
83
- ItemSocketEvents["RangedAttack"] = "RangedAttack";
84
- ItemSocketEvents["Buy"] = "Buy";
85
- ItemSocketEvents["Sell"] = "Sell";
86
- ItemSocketEvents["InventoryOpen"] = "InventoryOpen";
87
- ItemSocketEvents["LoadCraftBook"] = "LoadCraftBook";
88
- ItemSocketEvents["CraftableItems"] = "CraftableItems";
89
- ItemSocketEvents["CraftItem"] = "CraftItem";
90
- })(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
91
- exports.ItemSocketEventsDisplayLabels = {
92
- [ItemSocketEvents.GetItemInfo]: "Look",
93
- [ItemSocketEvents.ContainerTransfer]: "Transfer",
94
- [ItemSocketEvents.Equip]: "Equip",
95
- [ItemSocketEvents.Unequip]: "Unequip",
96
- [ItemSocketEvents.Pickup]: "Pickup",
97
- [ItemSocketEvents.Drop]: "Drop",
98
- [ItemSocketEvents.Use]: "Use",
99
- [ItemSocketEvents.ContainerOpen]: "Open",
100
- [ItemSocketEvents.ContainerRead]: "Read",
101
- [ItemSocketEvents.UseWith]: "Use with...",
102
- };
103
- exports.ActionsForInventory = {
104
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
105
- Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
106
- CraftingResource: [ItemSocketEvents.UseWith, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
107
- Tool: [ItemSocketEvents.UseWith, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
108
- Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
109
- Container: [
110
- ItemSocketEvents.Equip,
111
- ItemSocketEvents.GetItemInfo,
112
- ItemSocketEvents.Drop,
113
- ItemSocketEvents.ContainerOpen,
114
- ],
115
- };
116
- exports.ActionsForLoot = {
117
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
118
- Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
119
- CraftingResource: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
120
- Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
121
- Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
122
- };
123
- exports.ActionsForEquipmentSet = {
124
- Equipment: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.Unequip],
125
- Container: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen],
126
- };
127
- exports.ActionsForMapContainer = {
128
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
129
- Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
130
- CraftingResource: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
131
- Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
132
- Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
133
- };
134
- var SpellCastingType;
135
- (function (SpellCastingType) {
136
- SpellCastingType["SelfCasting"] = "self-casting";
137
- SpellCastingType["RangedCasting"] = "ranged-casting";
138
- })(SpellCastingType = exports.SpellCastingType || (exports.SpellCastingType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpellCastingType = exports.ActionsForMapContainer = exports.ActionsForEquipmentSet = exports.ActionsForLoot = exports.ActionsForInventory = exports.ItemSocketEventsDisplayLabels = exports.ItemSocketEvents = exports.ItemSlotType = exports.ItemSubType = exports.ItemRarities = 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["Quest"] = "Quest";
12
+ ItemType["Information"] = "Information";
13
+ ItemType["Tool"] = "Tool";
14
+ ItemType["Container"] = "Container";
15
+ ItemType["Other"] = "Other";
16
+ ItemType["CraftingResource"] = "CraftingResource";
17
+ })(ItemType = exports.ItemType || (exports.ItemType = {}));
18
+ var ItemRarities;
19
+ (function (ItemRarities) {
20
+ ItemRarities["Common"] = "Common";
21
+ ItemRarities["Uncommon"] = "Uncommon";
22
+ ItemRarities["Rare"] = "Rare";
23
+ ItemRarities["Epic"] = "Epic";
24
+ ItemRarities["Legendary"] = "Legendary";
25
+ })(ItemRarities = exports.ItemRarities || (exports.ItemRarities = {}));
26
+ var ItemSubType;
27
+ (function (ItemSubType) {
28
+ ItemSubType["Accessory"] = "Accessory";
29
+ ItemSubType["CraftingResource"] = "CraftingResource";
30
+ ItemSubType["Armor"] = "Armor";
31
+ ItemSubType["Legs"] = "Legs";
32
+ ItemSubType["Axe"] = "Axe";
33
+ ItemSubType["Boot"] = "Boot";
34
+ ItemSubType["Ranged"] = "Ranged";
35
+ ItemSubType["Food"] = "Food";
36
+ ItemSubType["Glove"] = "Glove";
37
+ ItemSubType["Helmet"] = "Helmet";
38
+ ItemSubType["Magic"] = "Magic";
39
+ ItemSubType["Potion"] = "Potion";
40
+ ItemSubType["Shield"] = "Shield";
41
+ ItemSubType["Spear"] = "Spear";
42
+ ItemSubType["Staff"] = "Staff";
43
+ ItemSubType["Sword"] = "Sword";
44
+ ItemSubType["Other"] = "Other";
45
+ ItemSubType["DeadBody"] = "DeadBody";
46
+ ItemSubType["Dagger"] = "Dagger";
47
+ ItemSubType["Mace"] = "Mace";
48
+ ItemSubType["Tool"] = "Tool";
49
+ ItemSubType["Book"] = "Book";
50
+ })(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
51
+ var ItemSlotType;
52
+ (function (ItemSlotType) {
53
+ ItemSlotType["Head"] = "Head";
54
+ ItemSlotType["Neck"] = "Neck";
55
+ ItemSlotType["Torso"] = "Torso";
56
+ ItemSlotType["LeftHand"] = "LeftHand";
57
+ ItemSlotType["RightHand"] = "RightHand";
58
+ ItemSlotType["Waist"] = "Waist";
59
+ ItemSlotType["Legs"] = "Legs";
60
+ ItemSlotType["Feet"] = "Feet";
61
+ ItemSlotType["Ring"] = "Ring";
62
+ ItemSlotType["Accessory"] = "Accessory";
63
+ ItemSlotType["Inventory"] = "Inventory";
64
+ })(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
65
+ var ItemSocketEvents;
66
+ (function (ItemSocketEvents) {
67
+ ItemSocketEvents["Update"] = "Update";
68
+ ItemSocketEvents["UpdateAll"] = "UpdateAll";
69
+ ItemSocketEvents["Look"] = "Look";
70
+ ItemSocketEvents["Equip"] = "Equip";
71
+ ItemSocketEvents["Unequip"] = "Unequip";
72
+ ItemSocketEvents["Pickup"] = "Pickup";
73
+ ItemSocketEvents["Drop"] = "Drop";
74
+ ItemSocketEvents["Move"] = "Move";
75
+ ItemSocketEvents["Use"] = "Use";
76
+ ItemSocketEvents["UseWith"] = "Use with...";
77
+ ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
78
+ ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
79
+ ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
80
+ ItemSocketEvents["ContainerRead"] = "ContainerRead";
81
+ ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
82
+ ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
83
+ ItemSocketEvents["RangedAttack"] = "RangedAttack";
84
+ ItemSocketEvents["Buy"] = "Buy";
85
+ ItemSocketEvents["Sell"] = "Sell";
86
+ ItemSocketEvents["InventoryOpen"] = "InventoryOpen";
87
+ ItemSocketEvents["LoadCraftBook"] = "LoadCraftBook";
88
+ ItemSocketEvents["CraftableItems"] = "CraftableItems";
89
+ ItemSocketEvents["CraftItem"] = "CraftItem";
90
+ })(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
91
+ exports.ItemSocketEventsDisplayLabels = {
92
+ [ItemSocketEvents.GetItemInfo]: "Look",
93
+ [ItemSocketEvents.ContainerTransfer]: "Transfer",
94
+ [ItemSocketEvents.Equip]: "Equip",
95
+ [ItemSocketEvents.Unequip]: "Unequip",
96
+ [ItemSocketEvents.Pickup]: "Pickup",
97
+ [ItemSocketEvents.Drop]: "Drop",
98
+ [ItemSocketEvents.Use]: "Use",
99
+ [ItemSocketEvents.ContainerOpen]: "Open",
100
+ [ItemSocketEvents.ContainerRead]: "Read",
101
+ [ItemSocketEvents.UseWith]: "Use with...",
102
+ };
103
+ exports.ActionsForInventory = {
104
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
105
+ Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
106
+ CraftingResource: [ItemSocketEvents.UseWith, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
107
+ Tool: [ItemSocketEvents.UseWith, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
108
+ Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
109
+ Container: [
110
+ ItemSocketEvents.Equip,
111
+ ItemSocketEvents.GetItemInfo,
112
+ ItemSocketEvents.Drop,
113
+ ItemSocketEvents.ContainerOpen,
114
+ ],
115
+ };
116
+ exports.ActionsForLoot = {
117
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
118
+ Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
119
+ CraftingResource: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
120
+ Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
121
+ Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
122
+ };
123
+ exports.ActionsForEquipmentSet = {
124
+ Equipment: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.Unequip],
125
+ Container: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen],
126
+ };
127
+ exports.ActionsForMapContainer = {
128
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
129
+ Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
130
+ CraftingResource: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
131
+ Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
132
+ Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
133
+ };
134
+ var SpellCastingType;
135
+ (function (SpellCastingType) {
136
+ SpellCastingType["SelfCasting"] = "self-casting";
137
+ SpellCastingType["RangedCasting"] = "ranged-casting";
138
+ })(SpellCastingType = exports.SpellCastingType || (exports.SpellCastingType = {}));
139
139
  //# sourceMappingURL=item.types.js.map
@@ -1,83 +1,83 @@
1
- import { IItem, ItemType } from "./item.types";
2
- import { IResource } from "./resource.types";
3
- interface IItemContainerSlots {
4
- [slot: number]: IItem | undefined | null;
5
- }
6
- export interface IItemContainer extends IResource {
7
- owner?: string;
8
- isOwnerRestricted?: boolean;
9
- parentItem: string | IItem;
10
- name?: string;
11
- slotQty: number;
12
- slots: IItemContainerSlots;
13
- allowedItemTypes?: ItemType[];
14
- isEmpty: boolean;
15
- totalItemsQty?: number;
16
- itemIds?: string[];
17
- emptySlotsQty?: number;
18
- firstAvailableSlot?: IItem | null;
19
- firstAvailableSlotId?: number | null;
20
- }
21
- export declare enum ItemContainerType {
22
- Inventory = "Inventory",
23
- Equipment = "Equipment",
24
- Loot = "Loot",
25
- MapContainer = "MapContainer"
26
- }
27
- export interface IItemContainerOpen {
28
- itemId: string;
29
- }
30
- export interface IItemTransfer {
31
- itemId: string;
32
- fromContainerId: string;
33
- toContainerId: string;
34
- }
35
- export interface IItemPickup {
36
- itemId: string;
37
- x: number;
38
- y: number;
39
- scene: string;
40
- toContainerId: string;
41
- fromContainerId?: string;
42
- }
43
- export interface IItemDrop {
44
- itemId: string;
45
- x: number;
46
- y: number;
47
- scene: string;
48
- fromContainerId: string;
49
- source: "inventory" | "equipment";
50
- toPosition: {
51
- x: number;
52
- y: number;
53
- scene: string;
54
- };
55
- }
56
- export interface IItemMove {
57
- from: {
58
- source: string;
59
- containerId: string;
60
- slotIndex: number;
61
- item: IItem;
62
- };
63
- to: {
64
- source: string;
65
- containerId: string;
66
- slotIndex: number;
67
- item: IItem | null;
68
- };
69
- quantity: number | undefined;
70
- }
71
- export interface IItemContainerRead {
72
- itemContainer: IItemContainer;
73
- type: ItemContainerType;
74
- }
75
- export interface IItemContainerProps {
76
- openedContainers: Set<string>;
77
- containersData: {
78
- [key: string]: IItemContainer;
79
- };
80
- onMouseOverElement: (element: any) => void;
81
- }
82
- export {};
1
+ import { IItem, ItemType } from "./item.types";
2
+ import { IResource } from "./resource.types";
3
+ interface IItemContainerSlots {
4
+ [slot: number]: IItem | undefined | null;
5
+ }
6
+ export interface IItemContainer extends IResource {
7
+ owner?: string;
8
+ isOwnerRestricted?: boolean;
9
+ parentItem: string | IItem;
10
+ name?: string;
11
+ slotQty: number;
12
+ slots: IItemContainerSlots;
13
+ allowedItemTypes?: ItemType[];
14
+ isEmpty: boolean;
15
+ totalItemsQty?: number;
16
+ itemIds?: string[];
17
+ emptySlotsQty?: number;
18
+ firstAvailableSlot?: IItem | null;
19
+ firstAvailableSlotId?: number | null;
20
+ }
21
+ export declare enum ItemContainerType {
22
+ Inventory = "Inventory",
23
+ Equipment = "Equipment",
24
+ Loot = "Loot",
25
+ MapContainer = "MapContainer"
26
+ }
27
+ export interface IItemContainerOpen {
28
+ itemId: string;
29
+ }
30
+ export interface IItemTransfer {
31
+ itemId: string;
32
+ fromContainerId: string;
33
+ toContainerId: string;
34
+ }
35
+ export interface IItemPickup {
36
+ itemId: string;
37
+ x: number;
38
+ y: number;
39
+ scene: string;
40
+ toContainerId: string;
41
+ fromContainerId?: string;
42
+ }
43
+ export interface IItemDrop {
44
+ itemId: string;
45
+ x: number;
46
+ y: number;
47
+ scene: string;
48
+ fromContainerId: string;
49
+ source: "inventory" | "equipment";
50
+ toPosition: {
51
+ x: number;
52
+ y: number;
53
+ scene: string;
54
+ };
55
+ }
56
+ export interface IItemMove {
57
+ from: {
58
+ source: string;
59
+ containerId: string;
60
+ slotIndex: number;
61
+ item: IItem;
62
+ };
63
+ to: {
64
+ source: string;
65
+ containerId: string;
66
+ slotIndex: number;
67
+ item: IItem | null;
68
+ };
69
+ quantity: number | undefined;
70
+ }
71
+ export interface IItemContainerRead {
72
+ itemContainer: IItemContainer;
73
+ type: ItemContainerType;
74
+ }
75
+ export interface IItemContainerProps {
76
+ openedContainers: Set<string>;
77
+ containersData: {
78
+ [key: string]: IItemContainer;
79
+ };
80
+ onMouseOverElement: (element: any) => void;
81
+ }
82
+ export {};
83
83
  //# sourceMappingURL=itemContainer.types.d.ts.map
@@ -1,11 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ItemContainerType = void 0;
4
- var ItemContainerType;
5
- (function (ItemContainerType) {
6
- ItemContainerType["Inventory"] = "Inventory";
7
- ItemContainerType["Equipment"] = "Equipment";
8
- ItemContainerType["Loot"] = "Loot";
9
- ItemContainerType["MapContainer"] = "MapContainer";
10
- })(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ItemContainerType = void 0;
4
+ var ItemContainerType;
5
+ (function (ItemContainerType) {
6
+ ItemContainerType["Inventory"] = "Inventory";
7
+ ItemContainerType["Equipment"] = "Equipment";
8
+ ItemContainerType["Loot"] = "Loot";
9
+ ItemContainerType["MapContainer"] = "MapContainer";
10
+ })(ItemContainerType = exports.ItemContainerType || (exports.ItemContainerType = {}));
11
11
  //# sourceMappingURL=itemContainer.types.js.map
@@ -1,83 +1,83 @@
1
- export declare enum MapLayers {
2
- Ground = 0,
3
- OverGround = 1,
4
- Decoration = 2,
5
- Character = 3,
6
- OverCharacter = 4,
7
- OverCharacterDecoration = 5,
8
- Roof = 6
9
- }
10
- export declare const TiledLayerNames: {
11
- 0: string;
12
- 1: string;
13
- 2: string;
14
- 3: string;
15
- 4: string;
16
- 5: string;
17
- 6: string;
18
- };
19
- export declare const MAP_OBJECT_LAYERS: string[];
20
- export declare const MAP_LAYERS: string[];
21
- export declare const MAP_LAYERS_TO_ID: {
22
- ground: number;
23
- "over-ground": number;
24
- decoration: number;
25
- character: number;
26
- "over-character": number;
27
- "over-character-decoration": number;
28
- roof: number;
29
- };
30
- export declare const MAP_REQUIRED_LAYERS: string[];
31
- export interface IMapMetadataTileset {
32
- name: string;
33
- }
34
- export declare enum MapLighteningType {
35
- Static = "Static",
36
- Dynamic = "Dynamic"
37
- }
38
- export interface IMapMetaData {
39
- key: string;
40
- name: string;
41
- version: number;
42
- layers: string[];
43
- tileWidth: number;
44
- tileHeight: number;
45
- tilesets: IMapMetadataTileset[];
46
- width: number;
47
- height: number;
48
- lightening?: {
49
- type: MapLighteningType;
50
- value?: number;
51
- };
52
- weather?: AvailableWeather;
53
- }
54
- export declare enum MapSocketEvents {
55
- ChangeMap = "ChangeMap",
56
- NonPVPZone = "NonPVPZone",
57
- SameMapTeleport = "SameMapTeleport"
58
- }
59
- export interface IMapDestination {
60
- map: string;
61
- gridX: number;
62
- gridY: number;
63
- }
64
- export declare enum PeriodOfDay {
65
- Morning = "Morning",
66
- Afternoon = "Afternoon",
67
- Night = "Night"
68
- }
69
- export declare enum AvailableWeather {
70
- Standard = "Standard",
71
- SoftRain = "SoftRain",
72
- HeavyRain = "HeavyRain",
73
- Snowing = "Snowing"
74
- }
75
- export interface IControlTime {
76
- time: string;
77
- period: PeriodOfDay;
78
- weather: AvailableWeather;
79
- }
80
- export declare enum WeatherSocketEvents {
81
- TimeWeatherControl = "TimeWeatherControl"
82
- }
1
+ export declare enum MapLayers {
2
+ Ground = 0,
3
+ OverGround = 1,
4
+ Decoration = 2,
5
+ Character = 3,
6
+ OverCharacter = 4,
7
+ OverCharacterDecoration = 5,
8
+ Roof = 6
9
+ }
10
+ export declare const TiledLayerNames: {
11
+ 0: string;
12
+ 1: string;
13
+ 2: string;
14
+ 3: string;
15
+ 4: string;
16
+ 5: string;
17
+ 6: string;
18
+ };
19
+ export declare const MAP_OBJECT_LAYERS: string[];
20
+ export declare const MAP_LAYERS: string[];
21
+ export declare const MAP_LAYERS_TO_ID: {
22
+ ground: number;
23
+ "over-ground": number;
24
+ decoration: number;
25
+ character: number;
26
+ "over-character": number;
27
+ "over-character-decoration": number;
28
+ roof: number;
29
+ };
30
+ export declare const MAP_REQUIRED_LAYERS: string[];
31
+ export interface IMapMetadataTileset {
32
+ name: string;
33
+ }
34
+ export declare enum MapLighteningType {
35
+ Static = "Static",
36
+ Dynamic = "Dynamic"
37
+ }
38
+ export interface IMapMetaData {
39
+ key: string;
40
+ name: string;
41
+ version: number;
42
+ layers: string[];
43
+ tileWidth: number;
44
+ tileHeight: number;
45
+ tilesets: IMapMetadataTileset[];
46
+ width: number;
47
+ height: number;
48
+ lightening?: {
49
+ type: MapLighteningType;
50
+ value?: number;
51
+ };
52
+ weather?: AvailableWeather;
53
+ }
54
+ export declare enum MapSocketEvents {
55
+ ChangeMap = "ChangeMap",
56
+ NonPVPZone = "NonPVPZone",
57
+ SameMapTeleport = "SameMapTeleport"
58
+ }
59
+ export interface IMapDestination {
60
+ map: string;
61
+ gridX: number;
62
+ gridY: number;
63
+ }
64
+ export declare enum PeriodOfDay {
65
+ Morning = "Morning",
66
+ Afternoon = "Afternoon",
67
+ Night = "Night"
68
+ }
69
+ export declare enum AvailableWeather {
70
+ Standard = "Standard",
71
+ SoftRain = "SoftRain",
72
+ HeavyRain = "HeavyRain",
73
+ Snowing = "Snowing"
74
+ }
75
+ export interface IControlTime {
76
+ time: string;
77
+ period: PeriodOfDay;
78
+ weather: AvailableWeather;
79
+ }
80
+ export declare enum WeatherSocketEvents {
81
+ TimeWeatherControl = "TimeWeatherControl"
82
+ }
83
83
  //# sourceMappingURL=maps.types.d.ts.map