コード例 #1
0
 /// <summary>
 /// Loads AITraits from XML file
 /// </summary>
 /// <param name="TraitsFilePath"></param>
 private void LoadTraits(string TraitsFilePath)
 {
     if (File.Exists(TraitsFilePath))
     {
         Traits = AITraits.LoadFromFile(TraitsFilePath);
     }
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
 /// <summary>
 /// Loads AITraits from XML file
 /// </summary>
 /// <param name="TraitsFilePath"></param>
 private void LoadTraits(string TraitsFilePath)
 {
     if(File.Exists(TraitsFilePath))
     {
         Traits = AITraits.LoadFromFile(TraitsFilePath);
     }
 }
コード例 #4
0
 /// <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);
 }