diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneObjectPart.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index 8e570d4..54bb5e6 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -9,11 +9,12 @@ using libsecondlife; | |||
9 | using libsecondlife.Packets; | 9 | using libsecondlife.Packets; |
10 | using OpenSim.Framework.Interfaces; | 10 | using OpenSim.Framework.Interfaces; |
11 | using OpenSim.Framework.Types; | 11 | using OpenSim.Framework.Types; |
12 | using OpenSim.Region.Environment.Scenes.Scripting; | ||
12 | 13 | ||
13 | namespace OpenSim.Region.Environment.Scenes | 14 | namespace OpenSim.Region.Environment.Scenes |
14 | { | 15 | { |
15 | 16 | ||
16 | public class SceneObjectPart | 17 | public class SceneObjectPart : IScriptHost |
17 | { | 18 | { |
18 | private const uint FULL_MASK_PERMISSIONS = 2147483647; | 19 | private const uint FULL_MASK_PERMISSIONS = 2147483647; |
19 | 20 | ||
@@ -55,11 +56,11 @@ namespace OpenSim.Region.Environment.Scenes | |||
55 | set { m_localID = value; } | 56 | set { m_localID = value; } |
56 | } | 57 | } |
57 | 58 | ||
58 | protected string m_partName; | 59 | protected string m_name; |
59 | public virtual string PartName | 60 | public virtual string Name |
60 | { | 61 | { |
61 | get { return m_partName; } | 62 | get { return m_name; } |
62 | set { m_partName = value; } | 63 | set { m_name = value; } |
63 | } | 64 | } |
64 | 65 | ||
65 | protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; | 66 | protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; |
@@ -91,11 +92,16 @@ namespace OpenSim.Region.Environment.Scenes | |||
91 | set { m_groupPosition = value; } | 92 | set { m_groupPosition = value; } |
92 | } | 93 | } |
93 | 94 | ||
94 | protected LLVector3 m_offset; | 95 | protected LLVector3 m_offsetPosition; |
95 | public LLVector3 OffsetPosition | 96 | public LLVector3 OffsetPosition |
96 | { | 97 | { |
97 | get { return m_offset; } | 98 | get { return m_offsetPosition; } |
98 | set { m_offset = value; } | 99 | set { m_offsetPosition = value; } |
100 | } | ||
101 | |||
102 | public LLVector3 AbsolutePosition | ||
103 | { | ||
104 | get { return m_offsetPosition + m_groupPosition; } | ||
99 | } | 105 | } |
100 | 106 | ||
101 | protected LLQuaternion m_rotationOffset; | 107 | protected LLQuaternion m_rotationOffset; |
@@ -195,7 +201,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
195 | /// <param name="position"></param> | 201 | /// <param name="position"></param> |
196 | public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 groupPosition, LLVector3 offsetPosition) | 202 | public SceneObjectPart(ulong regionHandle, SceneObjectGroup parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 groupPosition, LLVector3 offsetPosition) |
197 | { | 203 | { |
198 | this.m_partName = "Primitive"; | 204 | this.m_name = "Primitive"; |
199 | this.m_regionHandle = regionHandle; | 205 | this.m_regionHandle = regionHandle; |
200 | this.m_parentGroup = parent; | 206 | this.m_parentGroup = parent; |
201 | 207 | ||