Esempio n. 1
0
 public static void WriteModableItemWithQuantityData(BinaryWriter writer, ItemData.ModableItemWithQuantityData data)
 {
     writer.Write(data.Quantity);
     writer.Write(data.TdbId1);
     writer.Write(data.Unknown2);
     writer.Write(data.Unknown3);
     WriteItemModData(writer, data.RootNode);
 }
Esempio n. 2
0
        public static ItemData.ModableItemWithQuantityData ReadModableItemWithQuantityData(BinaryReader reader)
        {
            var result = new ItemData.ModableItemWithQuantityData();

            result.Quantity = reader.ReadUInt32();
            var modItem = ReadModableItemData(reader);

            result.TdbId1   = modItem.TdbId1;
            result.Unknown2 = modItem.Unknown2;
            result.Unknown3 = modItem.Unknown3;
            result.RootNode = modItem.RootNode;

            return(result);
        }