diff options
author | lbsa71 | 2007-10-30 09:05:31 +0000 |
---|---|---|
committer | lbsa71 | 2007-10-30 09:05:31 +0000 |
commit | 67e12b95ea7b68f4904a7484d77ecfd787d16d0c (patch) | |
tree | 20b00d24c8a7617017960432ec044852e3ad5fa9 /OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs | |
parent | * Deleted .user file (diff) | |
download | opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.zip opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.gz opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.bz2 opensim-SC_OLD-67e12b95ea7b68f4904a7484d77ecfd787d16d0c.tar.xz |
* Optimized usings
* Shortened type references
* Removed redundant 'this' qualifier
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs b/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs index 2ae55f0..8c29c6a 100644 --- a/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs +++ b/OpenSim/Region/Terrain.BasicTerrain/TerrainFilter.cs | |||
@@ -87,11 +87,12 @@ namespace OpenSim.Region.Terrain | |||
87 | { | 87 | { |
88 | foreach (Type pluginType in compilerResults.CompiledAssembly.GetExportedTypes()) | 88 | foreach (Type pluginType in compilerResults.CompiledAssembly.GetExportedTypes()) |
89 | { | 89 | { |
90 | Type testInterface = pluginType.GetInterface("ITerrainFilter",true); | 90 | Type testInterface = pluginType.GetInterface("ITerrainFilter", true); |
91 | 91 | ||
92 | if (testInterface != null) | 92 | if (testInterface != null) |
93 | { | 93 | { |
94 | ITerrainFilter filter = (ITerrainFilter)compilerResults.CompiledAssembly.CreateInstance(pluginType.ToString()); | 94 | ITerrainFilter filter = |
95 | (ITerrainFilter) compilerResults.CompiledAssembly.CreateInstance(pluginType.ToString()); | ||
95 | 96 | ||
96 | string filterName = filter.Register(); | 97 | string filterName = filter.Register(); |
97 | Console.WriteLine("Plugin: " + filterName + " loaded."); | 98 | Console.WriteLine("Plugin: " + filterName + " loaded."); |
@@ -107,7 +108,6 @@ namespace OpenSim.Region.Terrain | |||
107 | } | 108 | } |
108 | } | 109 | } |
109 | } | 110 | } |
110 | |||
111 | } | 111 | } |
112 | 112 | ||
113 | public void LoadFilterCSharp(string filename) | 113 | public void LoadFilterCSharp(string filename) |
@@ -122,4 +122,4 @@ namespace OpenSim.Region.Terrain | |||
122 | LoadFilter(compiler, filename); | 122 | LoadFilter(compiler, filename); |
123 | } | 123 | } |
124 | } | 124 | } |
125 | } | 125 | } \ No newline at end of file |