public static void SaveBehaviorInfos() { string p_Default = Path.Combine(Publics.General.MyDataPath, p_BehaviorInfos); string p_Custom = Path.Combine(Publics.General.MyDataPath, p_BehaviorInfosCustom); BehaviorInfos.WriteToFile(p_Default); BehaviorInfosCustom.WriteToFile(p_Custom); }
public static void LoadBehaviorInfos() { if (!hasLoadedBehaviorInfos) { string p_Default = Path.Combine(Publics.General.MyDataPath, p_BehaviorInfos); string p_Custom = Path.Combine(Publics.General.MyDataPath, p_BehaviorInfosCustom); if (File.Exists(p_Default)) { BehaviorInfos.ReadFromFile(p_Default); } if (File.Exists(p_Custom)) { BehaviorInfosCustom.ReadFromFile(p_Custom); } hasLoadedBehaviorInfos = true; } }