diff options
author | Adam Frisby | 2008-04-21 06:39:16 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 06:39:16 +0000 |
commit | 05e24c8f58e5cc41b3e7704b1912dfbe9703d4fe (patch) | |
tree | 09f7aa55e82ede0839373e85895a34fb3e797b31 /OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs | |
parent | * Written a improved self-contained version of the XML Object Serialiser for ... (diff) | |
download | opensim-SC_OLD-05e24c8f58e5cc41b3e7704b1912dfbe9703d4fe.zip opensim-SC_OLD-05e24c8f58e5cc41b3e7704b1912dfbe9703d4fe.tar.gz opensim-SC_OLD-05e24c8f58e5cc41b3e7704b1912dfbe9703d4fe.tar.bz2 opensim-SC_OLD-05e24c8f58e5cc41b3e7704b1912dfbe9703d4fe.tar.xz |
* Terrain Module code has been reformatted to comply with guidelines.
* Fixed a variety of code quality issues. (Yes, I've found ReSharper.)
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs index 79c9c63..f46ba8f 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/WeatherSphere.cs | |||
@@ -34,15 +34,10 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
34 | /// </summary> | 34 | /// </summary> |
35 | public class WeatherSphere : ITerrainPaintableEffect | 35 | public class WeatherSphere : ITerrainPaintableEffect |
36 | { | 36 | { |
37 | NeighbourSystem type = NeighbourSystem.Moore; // Parameter | 37 | private double talus = 0.2; // Number of meters max difference before stop eroding. Tweakage required. |
38 | double talus = 0.2; // Number of meters max difference before stop eroding. Tweakage required. | 38 | private NeighbourSystem type = NeighbourSystem.Moore; // Parameter |
39 | 39 | ||
40 | #region Supporting Functions | 40 | #region Supporting Functions |
41 | private enum NeighbourSystem | ||
42 | { | ||
43 | Moore, | ||
44 | VonNeumann | ||
45 | } ; | ||
46 | 41 | ||
47 | private int[] Neighbours(NeighbourSystem type, int index) | 42 | private int[] Neighbours(NeighbourSystem type, int index) |
48 | { | 43 | { |
@@ -142,6 +137,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
142 | return coord; | 137 | return coord; |
143 | } | 138 | } |
144 | 139 | ||
140 | private enum NeighbourSystem | ||
141 | { | ||
142 | Moore, | ||
143 | VonNeumann | ||
144 | } ; | ||
145 | |||
145 | #endregion | 146 | #endregion |
146 | 147 | ||
147 | #region ITerrainPaintableEffect Members | 148 | #region ITerrainPaintableEffect Members |
@@ -203,4 +204,4 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes | |||
203 | 204 | ||
204 | #endregion | 205 | #endregion |
205 | } | 206 | } |
206 | } | 207 | } \ No newline at end of file |