SphereStudio.Project.Save C# (CSharp) Method

Save() public method

Saves any changes made to the project.
public Save ( ) : void
return void
        public void Save()
        {
            User.SaveAs(Path.ChangeExtension(FileName, ".ssuser"));
            _ssproj.SaveAs(FileName);
            if (BackCompatible)
            {
                string fileName = Path.Combine(Path.GetDirectoryName(FileName), "game.sgm");
                using (var writer = new StreamWriter(fileName, false, new UTF8Encoding(false)))
                {
                    writer.WriteLine(string.Format("name={0}", Name));
                    writer.WriteLine(string.Format("author={0}", Author));
                    writer.WriteLine(string.Format("description={0}", Summary));
                    writer.WriteLine(string.Format("script={0}", MainScript));
                    writer.WriteLine(string.Format("screen_width={0}", ScreenWidth));
                    writer.WriteLine(string.Format("screen_height={0}", ScreenHeight));
                }
            }
        }