aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
blob: d8cae6ed6bb737c616f599c2c7a90de91d8d0975 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using OpenSim.Region.Environment.Scenes;

namespace OpenSim.Region.Environment.Modules.ExportSerialiser
{
    class SerialiseObjects : IFileSerialiser
    {
        #region IFileSerialiser Members

        public string WriteToFile(Scene scene, string dir)
        {
            string targetFileName = dir + "objects.xml";

            scene.SavePrimsToXml2(targetFileName);

            return "objects.xml";
        }

        #endregion
    }
}