This class handels the gridlayout of an stash. Possible usecases are the inventory backpack, shared stash, traders stash,... Stash is organized by adding an item to EVERY slot it fills
Inheritance: IRevealable
Ejemplo n.º 1
0
 public Vendor(World world, int snoId, Dictionary<int, TagMapEntry> tags)
     : base(world, snoId, tags)
 {
     this.Attributes[GameAttribute.MinimapActive] = true;
     _vendorGrid = new InventoryGrid(this, 1, 20, (int) EquipmentSlotId.Vendor);
     PopulateItems();
 }
Ejemplo n.º 2
0
 public Inventory(Player owner)
 {
     this._owner = owner;
     this._equipment = new Equipment(owner);
     this._inventoryGrid = new InventoryGrid(owner, owner.Attributes[GameAttribute.Backpack_Slots]/10, 10);
     this._stashGrid = new InventoryGrid(owner, owner.Attributes[GameAttribute.Shared_Stash_Slots]/7, 7, (int) EquipmentSlotId.Stash);
 }
Ejemplo n.º 3
0
 public Inventory(Player owner)
 {
     this._owner = owner;
     this.Items = new Dictionary<uint, Item>();
     this._equipment = new Equipment(owner);
     this._inventoryGrid = new InventoryGrid(owner, owner.Attributes[GameAttribute.Backpack_Slots]/10, 10);
     this._stashGrid = new InventoryGrid(owner, owner.Attributes[GameAttribute.Shared_Stash_Slots] / 7, 7, (int)EquipmentSlotId.Stash);
     this._skillSocketRunes = new uint[6];
 }