Stardew_Valley_Mods/GeneralMods/SaveAnywhere/Animal_Utilities.cs

34 lines
873 B
C#
Raw Normal View History

2017-07-28 08:28:39 +08:00
using System.IO;
2017-07-28 08:28:39 +08:00
namespace Omegasis.SaveAnywhere
{
class Animal_Utilities
{
public static void save_animal_info()
{
2017-07-28 08:28:39 +08:00
Mod_Core.animal_path = Path.Combine(Mod_Core.player_path, "Animals");
if (!Directory.Exists(Mod_Core.animal_path))
{
2017-07-28 08:28:39 +08:00
Directory.CreateDirectory(Mod_Core.animal_path);
}
2017-07-28 08:28:39 +08:00
Horse_Utility.Save_Horse_Info();
Pet_Utilities.save_pet_info();
}
public static void load_animal_info()
{
2017-07-28 08:28:39 +08:00
Mod_Core.animal_path = Path.Combine(Mod_Core.player_path, "Animals");
if (!Directory.Exists(Mod_Core.animal_path))
{
2017-07-28 08:28:39 +08:00
Directory.CreateDirectory(Mod_Core.animal_path);
}
2017-07-28 08:28:39 +08:00
Horse_Utility.Load_Horse_Info();
Pet_Utilities.Load_pet_Info();
}
}
}