mirror of
https://github.com/opensim/opensim.git
synced 2026-08-07 09:45:47 +08:00
refactor: rename SOG/SOP.GetProperties() to SendPropertiesToClient() to reflect what it actually does
This also makes it consistent with some other methods that send data to the client.
This commit is contained in:
@@ -1305,8 +1305,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
#endregion Public Properties with only Get
|
||||
|
||||
#region Private Methods
|
||||
|
||||
private uint ApplyMask(uint val, bool set, uint mask)
|
||||
{
|
||||
if (set)
|
||||
@@ -1327,14 +1325,27 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
m_updateFlag = 0;
|
||||
}
|
||||
|
||||
private void SendObjectPropertiesToClient(UUID AgentID)
|
||||
/// <summary>
|
||||
/// Send this part's properties (name, description, inventory serial, base mask, etc.) to a client
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
public void SendPropertiesToClient(IClientAPI client)
|
||||
{
|
||||
client.SendObjectPropertiesReply(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// For the scene object group to which this part belongs, send that scene object's root part properties to a client.
|
||||
/// </summary>
|
||||
/// <param name="AgentID"></param>
|
||||
private void SendRootPartPropertiesToClient(UUID AgentID)
|
||||
{
|
||||
m_parentGroup.Scene.ForEachScenePresence(delegate(ScenePresence avatar)
|
||||
{
|
||||
// Ugly reference :(
|
||||
if (avatar.UUID == AgentID)
|
||||
{
|
||||
m_parentGroup.GetProperties(avatar.ControllingClient);
|
||||
m_parentGroup.SendPropertiesToClient(avatar.ControllingClient);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1363,8 +1374,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// }
|
||||
// }
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Public Methods
|
||||
|
||||
public void ResetExpire()
|
||||
@@ -2030,11 +2039,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
return Vector3.Zero;
|
||||
}
|
||||
|
||||
public void GetProperties(IClientAPI client)
|
||||
{
|
||||
client.SendObjectPropertiesReply(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Method for a prim to get it's world position from the group.
|
||||
/// </summary>
|
||||
@@ -3453,7 +3457,7 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
{
|
||||
_groupID = groupID;
|
||||
if (client != null)
|
||||
GetProperties(client);
|
||||
SendPropertiesToClient(client);
|
||||
m_updateFlag = 2;
|
||||
}
|
||||
|
||||
@@ -4273,10 +4277,10 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
SendFullUpdateToAllClients();
|
||||
|
||||
SendObjectPropertiesToClient(AgentID);
|
||||
|
||||
SendRootPartPropertiesToClient(AgentID);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user