/// <summary>
 /// Read the wings in legacy mod settings.
 /// </summary>
 internal static int ReadWingsLegacy(ref Item wings, BinaryReader reader)
 {
     try {
         ItemIO.LoadLegacy(wings, reader, false, false);
         return(reader.ReadInt32());
     }
     catch (EndOfStreamException) {
         return(-1);
     }
 }
Esempio n. 2
0
		public override void LoadLegacy(BinaryReader reader)
		{
			int count = reader.ReadUInt16();
			for (int k = 0; k < count; k++)
			{
				var item = new Item();
				ItemIO.LoadLegacy(item, reader, true);
				AddItem(item);
			}
		}