diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 67 |
1 files changed, 57 insertions, 10 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index fb644b7..7228348 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -61,10 +61,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
61 | private readonly string m_firstname; | 61 | private readonly string m_firstname; |
62 | private readonly string m_lastname; | 62 | private readonly string m_lastname; |
63 | private readonly Vector3 m_startPos; | 63 | private readonly Vector3 m_startPos; |
64 | private readonly UUID m_uuid; | 64 | private UUID m_uuid = UUID.Random(); |
65 | private readonly Scene m_scene; | 65 | private readonly Scene m_scene; |
66 | private readonly UUID m_ownerID; | 66 | private readonly UUID m_ownerID; |
67 | 67 | ||
68 | public List<uint> SelectedObjects {get; private set;} | ||
69 | |||
68 | public NPCAvatar( | 70 | public NPCAvatar( |
69 | string firstname, string lastname, Vector3 position, UUID ownerID, bool senseAsAgent, Scene scene) | 71 | string firstname, string lastname, Vector3 position, UUID ownerID, bool senseAsAgent, Scene scene) |
70 | { | 72 | { |
@@ -94,6 +96,8 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
94 | get { return m_scene; } | 96 | get { return m_scene; } |
95 | } | 97 | } |
96 | 98 | ||
99 | public int PingTimeMS { get { return 0; } } | ||
100 | |||
97 | public UUID OwnerID | 101 | public UUID OwnerID |
98 | { | 102 | { |
99 | get { return m_ownerID; } | 103 | get { return m_ownerID; } |
@@ -187,9 +191,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
187 | { | 191 | { |
188 | 192 | ||
189 | } | 193 | } |
190 | 194 | ||
191 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot, | 195 | public void SendFindAgent(UUID HunterID, UUID PreyID, double GlobalX, double GlobalY) |
192 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | 196 | { |
197 | |||
198 | } | ||
199 | |||
200 | public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, | ||
201 | Quaternion SitOrientation, bool autopilot, | ||
202 | Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook) | ||
193 | { | 203 | { |
194 | 204 | ||
195 | } | 205 | } |
@@ -248,7 +258,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
248 | #pragma warning disable 67 | 258 | #pragma warning disable 67 |
249 | public event Action<IClientAPI> OnLogout; | 259 | public event Action<IClientAPI> OnLogout; |
250 | public event ObjectPermissions OnObjectPermissions; | 260 | public event ObjectPermissions OnObjectPermissions; |
251 | 261 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
252 | public event MoneyTransferRequest OnMoneyTransferRequest; | 262 | public event MoneyTransferRequest OnMoneyTransferRequest; |
253 | public event ParcelBuy OnParcelBuy; | 263 | public event ParcelBuy OnParcelBuy; |
254 | public event Action<IClientAPI> OnConnectionClosed; | 264 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -268,6 +278,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
268 | public event ObjectDrop OnObjectDrop; | 278 | public event ObjectDrop OnObjectDrop; |
269 | public event StartAnim OnStartAnim; | 279 | public event StartAnim OnStartAnim; |
270 | public event StopAnim OnStopAnim; | 280 | public event StopAnim OnStopAnim; |
281 | public event ChangeAnim OnChangeAnim; | ||
271 | public event LinkObjects OnLinkObjects; | 282 | public event LinkObjects OnLinkObjects; |
272 | public event DelinkObjects OnDelinkObjects; | 283 | public event DelinkObjects OnDelinkObjects; |
273 | public event RequestMapBlocks OnRequestMapBlocks; | 284 | public event RequestMapBlocks OnRequestMapBlocks; |
@@ -318,6 +329,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
318 | public event UpdatePrimTexture OnUpdatePrimTexture; | 329 | public event UpdatePrimTexture OnUpdatePrimTexture; |
319 | public event UpdateVector OnUpdatePrimGroupPosition; | 330 | public event UpdateVector OnUpdatePrimGroupPosition; |
320 | public event UpdateVector OnUpdatePrimSinglePosition; | 331 | public event UpdateVector OnUpdatePrimSinglePosition; |
332 | public event ClientChangeObject onClientChangeObject; | ||
321 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; | 333 | public event UpdatePrimRotation OnUpdatePrimGroupRotation; |
322 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; | 334 | public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; |
323 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; | 335 | public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; |
@@ -456,7 +468,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
456 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 468 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
457 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 469 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
458 | public event ClassifiedDelete OnClassifiedDelete; | 470 | public event ClassifiedDelete OnClassifiedDelete; |
459 | public event ClassifiedDelete OnClassifiedGodDelete; | 471 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
460 | 472 | ||
461 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 473 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
462 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 474 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -495,11 +507,12 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
495 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 507 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
496 | public event SimWideDeletesDelegate OnSimWideDeletes; | 508 | public event SimWideDeletesDelegate OnSimWideDeletes; |
497 | public event SendPostcard OnSendPostcard; | 509 | public event SendPostcard OnSendPostcard; |
510 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
498 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 511 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
499 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 512 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
500 | public event GodlikeMessage onGodlikeMessage; | 513 | public event GodlikeMessage onGodlikeMessage; |
501 | public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; | 514 | public event GodUpdateRegionInfoUpdate OnGodUpdateRegionInfoUpdate; |
502 | 515 | public event GenericCall2 OnUpdateThrottles; | |
503 | #pragma warning restore 67 | 516 | #pragma warning restore 67 |
504 | 517 | ||
505 | #endregion | 518 | #endregion |
@@ -522,6 +535,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
522 | public virtual UUID AgentId | 535 | public virtual UUID AgentId |
523 | { | 536 | { |
524 | get { return m_uuid; } | 537 | get { return m_uuid; } |
538 | set { m_uuid = value; } | ||
525 | } | 539 | } |
526 | 540 | ||
527 | public UUID SessionId | 541 | public UUID SessionId |
@@ -627,6 +641,17 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
627 | public virtual void SetChildAgentThrottle(byte[] throttle) | 641 | public virtual void SetChildAgentThrottle(byte[] throttle) |
628 | { | 642 | { |
629 | } | 643 | } |
644 | |||
645 | public virtual void SetChildAgentThrottle(byte[] throttle, float factor) | ||
646 | { | ||
647 | |||
648 | } | ||
649 | |||
650 | public void SetAgentThrottleSilent(int throttle, int setting) | ||
651 | { | ||
652 | |||
653 | |||
654 | } | ||
630 | public byte[] GetThrottlesPacked(float multiplier) | 655 | public byte[] GetThrottlesPacked(float multiplier) |
631 | { | 656 | { |
632 | return new byte[0]; | 657 | return new byte[0]; |
@@ -665,6 +690,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
665 | 690 | ||
666 | } | 691 | } |
667 | 692 | ||
693 | public virtual bool CanSendLayerData() | ||
694 | { | ||
695 | return false; | ||
696 | } | ||
697 | |||
668 | public virtual void SendLayerData(float[] map) | 698 | public virtual void SendLayerData(float[] map) |
669 | { | 699 | { |
670 | } | 700 | } |
@@ -772,6 +802,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
772 | { | 802 | { |
773 | } | 803 | } |
774 | 804 | ||
805 | public void SendInventoryItemCreateUpdate(InventoryItemBase Item, UUID transactionID, uint callbackId) | ||
806 | { | ||
807 | } | ||
808 | |||
775 | public virtual void SendRemoveInventoryItem(UUID itemID) | 809 | public virtual void SendRemoveInventoryItem(UUID itemID) |
776 | { | 810 | { |
777 | } | 811 | } |
@@ -788,7 +822,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
788 | { | 822 | { |
789 | } | 823 | } |
790 | 824 | ||
791 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data) | 825 | public virtual void SendXferPacket(ulong xferID, uint packet, byte[] data, bool isTaskInventory) |
792 | { | 826 | { |
793 | } | 827 | } |
794 | public virtual void SendAbortXferPacket(ulong xferID) | 828 | public virtual void SendAbortXferPacket(ulong xferID) |
@@ -933,10 +967,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
933 | 967 | ||
934 | public void Close() | 968 | public void Close() |
935 | { | 969 | { |
936 | Close(false); | 970 | Close(true, false); |
937 | } | 971 | } |
938 | 972 | ||
939 | public void Close(bool force) | 973 | public void Close(bool sendStop, bool force) |
940 | { | 974 | { |
941 | // Remove ourselves from the scene | 975 | // Remove ourselves from the scene |
942 | m_scene.RemoveClient(AgentId, false); | 976 | m_scene.RemoveClient(AgentId, false); |
@@ -1155,6 +1189,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1155 | { | 1189 | { |
1156 | } | 1190 | } |
1157 | 1191 | ||
1192 | public void SendAgentGroupDataUpdate(UUID avatarID, GroupMembershipData[] data) | ||
1193 | { | ||
1194 | } | ||
1195 | |||
1158 | public void SendTerminateFriend(UUID exFriendID) | 1196 | public void SendTerminateFriend(UUID exFriendID) |
1159 | { | 1197 | { |
1160 | } | 1198 | } |
@@ -1269,5 +1307,14 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
1269 | { | 1307 | { |
1270 | } | 1308 | } |
1271 | 1309 | ||
1310 | public void SendPartFullUpdate(ISceneEntity ent, uint? parentID) | ||
1311 | { | ||
1312 | } | ||
1313 | |||
1314 | public int GetAgentThrottleSilent(int throttle) | ||
1315 | { | ||
1316 | return 0; | ||
1317 | } | ||
1318 | |||
1272 | } | 1319 | } |
1273 | } | 1320 | } |