diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs index 7016d1b..dc81f41 100644 --- a/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Archiver/ArchiverModule.cs | |||
@@ -30,6 +30,7 @@ using OpenSim.Region.Environment.Modules.World.Serialiser; | |||
30 | using OpenSim.Region.Environment.Scenes; | 30 | using OpenSim.Region.Environment.Scenes; |
31 | using System.Collections.Generic; | 31 | using System.Collections.Generic; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using libsecondlife; | ||
33 | using log4net; | 34 | using log4net; |
34 | using Nini.Config; | 35 | using Nini.Config; |
35 | 36 | ||
@@ -71,12 +72,23 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
71 | public void ArchiveRegion(string savePath) | 72 | public void ArchiveRegion(string savePath) |
72 | { | 73 | { |
73 | m_log.Warn("[ARCHIVER]: Archive region not yet implemented"); | 74 | m_log.Warn("[ARCHIVER]: Archive region not yet implemented"); |
75 | |||
76 | Dictionary<LLUUID, int> textureUuids = new Dictionary<LLUUID, int>(); | ||
74 | 77 | ||
75 | List<EntityBase> entities = m_scene.GetEntities(); | 78 | List<EntityBase> entities = m_scene.GetEntities(); |
76 | 79 | ||
77 | foreach (EntityBase entity in entities) | 80 | foreach (EntityBase entity in entities) |
78 | { | 81 | { |
79 | 82 | if (entity is SceneObjectGroup) | |
83 | { | ||
84 | SceneObjectGroup sceneObject = (SceneObjectGroup)entity; | ||
85 | |||
86 | foreach (SceneObjectPart part in sceneObject.GetParts()) | ||
87 | { | ||
88 | LLUUID texture = new LLUUID(part.Shape.TextureEntry, 0); | ||
89 | textureUuids[texture] = 1; | ||
90 | } | ||
91 | } | ||
80 | } | 92 | } |
81 | 93 | ||
82 | string serEntities = SerializeObjects(entities); | 94 | string serEntities = SerializeObjects(entities); |
@@ -84,6 +96,7 @@ namespace OpenSim.Region.Environment.Modules.World.Archiver | |||
84 | if (serEntities != null && serEntities.Length > 0) | 96 | if (serEntities != null && serEntities.Length > 0) |
85 | { | 97 | { |
86 | m_log.DebugFormat("[ARCHIVER]: Successfully got serialization for {0} entities", entities.Count); | 98 | m_log.DebugFormat("[ARCHIVER]: Successfully got serialization for {0} entities", entities.Count); |
99 | m_log.DebugFormat("[ARCHIVER]: Requiring save of {0} textures", textureUuids.Count); | ||
87 | } | 100 | } |
88 | } | 101 | } |
89 | 102 | ||