File structure

This commit is contained in:
2022-03-12 03:35:35 +03:00
parent dcb3c2102e
commit 1e397af280
41 changed files with 1314 additions and 223 deletions

15
gather/src/items/Item.js Normal file
View File

@@ -0,0 +1,15 @@
const Part = require('./Part')
module.exports = class Item {
constructor (name) {
this.name = name
this.set = new Part(name, 'set')
this.parts = []
this.addPart('blueprint')
}
addPart (part, amount) {
this.parts.push(new Part(this.name, part, amount))
}
}