aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-04-06 07:17:23 +0000
committerAdam Frisby2009-04-06 07:17:23 +0000
commit9e51c2db95fd43aa18e66d359c15349bdc9ad8f0 (patch)
tree995f875adb3967687fa8cebf8efabee303a7e6f3 /OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs
parent* Adds AutoOAR module, this will automatically OAR your regions every 20 minu... (diff)
downloadopensim-SC-9e51c2db95fd43aa18e66d359c15349bdc9ad8f0.zip
opensim-SC-9e51c2db95fd43aa18e66d359c15349bdc9ad8f0.tar.gz
opensim-SC-9e51c2db95fd43aa18e66d359c15349bdc9ad8f0.tar.bz2
opensim-SC-9e51c2db95fd43aa18e66d359c15349bdc9ad8f0.tar.xz
* Implements World.Parcels[] array for MRM scripting.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs45
1 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs
new file mode 100644
index 0000000..aceeacc
--- /dev/null
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs
@@ -0,0 +1,45 @@
1using OpenSim.Region.Framework.Interfaces;
2using OpenSim.Region.Framework.Scenes;
3
4namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
5{
6 class LOParcel : IParcel
7 {
8 private readonly Scene m_scene;
9 private readonly int m_parcelID;
10
11 public LOParcel(Scene m_scene, int m_parcelID)
12 {
13 this.m_scene = m_scene;
14 this.m_parcelID = m_parcelID;
15 }
16
17 private ILandObject GetLO()
18 {
19 return m_scene.LandChannel.GetLandObject(m_parcelID);
20 }
21
22 public string Name
23 {
24 get { return GetLO().landData.Name; }
25 set { GetLO().landData.Name = value; }
26 }
27
28 public string Description
29 {
30 get { return GetLO().landData.Description; }
31 set { GetLO().landData.Description = value; }
32 }
33
34 public ISocialEntity Owner
35 {
36 get { throw new System.NotImplementedException(); }
37 set { throw new System.NotImplementedException(); }
38 }
39
40 public bool[,] Bitmap
41 {
42 get { return GetLO().landBitmap; }
43 }
44 }
45}