aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorMW2007-08-27 11:18:50 +0000
committerMW2007-08-27 11:18:50 +0000
commit6181191a037fd8481cff640405685d9a46ba89a3 (patch)
tree92d10e0ed07b380d6491ae7b3e21ab199b3ea5cd /OpenSim/Region/Environment/Scenes
parentAnother small tweak to image sending. (diff)
downloadopensim-SC_OLD-6181191a037fd8481cff640405685d9a46ba89a3.zip
opensim-SC_OLD-6181191a037fd8481cff640405685d9a46ba89a3.tar.gz
opensim-SC_OLD-6181191a037fd8481cff640405685d9a46ba89a3.tar.bz2
opensim-SC_OLD-6181191a037fd8481cff640405685d9a46ba89a3.tar.xz
Stopped EntityBase from implementing IScriptHost, as don't think it should, multiple objects are based on entitybase and they all don't want the baggage from IScriptHost. SceneObjectPart already implements it anyway.
Added llGetOwner function, and tested the ll functions that I added in last commit.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/EntityBase.cs2
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectPart.cs5
-rw-r--r--OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs1
-rw-r--r--OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs3
4 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/EntityBase.cs b/OpenSim/Region/Environment/Scenes/EntityBase.cs
index 6d933e6..a7b9d75 100644
--- a/OpenSim/Region/Environment/Scenes/EntityBase.cs
+++ b/OpenSim/Region/Environment/Scenes/EntityBase.cs
@@ -5,7 +5,7 @@ using OpenSim.Region.Environment.Scenes.Scripting;
5 5
6namespace OpenSim.Region.Environment.Scenes 6namespace OpenSim.Region.Environment.Scenes
7{ 7{
8 public abstract class EntityBase : IScriptHost 8 public abstract class EntityBase
9 { 9 {
10 protected List<EntityBase> m_children; 10 protected List<EntityBase> m_children;
11 11
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
index b77da3a..a621632 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs
@@ -201,6 +201,11 @@ namespace OpenSim.Region.Environment.Scenes
201 } 201 }
202 #endregion 202 #endregion
203 203
204 public LLUUID ObjectOwner
205 {
206 get { return OwnerID; }
207 }
208
204 #region Constructors 209 #region Constructors
205 /// <summary> 210 /// <summary>
206 /// 211 ///
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs
index d2ca529..e7d0570 100644
--- a/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs
+++ b/OpenSim/Region/Environment/Scenes/Scripting/IScriptHost.cs
@@ -9,6 +9,7 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
9 { 9 {
10 string Name { get; set;} 10 string Name { get; set;}
11 LLUUID UUID { get; } 11 LLUUID UUID { get; }
12 LLUUID ObjectOwner { get;}
12 LLVector3 AbsolutePosition { get; } 13 LLVector3 AbsolutePosition { get; }
13 void SetText(string text, Axiom.Math.Vector3 color, double alpha); 14 void SetText(string text, Axiom.Math.Vector3 color, double alpha);
14 } 15 }
diff --git a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs
index a9147fb1..a50b142 100644
--- a/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs
+++ b/OpenSim/Region/Environment/Scenes/Scripting/NullScriptHost.cs
@@ -20,6 +20,9 @@ namespace OpenSim.Region.Environment.Scenes.Scripting
20 get { return LLUUID.Zero; } 20 get { return LLUUID.Zero; }
21 } 21 }
22 22
23 public LLUUID ObjectOwner
24 { get { return LLUUID.Zero; } }
25
23 public LLVector3 AbsolutePosition 26 public LLVector3 AbsolutePosition
24 { 27 {
25 get { return m_pos; } 28 get { return m_pos; }