Ejemplo n.º 1
0
 public byte[] Write()
 {
     using (var ms = new MemoryStream())
     {
         var bw = new BinaryWriterEx(false, ms);
         bw.WriteBytes(Data);
         bw.Position = 8;
         bw.WriteInt32(SteamID);
         bw.Position = 0x1098;
         bw.WriteBooleans(OccupiedSlots);
         for (int i = 0; i < 10; i++)
         {
             bw.Position = 0x10A2 + 0x22A * i;
             bw.WriteBytes(SlotData[i]);
         }
         return(bw.FinishBytes());
     }
 }