diff options
Diffstat (limited to 'OpenSim/Region/Examples/SimpleModule')
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/README.txt | 9 | ||||
-rw-r--r-- | OpenSim/Region/Examples/SimpleModule/RegionModule.cs | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Examples/SimpleModule/README.txt b/OpenSim/Region/Examples/SimpleModule/README.txt new file mode 100644 index 0000000..8314a21 --- /dev/null +++ b/OpenSim/Region/Examples/SimpleModule/README.txt | |||
@@ -0,0 +1,9 @@ | |||
1 | !!!IMPORTANT NOTE!!! | ||
2 | |||
3 | This code snippet provided as an example of coding functional content with region modules. | ||
4 | |||
5 | As of 13/3 2008 this module actually renders all regions within the instance unusable if enabled by dragging the dll from ./bin to global /bin. | ||
6 | |||
7 | So, use at own peril and in dedicated instance. | ||
8 | |||
9 | Peace. | ||
diff --git a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs index 6accb8a..37cbef5 100644 --- a/OpenSim/Region/Examples/SimpleModule/RegionModule.cs +++ b/OpenSim/Region/Examples/SimpleModule/RegionModule.cs | |||
@@ -78,7 +78,7 @@ namespace OpenSim.Region.Examples.SimpleModule | |||
78 | 78 | ||
79 | for (int i = 0; i < (objs*objs*objs); i++) | 79 | for (int i = 0; i < (objs*objs*objs); i++) |
80 | { | 80 | { |
81 | LLVector3 posOffset = new LLVector3((i % objs) * 4, (i % (objs*objs)) / ( objs ) * 4, (i / (objs*objs)) * 4); | 81 | LLVector3 posOffset = new LLVector3((i % objs) * 4, ((i % (objs*objs)) / ( objs )) * 4, (i / (objs*objs)) * 4); |
82 | ComplexObject complexObject = | 82 | ComplexObject complexObject = |
83 | new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(), | 83 | new ComplexObject(m_scene, regionInfo.RegionHandle, LLUUID.Zero, m_scene.PrimIDAllocate(), |
84 | pos + posOffset); | 84 | pos + posOffset); |