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); }
public InventoryResult GetInventory(InventoryContainerId type) { return(rd.GetInventory(type)); }
public InventoryContainer(List <InventoryItem> items, InventoryContainerOffset ict, InventoryContainerId cid) { InventoryItems = items; ContainerOffset = ict; ContainerId = cid; }
public InventoryContainer(InventoryContainerOffset ict, InventoryContainerId cid) : this(new List <InventoryItem>(), ict, cid) { }