public Boolean save()
{
var formatter = new BinaryFormatter();
try
{
using (var fs = new FileStream(saveName, FileMode.Create))
{
formatter.Serialize(fs, this);
}
}
catch (Exception e)
{
Debugger.Log(0, "Serialization", e.ToString());
return false;
}
return true;
}