--- /dev/null
+var Y = require('Y').Y
+, evt = require('evt')
+, Bag = require('tanks/inventory/bag').Bag
+,
+
+EquipSlot =
+exports['EquipSlot'] =
+Bag.subclass('EquipSlot', {
+
+ /// Setup ///
+ hasUI : true,
+ isDraggable : true,
+ equipsContents : true,
+ max : 1,
+ cols : 10,
+ reqs : null,
+ // highlightIconOnOpen : true, // Whether to highlight the inventory icon when bag is open
+
+ /// Bookkeeping ///
+ bagName : 'equip-slot',
+ ui : null, // ContainerUI
+
+
+ init : function initEquipSlot(name, inventory, player, options){
+ this.inventory = inventory;
+ this._layerId = name+'_slot';
+ Bag.init.call(this, player, name, options);
+ this.showUI();
+ if (this.ui) this.ui.layer.addClass(name+' equipslot bag');
+ }
+
+})
+;