aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/LOParcel.cs
blob: aceeacce15eca407c68940a616582b2dbb0c584d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using OpenSim.Region.Framework.Interfaces;
using OpenSim.Region.Framework.Scenes;

namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
    class LOParcel : IParcel
    {
        private readonly Scene m_scene;
        private readonly int m_parcelID;

        public LOParcel(Scene m_scene, int m_parcelID)
        {
            this.m_scene = m_scene;
            this.m_parcelID = m_parcelID;
        }

        private ILandObject GetLO()
        {
            return m_scene.LandChannel.GetLandObject(m_parcelID);
        }

        public string Name
        {
            get { return GetLO().landData.Name; }
            set { GetLO().landData.Name = value; }
        }

        public string Description
        {
            get { return GetLO().landData.Description; }
            set { GetLO().landData.Description = value; }
        }

        public ISocialEntity Owner
        {
            get { throw new System.NotImplementedException(); }
            set { throw new System.NotImplementedException(); }
        }

        public bool[,] Bitmap
        {
            get { return GetLO().landBitmap; }
        }
    }
}