diff options
author | Justin Clarke Casey | 2008-05-26 01:50:40 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-26 01:50:40 +0000 |
commit | 5c8a93c4262f3197a02645aea6c2b7362fd6784e (patch) | |
tree | 02fb726016656efd6a1846ca28bf72402ae74843 /OpenSim/Region/Environment/Modules | |
parent | * Refactor: Where possible, change visibility on InnerScene methods to protec... (diff) | |
download | opensim-SC_OLD-5c8a93c4262f3197a02645aea6c2b7362fd6784e.zip opensim-SC_OLD-5c8a93c4262f3197a02645aea6c2b7362fd6784e.tar.gz opensim-SC_OLD-5c8a93c4262f3197a02645aea6c2b7362fd6784e.tar.bz2 opensim-SC_OLD-5c8a93c4262f3197a02645aea6c2b7362fd6784e.tar.xz |
* Extract and boil down necessary texture UUIDs for an archive of the scene prims
* no user functionality yet
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 | ||