Initial implementation of the InventoryController
This commit is contained in:
@@ -21,6 +21,7 @@ module.exports = class CraftingTable extends BaseModel
|
||||
attributes.includingTools ?= false
|
||||
attributes.have ?= new Inventory
|
||||
attributes.plan ?= null
|
||||
attributes.want ?= new Inventory
|
||||
super attributes, options
|
||||
|
||||
# Public Methods ###############################################################################
|
||||
|
||||
@@ -44,6 +44,7 @@ module.exports = class Inventory extends BaseModel
|
||||
clear: ->
|
||||
@_stacks = {}
|
||||
@_slugs = []
|
||||
@trigger 'change', self
|
||||
|
||||
clone: ->
|
||||
inventory = new Inventory
|
||||
|
||||
Reference in New Issue
Block a user