diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs index 166a994..3364cbc 100644 --- a/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs +++ b/OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs | |||
@@ -65,11 +65,11 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DOExampleModule | |||
65 | private Scene m_scene; | 65 | private Scene m_scene; |
66 | private IDialogModule m_dialogMod; | 66 | private IDialogModule m_dialogMod; |
67 | 67 | ||
68 | public string Name { get { return "DO"; } } | 68 | public string Name { get { return "DO"; } } |
69 | public Type ReplaceableInterface { get { return null; } } | 69 | public Type ReplaceableInterface { get { return null; } } |
70 | 70 | ||
71 | public void Initialise(IConfigSource source) {} | 71 | public void Initialise(IConfigSource source) {} |
72 | 72 | ||
73 | public void AddRegion(Scene scene) | 73 | public void AddRegion(Scene scene) |
74 | { | 74 | { |
75 | if (ENABLED) | 75 | if (ENABLED) |
@@ -80,18 +80,18 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DOExampleModule | |||
80 | m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>(); | 80 | m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>(); |
81 | } | 81 | } |
82 | } | 82 | } |
83 | 83 | ||
84 | public void RemoveRegion(Scene scene) | 84 | public void RemoveRegion(Scene scene) |
85 | { | 85 | { |
86 | if (ENABLED) | 86 | if (ENABLED) |
87 | { | 87 | { |
88 | m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove; | 88 | m_scene.EventManager.OnSceneGroupMove -= OnSceneGroupMove; |
89 | } | 89 | } |
90 | } | 90 | } |
91 | 91 | ||
92 | public void RegionLoaded(Scene scene) {} | 92 | public void RegionLoaded(Scene scene) {} |
93 | 93 | ||
94 | public void Close() | 94 | public void Close() |
95 | { | 95 | { |
96 | RemoveRegion(m_scene); | 96 | RemoveRegion(m_scene); |
97 | } | 97 | } |
@@ -116,7 +116,7 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DOExampleModule | |||
116 | 116 | ||
117 | rootPart.DynObjs.Add(DAExampleModule.Namespace, Name, new MyObject(movesSoFar)); | 117 | rootPart.DynObjs.Add(DAExampleModule.Namespace, Name, new MyObject(movesSoFar)); |
118 | } | 118 | } |
119 | 119 | ||
120 | private bool OnSceneGroupMove(UUID groupId, Vector3 delta) | 120 | private bool OnSceneGroupMove(UUID groupId, Vector3 delta) |
121 | { | 121 | { |
122 | SceneObjectGroup so = m_scene.GetSceneObjectGroup(groupId); | 122 | SceneObjectGroup so = m_scene.GetSceneObjectGroup(groupId); |
@@ -129,11 +129,11 @@ namespace OpenSim.Region.Framework.DynamicAttributes.DOExampleModule | |||
129 | if (rawObj != null) | 129 | if (rawObj != null) |
130 | { | 130 | { |
131 | MyObject myObj = (MyObject)rawObj; | 131 | MyObject myObj = (MyObject)rawObj; |
132 | 132 | ||
133 | m_dialogMod.SendGeneralAlert(string.Format("{0} {1} moved {2} times", so.Name, so.UUID, ++myObj.Moves)); | 133 | m_dialogMod.SendGeneralAlert(string.Format("{0} {1} moved {2} times", so.Name, so.UUID, ++myObj.Moves)); |
134 | } | 134 | } |
135 | 135 | ||
136 | return true; | 136 | return true; |
137 | } | 137 | } |
138 | } | 138 | } |
139 | } \ No newline at end of file | 139 | } \ No newline at end of file |