diff options
author | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-05 19:07:37 +0000 |
commit | b16abc8166c29585cb76cc55c3bdd76e5833cb4f (patch) | |
tree | 6a34f465a74b7a3a6dc00a3d7aa8dcc25ac3e3a5 /OpenSim/Region/CoreModules/Framework/DynamicAttributes/DOExampleModule.cs | |
parent | Make it possible to disable the bakes module in the way it is described in co... (diff) | |
download | opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.zip opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.gz opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.bz2 opensim-SC_OLD-b16abc8166c29585cb76cc55c3bdd76e5833cb4f.tar.xz |
Massive tab and trailing space cleanup
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 |