Connect dewww request packets to the land module to makle dwell work
parent
7beb8a5abb
commit
aa11fbfe34
|
@ -120,6 +120,7 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||||
client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner);
|
client.OnParcelGodForceOwner += new ParcelGodForceOwner(handleParcelGodForceOwner);
|
||||||
client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim);
|
client.OnParcelReclaim += new ParcelReclaim(handleParcelReclaim);
|
||||||
client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo);
|
client.OnParcelInfoRequest += new ParcelInfoRequest(handleParcelInfo);
|
||||||
|
client.OnParcelDwellRequest += new ParcelDwellRequest(handleParcelDwell);
|
||||||
if (m_scene.Entities.ContainsKey(client.AgentId))
|
if (m_scene.Entities.ContainsKey(client.AgentId))
|
||||||
{
|
{
|
||||||
SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true);
|
SendLandUpdate((ScenePresence)m_scene.Entities[client.AgentId], true);
|
||||||
|
@ -1261,6 +1262,18 @@ namespace OpenSim.Region.Environment.Modules.World.Land
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
private void handleParcelDwell(int localID, IClientAPI remoteClient)
|
||||||
|
{
|
||||||
|
ILandObject selectedParcel = null;
|
||||||
|
lock (m_landList)
|
||||||
|
{
|
||||||
|
if (!m_landList.TryGetValue(localID, out selectedParcel))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
remoteClient.SendParcelDwellReply(localID, selectedParcel.landData.GlobalID, selectedParcel.landData.Dwell);
|
||||||
|
}
|
||||||
|
|
||||||
private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID)
|
private void handleParcelInfo(IClientAPI remoteClient, UUID parcelID)
|
||||||
{
|
{
|
||||||
if (parcelID == UUID.Zero)
|
if (parcelID == UUID.Zero)
|
||||||
|
|
Loading…
Reference in New Issue