From edc572dacf3ff65c5584f8c02bb291abce0c7122 Mon Sep 17 00:00:00 2001 From: MW Date: Wed, 1 Aug 2007 16:50:20 +0000 Subject: Some more work on SceneObject/primitive rewrites (AllNewSceneObjectGroup2 /Part2). Updated the JavaVM to a later version I did (basically some clean up and a little bit more functional). Added SendLoadURL method to IClientAPI. --- .../Environment/Scenes/AllNewSceneObjectPart2.cs | 109 +++++++++++++++++++-- 1 file changed, 99 insertions(+), 10 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 07d1357..8a995e0 100644 --- a/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs +++ b/OpenSim/Region/Environment/Scenes/AllNewSceneObjectPart2.cs @@ -14,21 +14,15 @@ namespace OpenSim.Region.Environment.Scenes { private const uint FULL_MASK_PERMISSIONS = 2147483647; - private uint m_flags = 32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; - private ulong m_regionHandle; - public string SitName = ""; public string TouchName = ""; public string Text = ""; public LLUUID CreatorID; public LLUUID OwnerID; + public LLUUID GroupID; public LLUUID LastOwnerID; public Int32 CreationDate; - - public LLUUID uuid; - public uint m_localID; - public uint ParentID = 0; public uint OwnerMask = FULL_MASK_PERMISSIONS; @@ -43,6 +37,33 @@ namespace OpenSim.Region.Environment.Scenes #region Properties + + protected LLUUID m_uuid; + public LLUUID UUID + { + get + { + return m_uuid; + } + set + { + value = m_uuid; + } + } + + protected uint m_localID; + public uint LocalID + { + get + { + return m_localID; + } + set + { + m_localID = value; + } + } + protected string m_name; /// /// @@ -53,6 +74,32 @@ namespace OpenSim.Region.Environment.Scenes set { m_name = value; } } + protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags) 32 + 65536 + 131072 + 256 + 4 + 8 + 2048 + 524288 + 268435456 + 128; + public uint ObjectFlags + { + get + { + return (uint)m_flags; + } + set + { + m_flags =(LLObject.ObjectFlags) value; + } + } + + protected ulong m_regionHandle; + public ulong RegionHandle + { + get + { + return m_regionHandle; + } + set + { + m_regionHandle = value; + } + } + protected LLVector3 m_offset; public LLVector3 OffsetPosition { @@ -79,6 +126,48 @@ namespace OpenSim.Region.Environment.Scenes } } + protected LLVector3 m_velocity; + /// + public LLVector3 Velocity + { + get + { + return m_velocity; + } + set + { + m_velocity = value; + } + } + + protected LLVector3 m_angularVelocity; + /// + public LLVector3 AngularVelocity + { + get + { + return m_angularVelocity; + } + set + { + m_angularVelocity = value; + } + } + + protected LLVector3 m_acceleration; + /// + public LLVector3 Acceleration + { + get + { + return m_acceleration; + } + set + { + m_acceleration = value; + } + } + private string m_description = ""; public string Description { @@ -123,14 +212,14 @@ namespace OpenSim.Region.Environment.Scenes this.OwnerID = ownerID; this.CreatorID = this.OwnerID; this.LastOwnerID = LLUUID.Zero; - this.uuid = LLUUID.Random(); - this.m_localID = (uint)(localID); + this.UUID = LLUUID.Random(); + this.LocalID = (uint)(localID); this.m_Shape = shape; this.OffsetPosition = position; //temporary code just so the m_flags field doesn't give a compiler warning - if (m_flags == 1) + if (m_flags ==LLObject.ObjectFlags.AllowInventoryDrop) { } -- cgit v1.1