private SaveWorld ( World world, string strFileName ) : void | ||
world | World | |
strFileName | string | |
리턴 | void |
private void SaveWorld(World world, string strFileName)
{
System.Xml.Serialization.XmlSerializer writer = new System.Xml.Serialization.XmlSerializer(typeof(World));
System.IO.StreamWriter file = new System.IO.StreamWriter(strFileName);
writer.Serialize(file, world);
file.Close();
}