diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | 166 |
1 files changed, 166 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs new file mode 100644 index 0000000..55b9767 --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SOPObject.cs | |||
@@ -0,0 +1,166 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenMetaverse; | ||
5 | using OpenSim.Region.Framework.Scenes; | ||
6 | |||
7 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
8 | { | ||
9 | class SOPObject : IObject | ||
10 | { | ||
11 | private readonly Scene m_rootScene; | ||
12 | private readonly uint m_localID; | ||
13 | |||
14 | public SOPObject(Scene rootScene, uint localID) | ||
15 | { | ||
16 | m_rootScene = rootScene; | ||
17 | m_localID = localID; | ||
18 | } | ||
19 | |||
20 | private SceneObjectPart GetSOP() | ||
21 | { | ||
22 | if (m_rootScene.Entities.ContainsKey(m_localID)) | ||
23 | return ((SceneObjectGroup) m_rootScene.Entities[m_localID]).RootPart; | ||
24 | |||
25 | return null; | ||
26 | } | ||
27 | |||
28 | public bool Exists | ||
29 | { | ||
30 | get { return GetSOP() != null; } | ||
31 | } | ||
32 | |||
33 | public uint LocalID | ||
34 | { | ||
35 | get { return m_localID; } | ||
36 | } | ||
37 | |||
38 | public UUID GlobalID | ||
39 | { | ||
40 | get { return GetSOP().UUID; } | ||
41 | } | ||
42 | |||
43 | public IObject[] Children | ||
44 | { | ||
45 | get { throw new System.NotImplementedException(); } | ||
46 | } | ||
47 | |||
48 | public IObject Root | ||
49 | { | ||
50 | get { return new SOPObject(m_rootScene, GetSOP().ParentGroup.RootPart.LocalId); } | ||
51 | } | ||
52 | |||
53 | public IObjectFace[] Faces | ||
54 | { | ||
55 | get { throw new System.NotImplementedException(); } | ||
56 | } | ||
57 | |||
58 | public Vector3 Scale | ||
59 | { | ||
60 | get { throw new System.NotImplementedException(); } | ||
61 | set { throw new System.NotImplementedException(); } | ||
62 | } | ||
63 | |||
64 | public Quaternion Rotation | ||
65 | { | ||
66 | get { throw new System.NotImplementedException(); } | ||
67 | set { throw new System.NotImplementedException(); } | ||
68 | } | ||
69 | |||
70 | public Vector3 SitTarget | ||
71 | { | ||
72 | get { throw new System.NotImplementedException(); } | ||
73 | set { throw new System.NotImplementedException(); } | ||
74 | } | ||
75 | |||
76 | public string SitTargetText | ||
77 | { | ||
78 | get { throw new System.NotImplementedException(); } | ||
79 | set { throw new System.NotImplementedException(); } | ||
80 | } | ||
81 | |||
82 | public string TouchText | ||
83 | { | ||
84 | get { throw new System.NotImplementedException(); } | ||
85 | set { throw new System.NotImplementedException(); } | ||
86 | } | ||
87 | |||
88 | public string Text | ||
89 | { | ||
90 | get { throw new System.NotImplementedException(); } | ||
91 | set { throw new System.NotImplementedException(); } | ||
92 | } | ||
93 | |||
94 | public bool IsPhysical | ||
95 | { | ||
96 | get { throw new System.NotImplementedException(); } | ||
97 | set { throw new System.NotImplementedException(); } | ||
98 | } | ||
99 | |||
100 | public bool IsPhantom | ||
101 | { | ||
102 | get { throw new System.NotImplementedException(); } | ||
103 | set { throw new System.NotImplementedException(); } | ||
104 | } | ||
105 | |||
106 | public bool IsRotationLockedX | ||
107 | { | ||
108 | get { throw new System.NotImplementedException(); } | ||
109 | set { throw new System.NotImplementedException(); } | ||
110 | } | ||
111 | |||
112 | public bool IsRotationLockedY | ||
113 | { | ||
114 | get { throw new System.NotImplementedException(); } | ||
115 | set { throw new System.NotImplementedException(); } | ||
116 | } | ||
117 | |||
118 | public bool IsRotationLockedZ | ||
119 | { | ||
120 | get { throw new System.NotImplementedException(); } | ||
121 | set { throw new System.NotImplementedException(); } | ||
122 | } | ||
123 | |||
124 | public bool IsSandboxed | ||
125 | { | ||
126 | get { throw new System.NotImplementedException(); } | ||
127 | set { throw new System.NotImplementedException(); } | ||
128 | } | ||
129 | |||
130 | public bool IsImmotile | ||
131 | { | ||
132 | get { throw new System.NotImplementedException(); } | ||
133 | set { throw new System.NotImplementedException(); } | ||
134 | } | ||
135 | |||
136 | public bool IsAlwaysReturned | ||
137 | { | ||
138 | get { throw new System.NotImplementedException(); } | ||
139 | set { throw new System.NotImplementedException(); } | ||
140 | } | ||
141 | |||
142 | public bool IsTemporary | ||
143 | { | ||
144 | get { throw new System.NotImplementedException(); } | ||
145 | set { throw new System.NotImplementedException(); } | ||
146 | } | ||
147 | |||
148 | public bool IsFlexible | ||
149 | { | ||
150 | get { throw new System.NotImplementedException(); } | ||
151 | set { throw new System.NotImplementedException(); } | ||
152 | } | ||
153 | |||
154 | public PrimType PrimShape | ||
155 | { | ||
156 | get { throw new System.NotImplementedException(); } | ||
157 | set { throw new System.NotImplementedException(); } | ||
158 | } | ||
159 | |||
160 | public Material Material | ||
161 | { | ||
162 | get { throw new System.NotImplementedException(); } | ||
163 | set { throw new System.NotImplementedException(); } | ||
164 | } | ||
165 | } | ||
166 | } | ||