Ejemplo n.º 1
0
        internal InventoryResult GetInventory(InventoryContainerId containerType)
        {
            var type   = InventoryContainerTypeConverter.ToOffset((int)containerType);
            var result = new InventoryResult(new List <InventoryContainer>(), -1);

            _szItemInfo          = Signature.PointerLib[PointerType.Inventory].DtStep;
            _inventoryPointerMap = _gs.GetPointer(PointerType.Inventory);

            const int offset = (int)InventoryContainerOffset.LAST_AVAILABLE * 24;
            var       arr    = _gs.Reader.Read(_inventoryPointerMap, offset + 10);

            result.InventoryContainers.Add(GetInventoryItems(arr, type));

            return(result);
        }
Ejemplo n.º 2
0
 public InventoryResult GetInventory(InventoryContainerId type)
 {
     return(rd.GetInventory(type));
 }
Ejemplo n.º 3
0
 public InventoryContainer(List <InventoryItem> items, InventoryContainerOffset ict, InventoryContainerId cid)
 {
     InventoryItems  = items;
     ContainerOffset = ict;
     ContainerId     = cid;
 }
Ejemplo n.º 4
0
 public InventoryContainer(InventoryContainerOffset ict, InventoryContainerId cid) : this(new List <InventoryItem>(), ict, cid)
 {
 }