* Syncs the current revision XML Schema(xsd) to the XML Schema of revision 5251.

* This should resolve creating content, taking it, and being able to rez it again.
0.6.0-stable
Teravus Ovares 2008-06-29 02:04:44 +00:00
parent 031b3d5314
commit 7f847166a9
2 changed files with 263 additions and 239 deletions

View File

@ -44,15 +44,7 @@ namespace OpenSim.Region.Environment.Scenes
private string m_inventoryFileName = String.Empty; private string m_inventoryFileName = String.Empty;
private int m_inventoryFileNameSerial = 0; private int m_inventoryFileNameSerial = 0;
/// <summary>
/// Exposing this is not particularly good, but it's one of the least evils at the moment to see
/// folder id from prim inventory item data, since it's not (yet) actually stored with the prim.
/// </summary>
public LLUUID FolderID
{
get { return UUID; }
set { } // Don't allow assignment, or legacy prims wil b0rk
}
/// <summary> /// <summary>
/// Serial count for inventory file , used to tell if inventory has changed /// Serial count for inventory file , used to tell if inventory has changed
@ -60,22 +52,13 @@ namespace OpenSim.Region.Environment.Scenes
/// </summary> /// </summary>
protected uint m_inventorySerial = 0; protected uint m_inventorySerial = 0;
public uint InventorySerial
{
get { return m_inventorySerial; }
set { m_inventorySerial = value; }
}
/// <summary> /// <summary>
/// Holds in memory prim inventory /// Holds in memory prim inventory
/// </summary> /// </summary>
protected TaskInventoryDictionary m_taskInventory = new TaskInventoryDictionary(); protected TaskInventoryDictionary m_taskInventory = new TaskInventoryDictionary();
public TaskInventoryDictionary TaskInventory
{
get { return m_taskInventory; }
set { m_taskInventory = value; }
}
/// <summary> /// <summary>
/// Tracks whether inventory has changed since the last persistent backup /// Tracks whether inventory has changed since the last persistent backup

View File

@ -101,30 +101,17 @@ namespace OpenSim.Region.Environment.Scenes
[XmlIgnore] [XmlIgnore]
public bool AllowedDrop = false; public bool AllowedDrop = false;
public uint BaseMask = (uint)PermissionMask.All;
public uint Category;
public Int32 CreationDate;
private LLUUID _creatorID;
[XmlIgnore] [XmlIgnore]
public bool DIE_AT_EDGE = false; public bool DIE_AT_EDGE = false;
public uint EveryoneMask = (uint)PermissionMask.None;
public LLObject.ObjectFlags Flags = LLObject.ObjectFlags.None;
public LLUUID GroupID;
public uint GroupMask = (uint)PermissionMask.None;
public LLUUID LastOwnerID;
public uint NextOwnerMask = (uint)PermissionMask.All;
public byte ObjectSaleType;
public LLUUID OwnerID;
public uint OwnerMask = (uint)PermissionMask.All;
public int OwnershipCost;
public uint ParentID = 0;
// TODO: This needs to be persisted in next XML version update! // TODO: This needs to be persisted in next XML version update!
[XmlIgnore] [XmlIgnore]
public int[] PayPrice = {-2,-2,-2,-2,-2}; public int[] PayPrice = {-2,-2,-2,-2,-2};
[XmlIgnore] [XmlIgnore]
public PhysicsActor PhysActor = null; public PhysicsActor PhysActor = null;
public int SalePrice;
//Xantor 20080528 Sound stuff: //Xantor 20080528 Sound stuff:
// Note: This isn't persisted in the database right now, as the fields for that aren't just there yet. // Note: This isn't persisted in the database right now, as the fields for that aren't just there yet.
@ -158,7 +145,8 @@ namespace OpenSim.Region.Environment.Scenes
public uint m_attachmentPoint = (byte)0; public uint m_attachmentPoint = (byte)0;
[XmlIgnore] [XmlIgnore]
public PhysicsVector m_rotationAxis = new PhysicsVector(1f,1f,1f); public PhysicsVector m_rotationAxis = new PhysicsVector(1f,1f,1f);
public LLUUID m_sitTargetAvatar = LLUUID.Zero;
[XmlIgnore] [XmlIgnore]
public bool m_undoing = false; public bool m_undoing = false;
@ -181,6 +169,7 @@ namespace OpenSim.Region.Environment.Scenes
private string m_text = String.Empty; private string m_text = String.Empty;
private string m_touchName = String.Empty; private string m_touchName = String.Empty;
private UndoStack<UndoState> m_undo = new UndoStack<UndoState>(5); private UndoStack<UndoState> m_undo = new UndoStack<UndoState>(5);
private LLUUID _creatorID;
/// <summary> /// <summary>
/// Only used internally to schedule client updates. /// Only used internally to schedule client updates.
@ -346,39 +335,24 @@ namespace OpenSim.Region.Environment.Scenes
#endregion Constructors #endregion Constructors
#region Public Properties #region XML Schema
public LLVector3 AbsolutePosition public LLUUID LastOwnerID;
{ public LLUUID OwnerID;
get { public LLUUID GroupID;
if (m_IsAttachment) public int OwnershipCost;
return GroupPosition; public byte ObjectSaleType;
public int SalePrice;
return m_offsetPosition + m_groupPosition; } public uint Category;
} public Int32 CreationDate;
public uint ParentID = 0;
/// <summary></summary> public LLUUID m_sitTargetAvatar = LLUUID.Zero;
public LLVector3 Acceleration public uint BaseMask = (uint)PermissionMask.All;
{ public uint OwnerMask = (uint)PermissionMask.All;
get { return m_acceleration; } public uint GroupMask = (uint)PermissionMask.None;
set { m_acceleration = value; } public uint EveryoneMask = (uint)PermissionMask.None;
} public uint NextOwnerMask = (uint)PermissionMask.All;
public LLObject.ObjectFlags Flags = LLObject.ObjectFlags.None;
/// <summary></summary>
public LLVector3 AngularVelocity
{
get { return m_angularVelocity; }
set { m_angularVelocity = value; }
}
public byte ClickAction
{
get { return m_clickAction; }
set
{
m_clickAction = value;
}
}
public LLUUID CreatorID { public LLUUID CreatorID {
get get
@ -391,25 +365,68 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public Color Color /// <summary>
/// Exposing this is not particularly good, but it's one of the least evils at the moment to see
/// folder id from prim inventory item data, since it's not (yet) actually stored with the prim.
/// </summary>
public LLUUID FolderID
{ {
get { return m_color; } get { return UUID; }
set set { } // Don't allow assignment, or legacy prims wil b0rk
{
m_color = value;
TriggerScriptChangedEvent(Changed.COLOR);
/* ScheduleFullUpdate() need not be called b/c after
* setting the color, the text will be set, so then
* ScheduleFullUpdate() will be called. */
//ScheduleFullUpdate();
}
} }
public string Description public uint InventorySerial
{ {
get { return m_description; } get { return m_inventorySerial; }
set { m_description = value; } set { m_inventorySerial = value; }
}
public TaskInventoryDictionary TaskInventory
{
get { return m_taskInventory; }
set { m_taskInventory = value; }
}
public uint ObjectFlags
{
get { return (uint)Flags; }
set { Flags = (LLObject.ObjectFlags)value; }
}
public LLUUID UUID
{
get { return m_uuid; }
set { m_uuid = value; }
}
public uint LocalId
{
get { return m_localId; }
set { m_localId = value; }
}
public virtual string Name
{
get { return m_name; }
set { m_name = value; }
}
public byte Material
{
get { return (byte) m_material; }
set { m_material = (LLObject.MaterialType) value; }
}
public ulong RegionHandle
{
get { return m_regionHandle; }
set { m_regionHandle = value; }
}
public int ScriptAccessPin
{
get { return m_scriptAccessPin; }
set { m_scriptAccessPin = (int)value; }
} }
public LLVector3 GroupPosition public LLVector3 GroupPosition
@ -474,51 +491,6 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public int LinkNum
{
get { return m_linkNum; }
set
{
m_linkNum = value;
TriggerScriptChangedEvent(Changed.LINK);
}
}
public uint LocalId
{
get { return m_localId; }
set { m_localId = value; }
}
public byte Material
{
get { return (byte) m_material; }
set { m_material = (LLObject.MaterialType) value; }
}
public virtual string Name
{
get { return m_name; }
set { m_name = value; }
}
public LLUUID ObjectCreator
{
get { return _creatorID; }
}
public uint ObjectFlags
{
get { return (uint)Flags; }
set { Flags = (LLObject.ObjectFlags)value; }
}
public LLUUID ObjectOwner
{
get { return OwnerID; }
}
public LLVector3 OffsetPosition public LLVector3 OffsetPosition
{ {
get { return m_offsetPosition; } get { return m_offsetPosition; }
@ -540,17 +512,6 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public SceneObjectGroup ParentGroup
{
get { return m_parentGroup; }
}
public ulong RegionHandle
{
get { return m_regionHandle; }
set { m_regionHandle = value; }
}
public LLQuaternion RotationOffset public LLQuaternion RotationOffset
{ {
get get
@ -603,134 +564,6 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
public LLVector3 RotationalVelocity
{
get
{
//if (PhysActor.Velocity.x != 0 || PhysActor.Velocity.y != 0
//|| PhysActor.Velocity.z != 0)
//{
if (PhysActor != null)
{
if (PhysActor.IsPhysical)
{
m_rotationalvelocity.FromBytes(PhysActor.RotationalVelocity.GetBytes(),0);
}
}
return m_rotationalvelocity;
}
set { m_rotationalvelocity = value; }
}
public LLVector3 Scale
{
get { return m_shape.Scale; }
set
{
StoreUndoState();
m_shape.Scale = value;
if (PhysActor != null && m_parentGroup != null)
{
if (m_parentGroup.Scene != null)
{
if (m_parentGroup.Scene.PhysicsScene != null)
{
PhysActor.Size = new PhysicsVector(m_shape.Scale.X, m_shape.Scale.Y, m_shape.Scale.Z);
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
}
TriggerScriptChangedEvent(Changed.SCALE);
}
}
public int ScriptAccessPin
{
get { return m_scriptAccessPin; }
set { m_scriptAccessPin = (int)value; }
}
public scriptEvents ScriptEvents
{
get { return m_aggregateScriptEvents; }
}
public PrimitiveBaseShape Shape
{
get { return m_shape; }
set
{
m_shape = value;
TriggerScriptChangedEvent(Changed.SHAPE);
}
}
public string SitName
{
get { return m_sitName; }
set { m_sitName = value; }
}
public Quaternion SitTargetOrientation
{
get { return m_sitTargetOrientation; }
}
public Vector3 SitTargetPosition
{
get { return m_sitTargetPosition; }
}
public bool Stopped
{
get {
double threshold = 0.02;
return (Math.Abs(Velocity.X) < threshold &&
Math.Abs(Velocity.Y) < threshold &&
Math.Abs(Velocity.Z) < threshold &&
Math.Abs(AngularVelocity.X) < threshold &&
Math.Abs(AngularVelocity.Y) < threshold &&
Math.Abs(AngularVelocity.Z) < threshold);
}
}
public string Text
{
get
{
string returnstr = m_text;
if (returnstr.Length > 255)
{
returnstr = returnstr.Substring(0, 254);
}
return returnstr;
}
set
{
m_text = value;
}
}
public string TouchName
{
get { return m_touchName; }
set { m_touchName = value; }
}
public LLUUID UUID
{
get { return m_uuid; }
set { m_uuid = value; }
}
public byte UpdateFlag
{
get { return m_updateFlag; }
set { m_updateFlag = value; }
}
/// <summary></summary> /// <summary></summary>
public LLVector3 Velocity public LLVector3 Velocity
{ {
@ -766,7 +599,215 @@ namespace OpenSim.Region.Environment.Scenes
} }
} }
#endregion Public Properties public LLVector3 RotationalVelocity
{
get
{
//if (PhysActor.Velocity.x != 0 || PhysActor.Velocity.y != 0
//|| PhysActor.Velocity.z != 0)
//{
if (PhysActor != null)
{
if (PhysActor.IsPhysical)
{
m_rotationalvelocity.FromBytes(PhysActor.RotationalVelocity.GetBytes(), 0);
}
}
return m_rotationalvelocity;
}
set { m_rotationalvelocity = value; }
}
/// <summary></summary>
public LLVector3 AngularVelocity
{
get { return m_angularVelocity; }
set { m_angularVelocity = value; }
}
/// <summary></summary>
public LLVector3 Acceleration
{
get { return m_acceleration; }
set { m_acceleration = value; }
}
public string Description
{
get { return m_description; }
set { m_description = value; }
}
public Color Color
{
get { return m_color; }
set
{
m_color = value;
TriggerScriptChangedEvent(Changed.COLOR);
/* ScheduleFullUpdate() need not be called b/c after
* setting the color, the text will be set, so then
* ScheduleFullUpdate() will be called. */
//ScheduleFullUpdate();
}
}
public string Text
{
get
{
string returnstr = m_text;
if (returnstr.Length > 255)
{
returnstr = returnstr.Substring(0, 254);
}
return returnstr;
}
set
{
m_text = value;
}
}
public string SitName
{
get { return m_sitName; }
set { m_sitName = value; }
}
public string TouchName
{
get { return m_touchName; }
set { m_touchName = value; }
}
public int LinkNum
{
get { return m_linkNum; }
set
{
m_linkNum = value;
TriggerScriptChangedEvent(Changed.LINK);
}
}
public byte ClickAction
{
get { return m_clickAction; }
set
{
m_clickAction = value;
}
}
public PrimitiveBaseShape Shape
{
get { return m_shape; }
set
{
m_shape = value;
TriggerScriptChangedEvent(Changed.SHAPE);
}
}
public LLVector3 Scale
{
get { return m_shape.Scale; }
set
{
StoreUndoState();
m_shape.Scale = value;
if (PhysActor != null && m_parentGroup != null)
{
if (m_parentGroup.Scene != null)
{
if (m_parentGroup.Scene.PhysicsScene != null)
{
PhysActor.Size = new PhysicsVector(m_shape.Scale.X, m_shape.Scale.Y, m_shape.Scale.Z);
m_parentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(PhysActor);
}
}
}
TriggerScriptChangedEvent(Changed.SCALE);
}
}
public byte UpdateFlag
{
get { return m_updateFlag; }
set { m_updateFlag = value; }
}
#endregion
//---------------
#region Public Properties with only Get
public LLVector3 AbsolutePosition
{
get {
if (m_IsAttachment)
return GroupPosition;
return m_offsetPosition + m_groupPosition; }
}
public LLUUID ObjectCreator
{
get { return _creatorID; }
}
public LLUUID ObjectOwner
{
get { return OwnerID; }
}
public SceneObjectGroup ParentGroup
{
get { return m_parentGroup; }
}
public scriptEvents ScriptEvents
{
get { return m_aggregateScriptEvents; }
}
public Quaternion SitTargetOrientation
{
get { return m_sitTargetOrientation; }
}
public Vector3 SitTargetPosition
{
get { return m_sitTargetPosition; }
}
public bool Stopped
{
get {
double threshold = 0.02;
return (Math.Abs(Velocity.X) < threshold &&
Math.Abs(Velocity.Y) < threshold &&
Math.Abs(Velocity.Z) < threshold &&
Math.Abs(AngularVelocity.X) < threshold &&
Math.Abs(AngularVelocity.Y) < threshold &&
Math.Abs(AngularVelocity.Z) < threshold);
}
}
#endregion Public Properties with only Get
#region Private Methods #region Private Methods