Example #1
0
    void CreateGameSetupTxt()
    {
        string path    = "C:/xampp/tmp/" + WorldName + " Setup.csv";
        string content = BG.ToString() + "\n" + Boss.ToString() + "\n" + BossHP.ToString();

        File.WriteAllText(path, content);
    }
Example #2
0
    void CreateGameSetupTxt()
    {
        string path    = "C:/xampp/tmp/" + WorldName + " " + UniqueCode + " Setup.csv";
        string content = BG.ToString() + "\n" + Boss.ToString() + "\n" + BossHP.ToString();

        if (File.Exists(path))
        {
            File.AppendAllText(path, content);
        }
        else
        {
            File.WriteAllText(path, content);
        }
    }
Example #3
0
 /// <summary>
 /// Converts an object into its XML representation.
 /// </summary>
 /// <param name="writer">The <see cref="T:System.Xml.XmlWriter"/> stream to which the object is serialized. </param>
 public void WriteXml(XmlWriter writer)
 {
     writer.WriteAttributeString("G", G.ToString());
     writer.WriteAttributeString("FG", FG.ToString());
     writer.WriteAttributeString("BG", BG.ToString());
 }