aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs20
1 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
new file mode 100644
index 0000000..d8cae6e
--- /dev/null
+++ b/OpenSim/Region/Environment/Modules/ExportSerialiser/SerialiseObjects.cs
@@ -0,0 +1,20 @@
1using OpenSim.Region.Environment.Scenes;
2
3namespace OpenSim.Region.Environment.Modules.ExportSerialiser
4{
5 class SerialiseObjects : IFileSerialiser
6 {
7 #region IFileSerialiser Members
8
9 public string WriteToFile(Scene scene, string dir)
10 {
11 string targetFileName = dir + "objects.xml";
12
13 scene.SavePrimsToXml2(targetFileName);
14
15 return "objects.xml";
16 }
17
18 #endregion
19 }
20}