diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs index 854e00d..1f1568f 100644 --- a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs +++ b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DAExampleModule.cs | |||
@@ -39,7 +39,7 @@ using OpenSim.Region.Framework; | |||
39 | using OpenSim.Region.Framework.Interfaces; | 39 | using OpenSim.Region.Framework.Interfaces; |
40 | using OpenSim.Region.Framework.Scenes; | 40 | using OpenSim.Region.Framework.Scenes; |
41 | 41 | ||
42 | namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule | 42 | namespace OpenSim.Region.CoreModules.Framework.DynamicAttributes.DAExampleModule |
43 | { | 43 | { |
44 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "DAExampleModule")] | 44 | [Extension(Path = "/OpenSim/RegionModules", NodeName = "RegionModule", Id = "DAExampleModule")] |
45 | public class DAExampleModule : INonSharedRegionModule | 45 | public class DAExampleModule : INonSharedRegionModule |
@@ -48,6 +48,8 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule | |||
48 | 48 | ||
49 | private static readonly bool ENABLED = false; // enable for testing | 49 | private static readonly bool ENABLED = false; // enable for testing |
50 | 50 | ||
51 | public const string DANamespace = "DAExample Module"; | ||
52 | |||
51 | protected Scene m_scene; | 53 | protected Scene m_scene; |
52 | protected IDialogModule m_dialogMod; | 54 | protected IDialogModule m_dialogMod; |
53 | 55 | ||
@@ -89,7 +91,7 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule | |||
89 | if (sop == null) | 91 | if (sop == null) |
90 | return true; | 92 | return true; |
91 | 93 | ||
92 | if (!sop.DynAttrs.TryGetValue(Name, out attrs)) | 94 | if (!sop.DynAttrs.TryGetValue(DANamespace, out attrs)) |
93 | attrs = new OSDMap(); | 95 | attrs = new OSDMap(); |
94 | 96 | ||
95 | OSDInteger newValue; | 97 | OSDInteger newValue; |
@@ -104,7 +106,7 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DAExampleModule | |||
104 | 106 | ||
105 | attrs["moves"] = newValue; | 107 | attrs["moves"] = newValue; |
106 | 108 | ||
107 | sop.DynAttrs[Name] = attrs; | 109 | sop.DynAttrs[DANamespace] = attrs; |
108 | } | 110 | } |
109 | 111 | ||
110 | sop.ParentGroup.HasGroupChanged = true; | 112 | sop.ParentGroup.HasGroupChanged = true; |