AlbLib.SaveGame.ItemStack.ItemStack C# (CSharp) Method

ItemStack() public method

Loads an item stack from byte array.
public ItemStack ( byte data, int offset ) : System
data byte /// Byte array containing item informations. ///
offset int /// Offset where informations are located. ///
return System
        public ItemStack(byte[] data, int offset)
        {
            Count = data[offset];
            Charges = data[offset+1];
            NumRecharged = data[offset+2];
            Flags = (ItemFlags)data[offset+3];
            Type = BitConverter.ToInt16(data, offset+4);
        }

Same methods

ItemStack::ItemStack ( byte count, short type ) : System