From 5ac5785cf2af152b44d8faeb3207b671b81c6684 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 7 Aug 2007 17:22:15 +0000 Subject: a couple of changes in the new Sceneobject classes, just committing so things are kept in sync. --- .../Environment/Scenes/AllNewSceneObjectPart2.cs | 30 +++++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs') diff --git a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs index 542e13f..7a31369 100644 --- a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs +++ b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs @@ -26,7 +26,6 @@ namespace OpenSim.Region.Environment.Scenes public uint GroupMask = FULL_MASK_PERMISSIONS; public uint EveryoneMask = FULL_MASK_PERMISSIONS; public uint BaseMask = FULL_MASK_PERMISSIONS; - protected byte[] m_particleSystem = new byte[0]; @@ -53,11 +52,11 @@ namespace OpenSim.Region.Environment.Scenes set { m_localID = value; } } - protected string m_name; - public virtual string Name + protected string m_partName; + public virtual string PartName { - get { return m_name; } - set { m_name = value; } + get { return m_partName; } + set { m_partName = value; } } protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; @@ -81,6 +80,14 @@ namespace OpenSim.Region.Environment.Scenes set { m_regionHandle = value; } } + //unkown if this will be kept, added as a way of removing the group position from the group class + protected LLVector3 m_groupPosition; + public LLVector3 GroupPosition + { + get { return m_groupPosition; } + set { m_groupPosition = value; } + } + protected LLVector3 m_offset; public LLVector3 OffsetPosition { @@ -165,6 +172,14 @@ namespace OpenSim.Region.Environment.Scenes } #endregion + //might not end up being used + protected bool m_isRoot; + public bool IsRoot + { + set { m_isRoot = value; } + get { return this.m_isRoot; } + } + #region Constructors /// /// @@ -183,7 +198,7 @@ namespace OpenSim.Region.Environment.Scenes /// /// /// - public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 position) + public AllNewSceneObjectPart2(ulong regionHandle, AllNewSceneObjectGroup2 parent, LLUUID ownerID, uint localID, PrimitiveBaseShape shape, LLVector3 groupPosition, LLVector3 offsetPosition) { this.m_regionHandle = regionHandle; this.m_parentGroup = parent; @@ -196,7 +211,8 @@ namespace OpenSim.Region.Environment.Scenes this.LocalID = (uint)(localID); this.m_shape = shape; - this.OffsetPosition = position; + this.m_groupPosition = groupPosition; + this.OffsetPosition = offsetPosition; this.RotationOffset = LLQuaternion.Identity; this.Velocity = new LLVector3(0, 0, 0); this.AngularVelocity = new LLVector3(0, 0, 0); -- cgit v1.1