/// <summary> /// Loads AITraits from XML file /// </summary> /// <param name="TraitsFilePath"></param> private void LoadTraits(string TraitsFilePath) { if (File.Exists(TraitsFilePath)) { Traits = AITraits.LoadFromFile(TraitsFilePath); } }
/// <summary> /// Serializes and writs AITraits to a file /// </summary> /// <param name="FilePath"></param> /// <param name="Traits">AITraits to serialize</param> public static void WriteToFile(string FilePath, AITraits Traits) { XMLHelper.CreateXMLFile(FilePath, Traits); }
/// <summary> /// Loads AITraits from XML file /// </summary> /// <param name="TraitsFilePath"></param> private void LoadTraits(string TraitsFilePath) { if(File.Exists(TraitsFilePath)) { Traits = AITraits.LoadFromFile(TraitsFilePath); } }