@rpg-engine/long-bow 0.1.794 → 0.2.2

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 (129) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +181 -181
  3. package/dist/components/Button.d.ts +1 -0
  4. package/dist/components/Equipment/EquipmentSet.d.ts +5 -3
  5. package/dist/components/Item/Cards/ItemTooltip.d.ts +6 -0
  6. package/dist/components/Item/Inventory/ItemContainer.d.ts +4 -6
  7. package/dist/components/Item/Inventory/ItemContainerTypes.d.ts +6 -0
  8. package/dist/components/Item/Inventory/ItemSlot.d.ts +5 -9
  9. package/dist/components/Item/Inventory/itemContainerHelper.d.ts +2 -7
  10. package/dist/components/PropertySelect/PropertySelect.d.ts +12 -0
  11. package/dist/components/QuestInfo/QuestInfo.d.ts +14 -0
  12. package/dist/components/RelativeListMenu.d.ts +13 -0
  13. package/dist/index.d.ts +1 -1
  14. package/dist/long-bow.cjs.development.js +748 -1194
  15. package/dist/long-bow.cjs.development.js.map +1 -1
  16. package/dist/long-bow.cjs.production.min.js +1 -1
  17. package/dist/long-bow.cjs.production.min.js.map +1 -1
  18. package/dist/long-bow.esm.js +748 -1196
  19. package/dist/long-bow.esm.js.map +1 -1
  20. package/dist/mocks/equipmentSet.mocks.d.ts +2 -2
  21. package/dist/stories/Button.stories.d.ts +5 -0
  22. package/dist/stories/Chat.stories.d.ts +5 -0
  23. package/dist/stories/CheckButton.stories.d.ts +5 -0
  24. package/dist/stories/DraggableContainer.stories.d.ts +5 -0
  25. package/dist/stories/Dropdown.stories.d.ts +5 -0
  26. package/dist/stories/EquipmentSet.stories.d.ts +5 -0
  27. package/dist/stories/ItemContainer.stories.d.ts +5 -0
  28. package/dist/stories/ListMenu.stories.d.ts +5 -0
  29. package/dist/stories/Multitab.stories.d.ts +6 -0
  30. package/dist/stories/NPCDialog.stories.d.ts +7 -0
  31. package/dist/stories/ProgressBar.stories.d.ts +8 -0
  32. package/dist/stories/PropertySelect.stories.d.ts +5 -0
  33. package/dist/stories/QuestInfo.stories.d.ts +5 -0
  34. package/dist/stories/RPGUIContainers.stories.d.ts +5 -0
  35. package/dist/stories/RadioButton.stories.d.ts +5 -0
  36. package/dist/stories/RangeSlider.stories.d.ts +5 -0
  37. package/dist/stories/ScrollList.stories.d.ts +5 -0
  38. package/dist/stories/SimpleProgressBar.stories.d.ts +5 -0
  39. package/dist/stories/SkillProgressBar.stories.d.ts +5 -0
  40. package/dist/stories/SkillsContainer.stories.d.ts +5 -0
  41. package/dist/stories/Text.stories.d.ts +7 -0
  42. package/package.json +98 -96
  43. package/src/components/Abstractions/SlotsContainer.tsx +42 -42
  44. package/src/components/Button.tsx +30 -29
  45. package/src/components/Chat/Chat.tsx +193 -193
  46. package/src/components/CheckButton.tsx +65 -65
  47. package/src/components/DraggableContainer.tsx +150 -150
  48. package/src/components/Dropdown.tsx +57 -57
  49. package/src/components/Equipment/EquipmentSet.tsx +138 -180
  50. package/src/components/Input.tsx +11 -11
  51. package/src/components/Item/Cards/ItemTooltip.tsx +32 -0
  52. package/src/components/Item/Inventory/ItemContainer.tsx +68 -113
  53. package/src/components/Item/Inventory/ItemContainerTypes.ts +6 -0
  54. package/src/components/Item/Inventory/ItemSlot.tsx +212 -158
  55. package/src/components/Item/Inventory/itemContainerHelper.ts +146 -81
  56. package/src/components/ListMenu.tsx +65 -65
  57. package/src/components/Multitab/Tab.tsx +57 -57
  58. package/src/components/Multitab/TabBody.tsx +13 -13
  59. package/src/components/Multitab/TabsContainer.tsx +97 -97
  60. package/src/components/NPCDialog/NPCDialog.tsx +145 -145
  61. package/src/components/NPCDialog/NPCDialogText.tsx +53 -53
  62. package/src/components/NPCDialog/QuestionDialog/QuestionDialog.tsx +237 -242
  63. package/src/components/ProgressBar.tsx +91 -91
  64. package/src/components/PropertySelect/PropertySelect.tsx +101 -0
  65. package/src/components/PropertySelect/img/ui-arrows/arrow01-left-clicked.png +0 -0
  66. package/src/components/PropertySelect/img/ui-arrows/arrow01-left.png +0 -0
  67. package/src/components/PropertySelect/img/ui-arrows/arrow01-right-clicked.png +0 -0
  68. package/src/components/PropertySelect/img/ui-arrows/arrow01-right.png +0 -0
  69. package/src/components/PropertySelect/img/ui-arrows/arrow02-left-clicked.png +0 -0
  70. package/src/components/PropertySelect/img/ui-arrows/arrow02-left.png +0 -0
  71. package/src/components/PropertySelect/img/ui-arrows/arrow02-right-clicked.png +0 -0
  72. package/src/components/PropertySelect/img/ui-arrows/arrow02-right.png +0 -0
  73. package/src/components/QuestInfo/QuestInfo.tsx +143 -0
  74. package/src/components/QuestInfo/img/default.png +0 -0
  75. package/src/components/RPGUIContainer.tsx +47 -47
  76. package/src/components/RPGUIRoot.tsx +14 -14
  77. package/src/components/RadioButton.tsx +53 -53
  78. package/src/components/RangeSlider.tsx +68 -68
  79. package/src/components/RelativeListMenu.tsx +83 -0
  80. package/src/components/ScrollList.tsx +77 -77
  81. package/src/components/SimpleProgressBar.tsx +62 -62
  82. package/src/components/SkillProgressBar.tsx +123 -124
  83. package/src/components/SkillsContainer.tsx +196 -235
  84. package/src/components/TextArea.tsx +11 -11
  85. package/src/components/Truncate.tsx +25 -25
  86. package/src/components/shared/Column.tsx +16 -16
  87. package/src/components/shared/SpriteFromAtlas.tsx +99 -99
  88. package/src/components/typography/DynamicText.tsx +49 -49
  89. package/src/constants/uiColors.ts +10 -10
  90. package/src/hooks/useEventListener.ts +21 -21
  91. package/src/hooks/useOutsideAlerter.ts +25 -25
  92. package/src/index.tsx +25 -25
  93. package/src/libs/StringHelpers.ts +3 -3
  94. package/src/mocks/atlas/icons/icons.json +735 -303
  95. package/src/mocks/atlas/icons/icons.png +0 -0
  96. package/src/mocks/atlas/items/items.json +5215 -5195
  97. package/src/mocks/atlas/items/items.png +0 -0
  98. package/src/mocks/equipmentSet.mocks.ts +347 -347
  99. package/src/mocks/itemContainer.mocks.ts +281 -249
  100. package/src/mocks/skills.mocks.ts +122 -122
  101. package/src/stories/Button.stories.tsx +36 -0
  102. package/src/stories/Chat.stories.tsx +170 -0
  103. package/src/stories/CheckButton.stories.tsx +48 -0
  104. package/src/stories/DraggableContainer.stories.tsx +28 -0
  105. package/src/stories/Dropdown.stories.tsx +46 -0
  106. package/src/stories/EquipmentSet.stories.tsx +51 -0
  107. package/src/stories/ItemContainer.stories.tsx +51 -0
  108. package/src/stories/ListMenu.stories.tsx +56 -0
  109. package/src/stories/Multitab.stories.tsx +51 -0
  110. package/src/stories/NPCDialog.stories.tsx +130 -0
  111. package/src/stories/ProgressBar.stories.tsx +23 -0
  112. package/src/stories/PropertySelect.stories.tsx +41 -0
  113. package/src/stories/QuestInfo.stories.tsx +76 -0
  114. package/src/stories/RPGUIContainers.stories.tsx +42 -0
  115. package/src/stories/RadioButton.stories.tsx +49 -0
  116. package/src/stories/RangeSlider.stories.tsx +60 -0
  117. package/src/stories/ScrollList.stories.tsx +85 -0
  118. package/src/stories/SimpleProgressBar.stories.tsx +22 -0
  119. package/src/stories/SkillProgressBar.stories.tsx +30 -0
  120. package/src/stories/SkillsContainer.stories.tsx +31 -0
  121. package/src/stories/Text.stories.tsx +42 -0
  122. package/src/types/eventTypes.ts +4 -4
  123. package/src/types/index.d.ts +2 -2
  124. package/dist/components/Item/Cards/ItemCard.d.ts +0 -9
  125. package/dist/components/shared/SpriteIcon.d.ts +0 -9
  126. package/dist/components/store/UI.store.d.ts +0 -38
  127. package/src/components/Item/Cards/ItemCard.tsx +0 -36
  128. package/src/components/shared/SpriteIcon.tsx +0 -67
  129. package/src/components/store/UI.store.ts +0 -232
@@ -1,249 +1,281 @@
1
- import {
2
- IItem,
3
- IItemContainer,
4
- ItemSlotType,
5
- ItemSubType,
6
- ItemType,
7
- } from '@rpg-engine/shared';
8
-
9
- export const items: IItem[] = [
10
- {
11
- _id: '629acef1c7c8e8002ff60736',
12
- type: ItemType.Weapon,
13
- subType: ItemSubType.Sword,
14
- textureAtlas: 'items',
15
- allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
16
- maxStackSize: 1,
17
- isUsable: false,
18
- isStorable: true,
19
- layer: 1,
20
- isItemContainer: false,
21
- isSolid: false,
22
- key: 'short-sword-66',
23
- texturePath: 'swords/short-sword.png',
24
- textureKey: 'short-sword',
25
- name: 'Short Sword',
26
- description:
27
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
28
- attack: 5,
29
- defense: 0,
30
- weight: 10,
31
- tiledId: 66,
32
- x: 320,
33
- y: 144,
34
- scene: 'MainScene',
35
- fullDescription:
36
- 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
37
- isEquipable: true,
38
- isStackable: false,
39
- createdAt: '2022-06-04T03:18:09.335Z',
40
- updatedAt: '2022-06-04T18:16:49.056Z',
41
- },
42
- {
43
- _id: '629acef1c7c8e8002ff73564',
44
- type: ItemType.Weapon,
45
- subType: ItemSubType.Bow,
46
- textureAtlas: 'items',
47
- allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
48
- maxStackSize: 1,
49
- isUsable: false,
50
- isStorable: true,
51
- layer: 1,
52
- isItemContainer: false,
53
- isSolid: false,
54
- key: 'board-sword-22',
55
- texturePath: 'bows/bow.png',
56
- textureKey: 'bow',
57
- name: 'Bow',
58
- description: 'You see a broad bow.',
59
- attack: 7,
60
- defense: 3,
61
- weight: 13,
62
- tiledId: 67,
63
- x: 320,
64
- y: 144,
65
- scene: 'MainScene',
66
- fullDescription: 'You see a board bow.',
67
- isEquipable: true,
68
- isStackable: false,
69
- createdAt: '2022-06-04T03:18:09.335Z',
70
- updatedAt: '2022-06-04T18:16:49.056Z',
71
- },
72
- {
73
- _id: '629acef1c7c8e8002ff60723',
74
- type: ItemType.Consumable,
75
- subType: ItemSubType.Potion,
76
- textureAtlas: 'items',
77
- allowedEquipSlotType: [ItemSlotType.Inventory],
78
- isEquipable: false,
79
- isStackable: true,
80
- maxStackSize: 99,
81
- stackQty: 3,
82
- isUsable: true,
83
- isStorable: true,
84
- layer: 1,
85
- isItemContainer: false,
86
- isSolid: false,
87
- key: 'board-sword-22',
88
- texturePath: 'potions/greater-life-potion.png',
89
- textureKey: 'greater-life-potion',
90
- name: 'Greater Life Potion',
91
- description: 'Recover your life',
92
- attack: 7,
93
- defense: 3,
94
- weight: 13,
95
- tiledId: 67,
96
- x: 320,
97
- y: 144,
98
- scene: 'MainScene',
99
- fullDescription: 'Recover your life',
100
- createdAt: '2022-06-04T03:18:09.335Z',
101
- updatedAt: '2022-06-04T18:16:49.056Z',
102
- },
103
- {
104
- _id: '629acek4j7c8e8002ff60034',
105
- type: ItemType.Consumable,
106
- subType: ItemSubType.Food,
107
- textureAtlas: 'items',
108
- allowedEquipSlotType: [ItemSlotType.Inventory],
109
- isEquipable: false,
110
- isStackable: true,
111
- maxStackSize: 99,
112
- stackQty: 13,
113
- isUsable: true,
114
- isStorable: true,
115
- layer: 1,
116
- isItemContainer: false,
117
- isSolid: false,
118
- key: 'board-sword-22',
119
- texturePath: 'potions/mana-potion.png',
120
- textureKey: 'mana-potion',
121
- name: 'Mana Potion',
122
- description: 'Recover your mana',
123
- attack: 7,
124
- defense: 3,
125
- weight: 13,
126
- tiledId: 67,
127
- x: 320,
128
- y: 144,
129
- scene: 'MainScene',
130
- fullDescription: 'Recover your mana',
131
- createdAt: '2022-06-04T03:18:09.335Z',
132
- updatedAt: '2022-06-04T18:16:49.056Z',
133
- },
134
- {
135
- _id: '629acek4j7c8e8002ff60034',
136
- type: ItemType.Consumable,
137
- subType: ItemSubType.Accessory,
138
- textureAtlas: 'items',
139
- allowedEquipSlotType: [ItemSlotType.Inventory],
140
- isEquipable: false,
141
- isStackable: true,
142
- maxStackSize: 999,
143
- stackQty: 171,
144
- isUsable: true,
145
- isStorable: true,
146
- layer: 1,
147
- isItemContainer: false,
148
- isSolid: false,
149
- key: 'board-sword-22',
150
- texturePath: 'others/silver-key.png',
151
- textureKey: 'silver-key',
152
- name: 'Key',
153
- description: 'Open the gates, but use the key!',
154
- attack: 7,
155
- defense: 3,
156
- weight: 13,
157
- tiledId: 67,
158
- x: 320,
159
- y: 144,
160
- scene: 'MainScene',
161
- fullDescription: 'Key to open things',
162
- createdAt: '2022-06-04T03:18:09.335Z',
163
- updatedAt: '2022-06-04T18:16:49.056Z',
164
- },
165
- {
166
- _id: '392acek4j7c8e8002ff60403',
167
- type: ItemType.CraftMaterial,
168
- subType: ItemSubType.Other,
169
- textureAtlas: 'items',
170
- allowedEquipSlotType: [ItemSlotType.Inventory],
171
- isEquipable: false,
172
- isStackable: true,
173
- maxStackSize: 999,
174
- stackQty: 32,
175
- isUsable: false,
176
- isStorable: true,
177
- layer: 1,
178
- isItemContainer: false,
179
- isSolid: false,
180
- key: 'rune-22',
181
- texturePath: 'magics/rune.png',
182
- textureKey: 'rune',
183
- name: 'Some Shard',
184
- description: 'Use this to craft things!',
185
- attack: 7,
186
- defense: 3,
187
- weight: 13,
188
- tiledId: 67,
189
- x: 320,
190
- y: 144,
191
- scene: 'MainScene',
192
- fullDescription: 'Somes shard, some crafts.',
193
- createdAt: '2022-06-04T03:18:09.335Z',
194
- updatedAt: '2022-06-04T18:16:49.056Z',
195
- },
196
- // {
197
- // _id: '592acek0e3c8e8002ff60343',
198
- // type: ItemType.Other,
199
- // subType: ItemSubType.Other,
200
- // textureAtlas: 'items',
201
- // allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
202
- // isEquipable: false,
203
- // isStackable: true,
204
- // maxStackSize: 999,
205
- // stackQty: 32,
206
- // isUsable: false,
207
- // isStorable: true,
208
- // layer: 1,
209
- // isItemContainer: false,
210
- // isSolid: false,
211
- // key: 'hatchet-22',
212
- // texturePath: 'axes/hatchet.png',
213
- // textureKey: 'hatchet',
214
- // name: 'Axe',
215
- // description: 'Chop chop.',
216
- // attack: 7,
217
- // defense: 3,
218
- // weight: 13,
219
- // tiledId: 67,
220
- // x: 320,
221
- // y: 144,
222
- // scene: 'MainScene',
223
- // fullDescription: 'Use this axe to chop wood and stuffs.',
224
- // createdAt: '2022-06-04T03:18:09.335Z',
225
- // updatedAt: '2022-06-04T18:16:49.056Z',
226
- // },
227
- ];
228
-
229
- export const itemContainerMock: IItemContainer = {
230
- _id: '629ba0b6fe3f43002f58f23b',
231
- name: 'Item Container',
232
- owner: '629ba0b6fe3f43002f58f23b',
233
- slotQty: 20,
234
- slots: {
235
- 0: items[0],
236
- 1: items[1],
237
- 2: items[2],
238
- 3: items[3],
239
- 4: items[4],
240
- 5: items[5],
241
- // 6: items[6],
242
- //remaining slots are considered null by default
243
- },
244
- allowedItemTypes: [],
245
- parentItem: '629ba0b6fe3f43002f58f239',
246
- isEmpty: false,
247
- createdAt: '2022-06-04T18:13:10.581Z',
248
- updatedAt: '2022-06-04T18:13:10.581Z',
249
- };
1
+ import {
2
+ IItem,
3
+ IItemContainer,
4
+ ItemSlotType,
5
+ ItemSubType,
6
+ ItemType
7
+ } from '@rpg-engine/shared';
8
+
9
+ export const items: IItem[] = [
10
+ {
11
+ _id: '629acef1c7c8e8002ff60736',
12
+ type: ItemType.Weapon,
13
+ subType: ItemSubType.Sword,
14
+ textureAtlas: 'items',
15
+ allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
16
+ maxStackSize: 1,
17
+ isUsable: false,
18
+ isStorable: true,
19
+ layer: 1,
20
+ isItemContainer: false,
21
+ isSolid: false,
22
+ key: 'short-sword-66',
23
+ texturePath: 'swords/short-sword.png',
24
+ textureKey: 'short-sword',
25
+ name: 'Short Sword',
26
+ description:
27
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
28
+ attack: 5,
29
+ defense: 0,
30
+ weight: 10,
31
+ tiledId: 66,
32
+ x: 320,
33
+ y: 144,
34
+ scene: 'MainScene',
35
+ fullDescription:
36
+ 'You see a short sword. It is a single-handed sword with a handle that just features a grip.',
37
+ isEquipable: true,
38
+ isStackable: false,
39
+ createdAt: '2022-06-04T03:18:09.335Z',
40
+ updatedAt: '2022-06-04T18:16:49.056Z',
41
+ },
42
+ {
43
+ _id: '629acef1c7c8e8002ff73564',
44
+ type: ItemType.Weapon,
45
+ subType: ItemSubType.Bow,
46
+ textureAtlas: 'items',
47
+ allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
48
+ maxStackSize: 1,
49
+ isUsable: false,
50
+ isStorable: true,
51
+ layer: 1,
52
+ isItemContainer: false,
53
+ isSolid: false,
54
+ key: 'board-sword-22',
55
+ texturePath: 'bows/bow.png',
56
+ textureKey: 'bow',
57
+ name: 'Bow',
58
+ description: 'You see a broad bow.',
59
+ attack: 7,
60
+ defense: 3,
61
+ weight: 13,
62
+ tiledId: 67,
63
+ x: 320,
64
+ y: 144,
65
+ scene: 'MainScene',
66
+ fullDescription: 'You see a board bow.',
67
+ isEquipable: true,
68
+ isStackable: false,
69
+ createdAt: '2022-06-04T03:18:09.335Z',
70
+ updatedAt: '2022-06-04T18:16:49.056Z',
71
+ },
72
+ {
73
+ _id: '629acef1c7c8e8002ff60723',
74
+ type: ItemType.Consumable,
75
+ subType: ItemSubType.Potion,
76
+ textureAtlas: 'items',
77
+ allowedEquipSlotType: [ItemSlotType.Inventory],
78
+ isEquipable: false,
79
+ isStackable: true,
80
+ maxStackSize: 99,
81
+ stackQty: 3,
82
+ isUsable: true,
83
+ isStorable: true,
84
+ layer: 1,
85
+ isItemContainer: false,
86
+ isSolid: false,
87
+ key: 'board-sword-22',
88
+ texturePath: 'potions/greater-life-potion.png',
89
+ textureKey: 'greater-life-potion',
90
+ name: 'Greater Life Potion',
91
+ description: 'Recover your life',
92
+ attack: 7,
93
+ defense: 3,
94
+ weight: 13,
95
+ tiledId: 67,
96
+ x: 320,
97
+ y: 144,
98
+ scene: 'MainScene',
99
+ fullDescription: 'Recover your life',
100
+ createdAt: '2022-06-04T03:18:09.335Z',
101
+ updatedAt: '2022-06-04T18:16:49.056Z',
102
+ },
103
+ {
104
+ _id: '629acek4j7c8e8002ff60034',
105
+ type: ItemType.Consumable,
106
+ subType: ItemSubType.Food,
107
+ textureAtlas: 'items',
108
+ allowedEquipSlotType: [ItemSlotType.Inventory],
109
+ isEquipable: false,
110
+ isStackable: true,
111
+ maxStackSize: 99,
112
+ stackQty: 13,
113
+ isUsable: true,
114
+ isStorable: true,
115
+ layer: 1,
116
+ isItemContainer: false,
117
+ isSolid: false,
118
+ key: 'board-sword-22',
119
+ texturePath: 'potions/mana-potion.png',
120
+ textureKey: 'mana-potion',
121
+ name: 'Mana Potion',
122
+ description: 'Recover your mana',
123
+ attack: 7,
124
+ defense: 3,
125
+ weight: 13,
126
+ tiledId: 67,
127
+ x: 320,
128
+ y: 144,
129
+ scene: 'MainScene',
130
+ fullDescription: 'Recover your mana',
131
+ createdAt: '2022-06-04T03:18:09.335Z',
132
+ updatedAt: '2022-06-04T18:16:49.056Z',
133
+ },
134
+ {
135
+ _id: '629acek4j7c8e8002fg60034',
136
+ type: ItemType.Consumable,
137
+ subType: ItemSubType.Accessory,
138
+ textureAtlas: 'items',
139
+ allowedEquipSlotType: [ItemSlotType.Inventory],
140
+ isEquipable: false,
141
+ isStackable: true,
142
+ maxStackSize: 999,
143
+ stackQty: 171,
144
+ isUsable: true,
145
+ isStorable: true,
146
+ layer: 1,
147
+ isItemContainer: false,
148
+ isSolid: false,
149
+ key: 'board-sword-22',
150
+ texturePath: 'others/silver-key.png',
151
+ textureKey: 'silver-key',
152
+ name: 'Key',
153
+ description: 'Open the gates, but use the key!',
154
+ attack: 7,
155
+ defense: 3,
156
+ weight: 13,
157
+ tiledId: 67,
158
+ x: 320,
159
+ y: 144,
160
+ scene: 'MainScene',
161
+ fullDescription: 'Key to open things',
162
+ createdAt: '2022-06-04T03:18:09.335Z',
163
+ updatedAt: '2022-06-04T18:16:49.056Z',
164
+ },
165
+ {
166
+ _id: '392acek4j7c8e8002ff60403',
167
+ type: ItemType.CraftMaterial,
168
+ subType: ItemSubType.Other,
169
+ textureAtlas: 'items',
170
+ allowedEquipSlotType: [ItemSlotType.Inventory],
171
+ isEquipable: false,
172
+ isStackable: true,
173
+ maxStackSize: 999,
174
+ stackQty: 32,
175
+ isUsable: false,
176
+ isStorable: true,
177
+ layer: 1,
178
+ isItemContainer: false,
179
+ isSolid: false,
180
+ key: 'rune-22',
181
+ texturePath: 'magics/rune.png',
182
+ textureKey: 'rune',
183
+ name: 'Some Shard',
184
+ description: 'Use this to craft things!',
185
+ attack: 7,
186
+ defense: 3,
187
+ weight: 13,
188
+ tiledId: 67,
189
+ x: 320,
190
+ y: 144,
191
+ scene: 'MainScene',
192
+ fullDescription: 'Somes shard, some crafts.',
193
+ createdAt: '2022-06-04T03:18:09.335Z',
194
+ updatedAt: '2022-06-04T18:16:49.056Z',
195
+ },
196
+ // {
197
+ // _id: '592acek0e3c8e8002ff60343',
198
+ // type: ItemType.Other,
199
+ // subType: ItemSubType.Other,
200
+ // textureAtlas: 'items',
201
+ // allowedEquipSlotType: [ItemSlotType.LeftHand, ItemSlotType.RightHand],
202
+ // isEquipable: false,
203
+ // isStackable: true,
204
+ // maxStackSize: 999,
205
+ // stackQty: 32,
206
+ // isUsable: false,
207
+ // isStorable: true,
208
+ // layer: 1,
209
+ // isItemContainer: false,
210
+ // isSolid: false,
211
+ // key: 'hatchet-22',
212
+ // texturePath: 'axes/hatchet.png',
213
+ // textureKey: 'hatchet',
214
+ // name: 'Axe',
215
+ // description: 'Chop chop.',
216
+ // attack: 7,
217
+ // defense: 3,
218
+ // weight: 13,
219
+ // tiledId: 67,
220
+ // x: 320,
221
+ // y: 144,
222
+ // scene: 'MainScene',
223
+ // fullDescription: 'Use this axe to chop wood and stuffs.',
224
+ // createdAt: '2022-06-04T03:18:09.335Z',
225
+ // updatedAt: '2022-06-04T18:16:49.056Z',
226
+ // },
227
+ {
228
+ _id: '392acek4j7c8e8002ff60404',
229
+ type: ItemType.Container,
230
+ subType: ItemSubType.Other,
231
+ textureAtlas: 'items',
232
+ allowedEquipSlotType: [ItemSlotType.Inventory],
233
+ isEquipable: false,
234
+ isStackable: true,
235
+ maxStackSize: 999,
236
+ stackQty: 32,
237
+ isUsable: false,
238
+ isStorable: true,
239
+ layer: 1,
240
+ isItemContainer: true,
241
+ isSolid: false,
242
+ key: 'bag',
243
+ texturePath: 'containers/bag.png',
244
+ textureKey: 'bag',
245
+ name: 'Bag',
246
+ generateContainerSlots: 10,
247
+ description: 'You see a bag. It has made using leather and it has 10 total slots.',
248
+ attack: 7,
249
+ defense: 3,
250
+ weight: 13,
251
+ tiledId: 67,
252
+ x: 320,
253
+ y: 144,
254
+ scene: 'MainScene',
255
+ fullDescription: 'You see a bag. It has made using leather and it has 10 total slots.',
256
+ createdAt: '2022-06-04T03:18:09.335Z',
257
+ updatedAt: '2022-06-04T18:16:49.056Z',
258
+ }
259
+ ];
260
+
261
+ export const itemContainerMock: IItemContainer = {
262
+ _id: '629ba0b6fe3f43002f58f23b',
263
+ name: 'Item Container',
264
+ owner: '629ba0b6fe3f43002f58f23b',
265
+ slotQty: 20,
266
+ slots: {
267
+ 0: items[0],
268
+ 1: items[1],
269
+ 2: items[2],
270
+ 3: items[3],
271
+ 4: items[4],
272
+ 5: items[5],
273
+ 6: items[6],
274
+ //remaining slots are considered null by default
275
+ },
276
+ allowedItemTypes: [],
277
+ parentItem: '629ba0b6fe3f43002f58f239',
278
+ isEmpty: false,
279
+ createdAt: '2022-06-04T18:13:10.581Z',
280
+ updatedAt: '2022-06-04T18:13:10.581Z',
281
+ };