add basic SendFindAgent() to lludp. Future use may require a list of pairs (X,Y). For now one pair is good enough.
parent
8922d58f05
commit
6821ace3c6
|
@ -1392,6 +1392,8 @@ namespace OpenSim.Framework
|
||||||
|
|
||||||
void SendAgentOnline(UUID[] agentIDs);
|
void SendAgentOnline(UUID[] agentIDs);
|
||||||
|
|
||||||
|
void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY);
|
||||||
|
|
||||||
void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
||||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook);
|
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook);
|
||||||
|
|
||||||
|
|
|
@ -2705,7 +2705,23 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||||
OutPacket(offp, ThrottleOutPacketType.Task);
|
OutPacket(offp, ThrottleOutPacketType.Task);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
|
||||||
|
{
|
||||||
|
FindAgentPacket fap = new FindAgentPacket();
|
||||||
|
fap.AgentBlock.Hunter = HunterID;
|
||||||
|
fap.AgentBlock.Prey = PreyID;
|
||||||
|
fap.AgentBlock.SpaceIP = 0;
|
||||||
|
|
||||||
|
fap.LocationBlock = new FindAgentPacket.LocationBlockBlock[1];
|
||||||
|
fap.LocationBlock[0] = new FindAgentPacket.LocationBlockBlock();
|
||||||
|
fap.LocationBlock[0].GlobalX = GlobalX;
|
||||||
|
fap.LocationBlock[0].GlobalY = GlobalY;
|
||||||
|
|
||||||
|
OutPacket(fap, ThrottleOutPacketType.Task);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
|
||||||
|
Quaternion SitOrientation, bool autopilot,
|
||||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||||
{
|
{
|
||||||
AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
|
AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
|
||||||
|
|
|
@ -1375,6 +1375,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,13 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
|
||||||
|
Quaternion SitOrientation, bool autopilot,
|
||||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -943,7 +943,12 @@ namespace OpenSim.Tests.Common
|
||||||
ReceivedOnlineNotifications.AddRange(agentIDs);
|
ReceivedOnlineNotifications.AddRange(agentIDs);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
|
public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public void SendSitResponse(UUID TargetID, Vector3 OffsetPos,
|
||||||
|
Quaternion SitOrientation, bool autopilot,
|
||||||
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue