@rpg-engine/shared 0.4.20 → 0.4.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.
Files changed (109) 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/skillHelpers.d.ts +4 -4
  11. package/dist/helpers/skillHelpers.js +25 -25
  12. package/dist/index.d.ts +41 -41
  13. package/dist/index.js +57 -57
  14. package/dist/libs/GridHelper.d.ts +11 -11
  15. package/dist/libs/GridHelper.js +37 -37
  16. package/dist/libs/MathHelper.d.ts +16 -16
  17. package/dist/libs/MathHelper.js +14 -14
  18. package/dist/libs/SocketHelper.d.ts +2 -2
  19. package/dist/libs/SocketHelper.js +14 -14
  20. package/dist/libs/TextHelper.d.ts +7 -7
  21. package/dist/libs/TextHelper.js +21 -21
  22. package/dist/libs/TypeHelper.d.ts +3 -3
  23. package/dist/libs/TypeHelper.js +16 -16
  24. package/dist/translations/app-rate.lang.json +38 -38
  25. package/dist/translations/assets.lang.json +82 -82
  26. package/dist/translations/auth.lang.json +182 -182
  27. package/dist/translations/email.lang.json +70 -70
  28. package/dist/translations/error.lang.json +18 -18
  29. package/dist/translations/form.lang.json +94 -94
  30. package/dist/translations/global.lang.json +90 -90
  31. package/dist/translations/logs.lang.json +6 -6
  32. package/dist/translations/onboarding.lang.d.ts +10 -10
  33. package/dist/translations/onboarding.lang.js +21 -21
  34. package/dist/translations/onboarding.lang.json +50 -50
  35. package/dist/translations/order.lang.json +90 -90
  36. package/dist/translations/search.lang.json +50 -50
  37. package/dist/translations/settings.lang.json +14 -14
  38. package/dist/translations/tabs.lang.json +22 -22
  39. package/dist/translations/users.lang.json +22 -22
  40. package/dist/translations/validation.lang.json +86 -86
  41. package/dist/types/animation.types.d.ts +16 -16
  42. package/dist/types/animation.types.js +2 -2
  43. package/dist/types/api.types.d.ts +21 -21
  44. package/dist/types/api.types.js +20 -20
  45. package/dist/types/asset.types.d.ts +6 -6
  46. package/dist/types/asset.types.js +2 -2
  47. package/dist/types/auth.types.d.ts +7 -7
  48. package/dist/types/auth.types.js +2 -2
  49. package/dist/types/battle.types.d.ts +38 -38
  50. package/dist/types/battle.types.js +18 -18
  51. package/dist/types/character.types.d.ts +151 -150
  52. package/dist/types/character.types.d.ts.map +1 -1
  53. package/dist/types/character.types.js +30 -30
  54. package/dist/types/chat.types.d.ts +30 -30
  55. package/dist/types/chat.types.js +14 -14
  56. package/dist/types/device.types.d.ts +24 -24
  57. package/dist/types/device.types.js +7 -7
  58. package/dist/types/entity.types.d.ts +21 -21
  59. package/dist/types/entity.types.js +15 -15
  60. package/dist/types/env.types.d.ts +5 -5
  61. package/dist/types/env.types.js +9 -9
  62. package/dist/types/equipment.types.d.ts +35 -35
  63. package/dist/types/equipment.types.js +18 -18
  64. package/dist/types/googleOAuth.types.d.ts +47 -47
  65. package/dist/types/googleOAuth.types.js +2 -2
  66. package/dist/types/inventory.types.d.ts +7 -7
  67. package/dist/types/inventory.types.js +2 -2
  68. package/dist/types/item.types.d.ts +186 -186
  69. package/dist/types/item.types.js +107 -107
  70. package/dist/types/itemContainer.types.d.ts +67 -66
  71. package/dist/types/itemContainer.types.d.ts.map +1 -1
  72. package/dist/types/itemContainer.types.js +10 -10
  73. package/dist/types/maps.types.d.ts +44 -43
  74. package/dist/types/maps.types.d.ts.map +1 -1
  75. package/dist/types/maps.types.js +47 -46
  76. package/dist/types/maps.types.js.map +1 -1
  77. package/dist/types/notification.types.d.ts +14 -14
  78. package/dist/types/notification.types.js +2 -2
  79. package/dist/types/npc.types.d.ts +117 -117
  80. package/dist/types/npc.types.js +35 -35
  81. package/dist/types/pagination.types.d.ts +13 -13
  82. package/dist/types/pagination.types.js +2 -2
  83. package/dist/types/places.types.d.ts +16 -16
  84. package/dist/types/places.types.js +9 -9
  85. package/dist/types/preloadScene.types.d.ts +4 -4
  86. package/dist/types/preloadScene.types.js +7 -7
  87. package/dist/types/quest.types.d.ts +67 -67
  88. package/dist/types/quest.types.js +21 -21
  89. package/dist/types/resource.types.d.ts +5 -5
  90. package/dist/types/resource.types.js +2 -2
  91. package/dist/types/scene.types.d.ts +8 -8
  92. package/dist/types/scene.types.js +8 -8
  93. package/dist/types/skills.types.d.ts +58 -58
  94. package/dist/types/skills.types.js +23 -23
  95. package/dist/types/socket.types.d.ts +17 -17
  96. package/dist/types/socket.types.js +8 -8
  97. package/dist/types/tiled.types.d.ts +119 -119
  98. package/dist/types/tiled.types.js +7 -7
  99. package/dist/types/translation.types.d.ts +5 -5
  100. package/dist/types/translation.types.js +8 -8
  101. package/dist/types/ui.types.d.ts +8 -8
  102. package/dist/types/ui.types.js +7 -7
  103. package/dist/types/user.types.d.ts +101 -101
  104. package/dist/types/user.types.js +38 -38
  105. package/dist/types/validation.types.d.ts +9 -9
  106. package/dist/types/validation.types.js +2 -2
  107. package/dist/types/view.types.d.ts +14 -14
  108. package/dist/types/view.types.js +7 -7
  109. package/package.json +41 -41
@@ -1,187 +1,187 @@
1
- import { ICharacter } from "./character.types";
2
- import { IEquipmentSet } from "./equipment.types";
3
- import { IItemContainer } from "./itemContainer.types";
4
- import { MapLayers } from "./maps.types";
5
- import { IResource } from "./resource.types";
6
- export interface IItem extends IResource {
7
- tiledId?: number;
8
- owner?: ICharacter | string;
9
- type: ItemType;
10
- subType: ItemSubType;
11
- name: string;
12
- description: string;
13
- fullDescription: string;
14
- key: string;
15
- textureAtlas: string;
16
- texturePath: string;
17
- textureKey: string;
18
- attack?: number;
19
- defense?: number;
20
- weight: number;
21
- allowedEquipSlotType: ItemSlotType[];
22
- isEquipable: boolean;
23
- isStackable: boolean;
24
- maxStackSize: number;
25
- stackQty?: number;
26
- isUsable: boolean;
27
- usableEffect?: string;
28
- isStorable: boolean;
29
- x?: number;
30
- y?: number;
31
- scene?: string;
32
- layer?: MapLayers;
33
- isSolid: boolean;
34
- isItemContainer: boolean;
35
- itemContainer?: string | IItemContainer;
36
- generateContainerSlots?: number;
37
- decayTime?: Date;
38
- maxRange?: number;
39
- requiredAmmoKey?: string;
40
- }
41
- export declare enum ItemType {
42
- Weapon = "Weapon",
43
- Armor = "Armor",
44
- Accessory = "Accessory",
45
- Jewelry = "Jewelry",
46
- Consumable = "Consumable",
47
- CraftMaterial = "CraftMaterial",
48
- Quest = "Quest",
49
- Information = "Information",
50
- Tool = "Tool",
51
- Container = "Container",
52
- Other = "Other"
53
- }
54
- export declare enum ItemSubType {
55
- Accessory = "Accessory",
56
- Armor = "Armor",
57
- Legs = "Legs",
58
- Axe = "Axe",
59
- Boot = "Boot",
60
- Bow = "Bow",
61
- Food = "Food",
62
- Glove = "Glove",
63
- Helmet = "Helmet",
64
- Magic = "Magic",
65
- Potion = "Potion",
66
- Shield = "Shield",
67
- Spear = "Spear",
68
- Staff = "Staff",
69
- Sword = "Sword",
70
- Other = "Other",
71
- DeadBody = "DeadBody",
72
- Dagger = "Dagger",
73
- Mace = "Mace"
74
- }
75
- export declare enum ItemSlotType {
76
- Head = "Head",
77
- Neck = "Neck",
78
- Torso = "Torso",
79
- LeftHand = "LeftHand",
80
- RightHand = "RightHand",
81
- Waist = "Waist",
82
- Legs = "Legs",
83
- Feet = "Feet",
84
- Ring = "Ring",
85
- Accessory = "Accessory",
86
- Inventory = "Inventory"
87
- }
88
- export declare enum ItemSocketEvents {
89
- Update = "Update",
90
- Look = "Look",
91
- Equip = "Equip",
92
- Unequip = "Unequip",
93
- Pickup = "Pickup",
94
- Drop = "Drop",
95
- Use = "Use",
96
- GetItemInfo = "GetItemInfo",
97
- ReadItemInfo = "ReadItemInfo",
98
- ContainerOpen = "ContainerOpen",
99
- ContainerRead = "ContainerRead",
100
- ContainerTransfer = "ContainerTransfer",
101
- EquipmentAndInventoryUpdate = "EquipmentAndInventoryUpdate",
102
- RangedAttack = "RangedAttack"
103
- }
104
- interface IStringIndex {
105
- [key: string]: any;
106
- }
107
- export declare const ItemSocketEventsDisplayLabels: IStringIndex;
108
- export interface IGetItemInfo {
109
- id: string;
110
- fields: string[];
111
- }
112
- export interface IReadItemInfo {
113
- id: string;
114
- information: string;
115
- }
116
- export interface IItemUpdate {
117
- id: string;
118
- textureKey: string;
119
- textureAtlas: string;
120
- texturePath: string;
121
- type: ItemType;
122
- subType: ItemSubType;
123
- name: string;
124
- x: number;
125
- y: number;
126
- scene: string;
127
- layer: MapLayers;
128
- }
129
- export interface IItemsInView {
130
- [id: string]: IItemInViewBasicInfo;
131
- }
132
- export interface IItemInViewBasicInfo {
133
- id: string;
134
- x?: number;
135
- y?: number;
136
- }
137
- export declare const ActionsForInventory: {
138
- Equipment: ItemSocketEvents[];
139
- Consumable: ItemSocketEvents[];
140
- CraftMaterial: ItemSocketEvents[];
141
- Tool: ItemSocketEvents[];
142
- Other: ItemSocketEvents[];
143
- Container: ItemSocketEvents[];
144
- };
145
- export declare const ActionsForLoot: {
146
- Equipment: ItemSocketEvents[];
147
- Consumable: ItemSocketEvents[];
148
- CraftMaterial: ItemSocketEvents[];
149
- Tool: ItemSocketEvents[];
150
- Other: ItemSocketEvents[];
151
- };
152
- export declare const ActionsForEquipmentSet: {
153
- Equipment: ItemSocketEvents[];
154
- Container: ItemSocketEvents[];
155
- };
156
- export declare const ActionsForMapContainer: {
157
- Equipment: ItemSocketEvents[];
158
- Consumable: ItemSocketEvents[];
159
- CraftMaterial: ItemSocketEvents[];
160
- Tool: ItemSocketEvents[];
161
- Other: ItemSocketEvents[];
162
- };
163
- export interface IPayloadProps {
164
- item: IItem | null;
165
- actionType: ItemSocketEvents | string;
166
- }
167
- export interface IEquipItemPayload {
168
- itemId: string;
169
- itemContainerId: string;
170
- }
171
- export interface IUnequipItemPayload {
172
- itemId: string;
173
- }
174
- export interface IEquipmentAndInventoryUpdatePayload {
175
- equipment: IEquipmentSet;
176
- inventory: IItemContainer;
177
- }
178
- export declare type Direction = "down" | "up" | "left" | "right" | "down_right" | "down_left" | "up_right" | "up_left";
179
- export interface IRangedAttack {
180
- attackerId: string;
181
- targetId: string;
182
- direction: Direction;
183
- ammoKey?: string;
184
- type?: string;
185
- }
186
- export {};
1
+ import { ICharacter } from "./character.types";
2
+ import { IEquipmentSet } from "./equipment.types";
3
+ import { IItemContainer } from "./itemContainer.types";
4
+ import { MapLayers } from "./maps.types";
5
+ import { IResource } from "./resource.types";
6
+ export interface IItem extends IResource {
7
+ tiledId?: number;
8
+ owner?: ICharacter | string;
9
+ type: ItemType;
10
+ subType: ItemSubType;
11
+ name: string;
12
+ description: string;
13
+ fullDescription: string;
14
+ key: string;
15
+ textureAtlas: string;
16
+ texturePath: string;
17
+ textureKey: string;
18
+ attack?: number;
19
+ defense?: number;
20
+ weight: number;
21
+ allowedEquipSlotType: ItemSlotType[];
22
+ isEquipable: boolean;
23
+ isStackable: boolean;
24
+ maxStackSize: number;
25
+ stackQty?: number;
26
+ isUsable: boolean;
27
+ usableEffect?: string;
28
+ isStorable: boolean;
29
+ x?: number;
30
+ y?: number;
31
+ scene?: string;
32
+ layer?: MapLayers;
33
+ isSolid: boolean;
34
+ isItemContainer: boolean;
35
+ itemContainer?: string | IItemContainer;
36
+ generateContainerSlots?: number;
37
+ decayTime?: Date;
38
+ maxRange?: number;
39
+ requiredAmmoKey?: string;
40
+ }
41
+ export declare enum ItemType {
42
+ Weapon = "Weapon",
43
+ Armor = "Armor",
44
+ Accessory = "Accessory",
45
+ Jewelry = "Jewelry",
46
+ Consumable = "Consumable",
47
+ CraftMaterial = "CraftMaterial",
48
+ Quest = "Quest",
49
+ Information = "Information",
50
+ Tool = "Tool",
51
+ Container = "Container",
52
+ Other = "Other"
53
+ }
54
+ export declare enum ItemSubType {
55
+ Accessory = "Accessory",
56
+ Armor = "Armor",
57
+ Legs = "Legs",
58
+ Axe = "Axe",
59
+ Boot = "Boot",
60
+ Bow = "Bow",
61
+ Food = "Food",
62
+ Glove = "Glove",
63
+ Helmet = "Helmet",
64
+ Magic = "Magic",
65
+ Potion = "Potion",
66
+ Shield = "Shield",
67
+ Spear = "Spear",
68
+ Staff = "Staff",
69
+ Sword = "Sword",
70
+ Other = "Other",
71
+ DeadBody = "DeadBody",
72
+ Dagger = "Dagger",
73
+ Mace = "Mace"
74
+ }
75
+ export declare enum ItemSlotType {
76
+ Head = "Head",
77
+ Neck = "Neck",
78
+ Torso = "Torso",
79
+ LeftHand = "LeftHand",
80
+ RightHand = "RightHand",
81
+ Waist = "Waist",
82
+ Legs = "Legs",
83
+ Feet = "Feet",
84
+ Ring = "Ring",
85
+ Accessory = "Accessory",
86
+ Inventory = "Inventory"
87
+ }
88
+ export declare enum ItemSocketEvents {
89
+ Update = "Update",
90
+ Look = "Look",
91
+ Equip = "Equip",
92
+ Unequip = "Unequip",
93
+ Pickup = "Pickup",
94
+ Drop = "Drop",
95
+ Use = "Use",
96
+ GetItemInfo = "GetItemInfo",
97
+ ReadItemInfo = "ReadItemInfo",
98
+ ContainerOpen = "ContainerOpen",
99
+ ContainerRead = "ContainerRead",
100
+ ContainerTransfer = "ContainerTransfer",
101
+ EquipmentAndInventoryUpdate = "EquipmentAndInventoryUpdate",
102
+ RangedAttack = "RangedAttack"
103
+ }
104
+ interface IStringIndex {
105
+ [key: string]: any;
106
+ }
107
+ export declare const ItemSocketEventsDisplayLabels: IStringIndex;
108
+ export interface IGetItemInfo {
109
+ id: string;
110
+ fields: string[];
111
+ }
112
+ export interface IReadItemInfo {
113
+ id: string;
114
+ information: string;
115
+ }
116
+ export interface IItemUpdate {
117
+ id: string;
118
+ textureKey: string;
119
+ textureAtlas: string;
120
+ texturePath: string;
121
+ type: ItemType;
122
+ subType: ItemSubType;
123
+ name: string;
124
+ x: number;
125
+ y: number;
126
+ scene: string;
127
+ layer: MapLayers;
128
+ }
129
+ export interface IItemsInView {
130
+ [id: string]: IItemInViewBasicInfo;
131
+ }
132
+ export interface IItemInViewBasicInfo {
133
+ id: string;
134
+ x?: number;
135
+ y?: number;
136
+ }
137
+ export declare const ActionsForInventory: {
138
+ Equipment: ItemSocketEvents[];
139
+ Consumable: ItemSocketEvents[];
140
+ CraftMaterial: ItemSocketEvents[];
141
+ Tool: ItemSocketEvents[];
142
+ Other: ItemSocketEvents[];
143
+ Container: ItemSocketEvents[];
144
+ };
145
+ export declare const ActionsForLoot: {
146
+ Equipment: ItemSocketEvents[];
147
+ Consumable: ItemSocketEvents[];
148
+ CraftMaterial: ItemSocketEvents[];
149
+ Tool: ItemSocketEvents[];
150
+ Other: ItemSocketEvents[];
151
+ };
152
+ export declare const ActionsForEquipmentSet: {
153
+ Equipment: ItemSocketEvents[];
154
+ Container: ItemSocketEvents[];
155
+ };
156
+ export declare const ActionsForMapContainer: {
157
+ Equipment: ItemSocketEvents[];
158
+ Consumable: ItemSocketEvents[];
159
+ CraftMaterial: ItemSocketEvents[];
160
+ Tool: ItemSocketEvents[];
161
+ Other: ItemSocketEvents[];
162
+ };
163
+ export interface IPayloadProps {
164
+ item: IItem | null;
165
+ actionType: ItemSocketEvents | string;
166
+ }
167
+ export interface IEquipItemPayload {
168
+ itemId: string;
169
+ itemContainerId: string;
170
+ }
171
+ export interface IUnequipItemPayload {
172
+ itemId: string;
173
+ }
174
+ export interface IEquipmentAndInventoryUpdatePayload {
175
+ equipment: IEquipmentSet;
176
+ inventory: IItemContainer;
177
+ }
178
+ export declare type Direction = "down" | "up" | "left" | "right" | "down_right" | "down_left" | "up_right" | "up_left";
179
+ export interface IRangedAttack {
180
+ attackerId: string;
181
+ targetId: string;
182
+ direction: Direction;
183
+ ammoKey?: string;
184
+ type?: string;
185
+ }
186
+ export {};
187
187
  //# sourceMappingURL=item.types.d.ts.map
@@ -1,108 +1,108 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionsForMapContainer = exports.ActionsForEquipmentSet = exports.ActionsForLoot = exports.ActionsForInventory = 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["Legs"] = "Legs";
23
- ItemSubType["Axe"] = "Axe";
24
- ItemSubType["Boot"] = "Boot";
25
- ItemSubType["Bow"] = "Bow";
26
- ItemSubType["Food"] = "Food";
27
- ItemSubType["Glove"] = "Glove";
28
- ItemSubType["Helmet"] = "Helmet";
29
- ItemSubType["Magic"] = "Magic";
30
- ItemSubType["Potion"] = "Potion";
31
- ItemSubType["Shield"] = "Shield";
32
- ItemSubType["Spear"] = "Spear";
33
- ItemSubType["Staff"] = "Staff";
34
- ItemSubType["Sword"] = "Sword";
35
- ItemSubType["Other"] = "Other";
36
- ItemSubType["DeadBody"] = "DeadBody";
37
- ItemSubType["Dagger"] = "Dagger";
38
- ItemSubType["Mace"] = "Mace";
39
- })(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
40
- var ItemSlotType;
41
- (function (ItemSlotType) {
42
- ItemSlotType["Head"] = "Head";
43
- ItemSlotType["Neck"] = "Neck";
44
- ItemSlotType["Torso"] = "Torso";
45
- ItemSlotType["LeftHand"] = "LeftHand";
46
- ItemSlotType["RightHand"] = "RightHand";
47
- ItemSlotType["Waist"] = "Waist";
48
- ItemSlotType["Legs"] = "Legs";
49
- ItemSlotType["Feet"] = "Feet";
50
- ItemSlotType["Ring"] = "Ring";
51
- ItemSlotType["Accessory"] = "Accessory";
52
- ItemSlotType["Inventory"] = "Inventory";
53
- })(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
54
- var ItemSocketEvents;
55
- (function (ItemSocketEvents) {
56
- ItemSocketEvents["Update"] = "Update";
57
- ItemSocketEvents["Look"] = "Look";
58
- ItemSocketEvents["Equip"] = "Equip";
59
- ItemSocketEvents["Unequip"] = "Unequip";
60
- ItemSocketEvents["Pickup"] = "Pickup";
61
- ItemSocketEvents["Drop"] = "Drop";
62
- ItemSocketEvents["Use"] = "Use";
63
- ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
64
- ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
65
- ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
66
- ItemSocketEvents["ContainerRead"] = "ContainerRead";
67
- ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
68
- ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
69
- ItemSocketEvents["RangedAttack"] = "RangedAttack";
70
- })(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
71
- exports.ItemSocketEventsDisplayLabels = {
72
- [ItemSocketEvents.GetItemInfo]: "Look",
73
- [ItemSocketEvents.ContainerTransfer]: "Transfer",
74
- [ItemSocketEvents.Equip]: "Equip",
75
- [ItemSocketEvents.Unequip]: "Unequip",
76
- [ItemSocketEvents.Pickup]: "Pickup",
77
- [ItemSocketEvents.Drop]: "Drop",
78
- [ItemSocketEvents.Use]: "Use",
79
- [ItemSocketEvents.ContainerOpen]: "Open",
80
- [ItemSocketEvents.ContainerRead]: "Read",
81
- };
82
- exports.ActionsForInventory = {
83
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
84
- Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
85
- CraftMaterial: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
86
- Tool: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
87
- Other: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.ReadItemInfo],
88
- Container: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen]
89
- };
90
- exports.ActionsForLoot = {
91
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
92
- Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
93
- CraftMaterial: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
94
- Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
95
- Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
96
- };
97
- exports.ActionsForEquipmentSet = {
98
- Equipment: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.Unequip],
99
- Container: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen],
100
- };
101
- exports.ActionsForMapContainer = {
102
- Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
103
- Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
104
- CraftMaterial: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
105
- Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
106
- Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
107
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ActionsForMapContainer = exports.ActionsForEquipmentSet = exports.ActionsForLoot = exports.ActionsForInventory = 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["Legs"] = "Legs";
23
+ ItemSubType["Axe"] = "Axe";
24
+ ItemSubType["Boot"] = "Boot";
25
+ ItemSubType["Bow"] = "Bow";
26
+ ItemSubType["Food"] = "Food";
27
+ ItemSubType["Glove"] = "Glove";
28
+ ItemSubType["Helmet"] = "Helmet";
29
+ ItemSubType["Magic"] = "Magic";
30
+ ItemSubType["Potion"] = "Potion";
31
+ ItemSubType["Shield"] = "Shield";
32
+ ItemSubType["Spear"] = "Spear";
33
+ ItemSubType["Staff"] = "Staff";
34
+ ItemSubType["Sword"] = "Sword";
35
+ ItemSubType["Other"] = "Other";
36
+ ItemSubType["DeadBody"] = "DeadBody";
37
+ ItemSubType["Dagger"] = "Dagger";
38
+ ItemSubType["Mace"] = "Mace";
39
+ })(ItemSubType = exports.ItemSubType || (exports.ItemSubType = {}));
40
+ var ItemSlotType;
41
+ (function (ItemSlotType) {
42
+ ItemSlotType["Head"] = "Head";
43
+ ItemSlotType["Neck"] = "Neck";
44
+ ItemSlotType["Torso"] = "Torso";
45
+ ItemSlotType["LeftHand"] = "LeftHand";
46
+ ItemSlotType["RightHand"] = "RightHand";
47
+ ItemSlotType["Waist"] = "Waist";
48
+ ItemSlotType["Legs"] = "Legs";
49
+ ItemSlotType["Feet"] = "Feet";
50
+ ItemSlotType["Ring"] = "Ring";
51
+ ItemSlotType["Accessory"] = "Accessory";
52
+ ItemSlotType["Inventory"] = "Inventory";
53
+ })(ItemSlotType = exports.ItemSlotType || (exports.ItemSlotType = {}));
54
+ var ItemSocketEvents;
55
+ (function (ItemSocketEvents) {
56
+ ItemSocketEvents["Update"] = "Update";
57
+ ItemSocketEvents["Look"] = "Look";
58
+ ItemSocketEvents["Equip"] = "Equip";
59
+ ItemSocketEvents["Unequip"] = "Unequip";
60
+ ItemSocketEvents["Pickup"] = "Pickup";
61
+ ItemSocketEvents["Drop"] = "Drop";
62
+ ItemSocketEvents["Use"] = "Use";
63
+ ItemSocketEvents["GetItemInfo"] = "GetItemInfo";
64
+ ItemSocketEvents["ReadItemInfo"] = "ReadItemInfo";
65
+ ItemSocketEvents["ContainerOpen"] = "ContainerOpen";
66
+ ItemSocketEvents["ContainerRead"] = "ContainerRead";
67
+ ItemSocketEvents["ContainerTransfer"] = "ContainerTransfer";
68
+ ItemSocketEvents["EquipmentAndInventoryUpdate"] = "EquipmentAndInventoryUpdate";
69
+ ItemSocketEvents["RangedAttack"] = "RangedAttack";
70
+ })(ItemSocketEvents = exports.ItemSocketEvents || (exports.ItemSocketEvents = {}));
71
+ exports.ItemSocketEventsDisplayLabels = {
72
+ [ItemSocketEvents.GetItemInfo]: "Look",
73
+ [ItemSocketEvents.ContainerTransfer]: "Transfer",
74
+ [ItemSocketEvents.Equip]: "Equip",
75
+ [ItemSocketEvents.Unequip]: "Unequip",
76
+ [ItemSocketEvents.Pickup]: "Pickup",
77
+ [ItemSocketEvents.Drop]: "Drop",
78
+ [ItemSocketEvents.Use]: "Use",
79
+ [ItemSocketEvents.ContainerOpen]: "Open",
80
+ [ItemSocketEvents.ContainerRead]: "Read",
81
+ };
82
+ exports.ActionsForInventory = {
83
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
84
+ Consumable: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
85
+ CraftMaterial: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
86
+ Tool: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop],
87
+ Other: [ItemSocketEvents.Use, ItemSocketEvents.GetItemInfo, ItemSocketEvents.ReadItemInfo],
88
+ Container: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen]
89
+ };
90
+ exports.ActionsForLoot = {
91
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
92
+ Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
93
+ CraftMaterial: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
94
+ Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
95
+ Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
96
+ };
97
+ exports.ActionsForEquipmentSet = {
98
+ Equipment: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.Unequip],
99
+ Container: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Drop, ItemSocketEvents.ContainerOpen],
100
+ };
101
+ exports.ActionsForMapContainer = {
102
+ Equipment: [ItemSocketEvents.Equip, ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
103
+ Consumable: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
104
+ CraftMaterial: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
105
+ Tool: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
106
+ Other: [ItemSocketEvents.GetItemInfo, ItemSocketEvents.Pickup],
107
+ };
108
108
  //# sourceMappingURL=item.types.js.map