diff options
author | Dr Scofield | 2008-08-15 07:20:38 +0000 |
---|---|---|
committer | Dr Scofield | 2008-08-15 07:20:38 +0000 |
commit | 8d479fe5afc30cb4a188b79fb9f09820a763afbb (patch) | |
tree | 5f228dd1a51e3760c2a1505239691494c88d9827 /OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs | |
parent | From: Richard Alimi <ralimi@us.ibm.com> (diff) | |
download | opensim-SC-8d479fe5afc30cb4a188b79fb9f09820a763afbb.zip opensim-SC-8d479fe5afc30cb4a188b79fb9f09820a763afbb.tar.gz opensim-SC-8d479fe5afc30cb4a188b79fb9f09820a763afbb.tar.bz2 opensim-SC-8d479fe5afc30cb4a188b79fb9f09820a763afbb.tar.xz |
From: Richard Alimi <ralimi@us.ibm.com>
The following patch makes some enhancements to loading/saving the Xml2
format.
- Add streamed version of functionality for saving prims to Xml2
format. The streamed version (optionally) allows for saving the
prims whose positions appear within a particular bounding box.
- Expose stream versions of LoadPrimsFromXml2 and SavePrimsToXml2 in
the Scene class
- Extend loading from Xml2 (the streamed version) to optionally start
scripts for the loaded scene objects)
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs index 8a13f2b..e76d40d 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/IRegionSerialiser.cs | |||
@@ -64,7 +64,8 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
64 | /// </summary> | 64 | /// </summary> |
65 | /// <param name="scene"></param> | 65 | /// <param name="scene"></param> |
66 | /// <param name="reader"></param> | 66 | /// <param name="reader"></param> |
67 | void LoadPrimsFromXml2(Scene scene, TextReader reader); | 67 | /// <param name="startScripts"></param> |
68 | void LoadPrimsFromXml2(Scene scene, TextReader reader, bool startScripts); | ||
68 | 69 | ||
69 | /// <summary> | 70 | /// <summary> |
70 | /// Save prims in the xml2 format | 71 | /// Save prims in the xml2 format |
@@ -74,6 +75,17 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
74 | void SavePrimsToXml2(Scene scene, string fileName); | 75 | void SavePrimsToXml2(Scene scene, string fileName); |
75 | 76 | ||
76 | /// <summary> | 77 | /// <summary> |
78 | /// Save prims in the xml2 format, optionally specifying a bounding box for which | ||
79 | /// prims should be saved. If both min and max vectors are LLVector3.Zero, then all prims | ||
80 | /// are exported. | ||
81 | /// </summary> | ||
82 | /// <param name="scene"></param> | ||
83 | /// <param name="stream"></param> | ||
84 | /// <param name="min"></param> | ||
85 | /// <param name="max"></param> | ||
86 | void SavePrimsToXml2(Scene scene, TextWriter stream, LLVector3 min, LLVector3 max); | ||
87 | |||
88 | /// <summary> | ||
77 | /// Save a set of prims in the xml2 format | 89 | /// Save a set of prims in the xml2 format |
78 | /// </summary> | 90 | /// </summary> |
79 | /// <param name="entityList"></param> | 91 | /// <param name="entityList"></param> |
@@ -81,6 +93,17 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
81 | void SavePrimListToXml2(List<EntityBase> entityList, string fileName); | 93 | void SavePrimListToXml2(List<EntityBase> entityList, string fileName); |
82 | 94 | ||
83 | /// <summary> | 95 | /// <summary> |
96 | /// Save a set of prims in the xml2 format, optionally specifying a bounding box for which | ||
97 | /// prims should be saved. If both min and max vectors are LLVector3.Zero, then all prims | ||
98 | /// are exported. | ||
99 | /// </summary> | ||
100 | /// <param name="entityList"></param> | ||
101 | /// <param name="stream"></param> | ||
102 | /// <param name="min"></param> | ||
103 | /// <param name="max"></param> | ||
104 | void SavePrimListToXml2(List<EntityBase> entityList, TextWriter stream, LLVector3 min, LLVector3 max); | ||
105 | |||
106 | /// <summary> | ||
84 | /// Deserializes a scene object from its xml2 representation. This does not load the object into the scene. | 107 | /// Deserializes a scene object from its xml2 representation. This does not load the object into the scene. |
85 | /// </summary> | 108 | /// </summary> |
86 | /// <param name="xmlString"></param> | 109 | /// <param name="xmlString"></param> |