Ejemplo n.º 1
0
 /// <summary>
 /// Dumps all villager houses to the requested <see cref="path"/>.
 /// </summary>
 /// <param name="sav">Save Data to dump from</param>
 /// <param name="path">Path to dump to</param>
 public static void DumpVillagerHouses(this MainSave sav, string path)
 {
     for (int i = 0; i < MainSaveOffsets.VillagerCount; i++)
     {
         var v = sav.GetVillager(i);
         var h = sav.GetVillagerHouse(i);
         h.Dump(path, v);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Dumps all villagers in their decrypted state to the requested <see cref="path"/>.
 /// </summary>
 /// <param name="sav">Save Data to dump from</param>
 /// <param name="path">Path to dump to</param>
 public static void DumpVillagers(this MainSave sav, string path)
 {
     for (int i = 0; i < 10; i++)
     {
         var v    = sav.GetVillager(i);
         var name = GameInfo.Strings.GetVillager(v.InternalName);
         var dest = Path.Combine(path, $"{name}.nhv");
         File.WriteAllBytes(dest, v.Data);
     }
 }