refactor: Make SOP.Description an automatic property
parent
08bc6622dd
commit
3b141e5eee
|
@ -235,7 +235,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
private byte[] m_TextureAnimation;
|
private byte[] m_TextureAnimation;
|
||||||
private byte m_clickAction;
|
private byte m_clickAction;
|
||||||
private Color m_color = Color.Black;
|
private Color m_color = Color.Black;
|
||||||
private string m_description = String.Empty;
|
|
||||||
private readonly List<uint> m_lastColliders = new List<uint>();
|
private readonly List<uint> m_lastColliders = new List<uint>();
|
||||||
private int m_linkNum;
|
private int m_linkNum;
|
||||||
|
|
||||||
|
@ -325,6 +324,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_TextureAnimation = Utils.EmptyBytes;
|
m_TextureAnimation = Utils.EmptyBytes;
|
||||||
m_particleSystem = Utils.EmptyBytes;
|
m_particleSystem = Utils.EmptyBytes;
|
||||||
Rezzed = DateTime.UtcNow;
|
Rezzed = DateTime.UtcNow;
|
||||||
|
Description = String.Empty;
|
||||||
|
|
||||||
m_inventory = new SceneObjectPartInventory(this);
|
m_inventory = new SceneObjectPartInventory(this);
|
||||||
}
|
}
|
||||||
|
@ -344,10 +344,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
m_name = "Primitive";
|
m_name = "Primitive";
|
||||||
|
|
||||||
Rezzed = DateTime.UtcNow;
|
Rezzed = DateTime.UtcNow;
|
||||||
_creationDate = (int)Utils.DateTimeToUnixTime(Rezzed);
|
Description = String.Empty;
|
||||||
_ownerID = ownerID;
|
CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed);
|
||||||
_creatorID = _ownerID;
|
LastOwnerID = CreatorID = OwnerID = ownerID;
|
||||||
_lastOwnerID = UUID.Zero;
|
|
||||||
UUID = UUID.Random();
|
UUID = UUID.Random();
|
||||||
Shape = shape;
|
Shape = shape;
|
||||||
// Todo: Add More Object Parameter from above!
|
// Todo: Add More Object Parameter from above!
|
||||||
|
@ -892,11 +891,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
set { m_acceleration = value; }
|
set { m_acceleration = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Description
|
public string Description { get; set; }
|
||||||
{
|
|
||||||
get { return m_description; }
|
|
||||||
set { m_description = value; }
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <value>
|
/// <value>
|
||||||
/// Text color.
|
/// Text color.
|
||||||
|
|
Loading…
Reference in New Issue