OpenSim.Region.CoreModules.World.Voxels.VoxelModule.SaveToFile C# (CSharp) Method

SaveToFile() public method

Saves the current heightmap to a specified file.
public SaveToFile ( string filename ) : void
filename string The destination filename
return void
        public void SaveToFile(string filename)
        {
            try
            {
               m_channel.SaveToFile(filename);
            }
            catch (NotImplementedException)
            {
                m_log.Error("Unable to save to " + filename + ", saving of this file format has not been implemented.");
                throw new Exception(String.Format("Unable to save heightmap: saving of this file format not implemented"));
            }
            catch (IOException ioe)
            {
                m_log.Error(String.Format("[TERRAIN]: Unable to save to {0}, {1}", filename, ioe.Message));
                throw new Exception(String.Format("Unable to save heightmap: {0}", ioe.Message));
            }
        }