diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs')
-rw-r--r-- | OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs index 24b9e6b..d88b2bd 100644 --- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs +++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs | |||
@@ -47,7 +47,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
47 | private readonly string m_firstname; | 47 | private readonly string m_firstname; |
48 | private readonly string m_lastname; | 48 | private readonly string m_lastname; |
49 | private readonly Vector3 m_startPos; | 49 | private readonly Vector3 m_startPos; |
50 | private readonly UUID m_uuid = UUID.Random(); | 50 | private UUID m_uuid = UUID.Random(); |
51 | private readonly Scene m_scene; | 51 | private readonly Scene m_scene; |
52 | private readonly UUID m_ownerID; | 52 | private readonly UUID m_ownerID; |
53 | 53 | ||
@@ -174,7 +174,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
174 | #pragma warning disable 67 | 174 | #pragma warning disable 67 |
175 | public event Action<IClientAPI> OnLogout; | 175 | public event Action<IClientAPI> OnLogout; |
176 | public event ObjectPermissions OnObjectPermissions; | 176 | public event ObjectPermissions OnObjectPermissions; |
177 | 177 | public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy; | |
178 | public event MoneyTransferRequest OnMoneyTransferRequest; | 178 | public event MoneyTransferRequest OnMoneyTransferRequest; |
179 | public event ParcelBuy OnParcelBuy; | 179 | public event ParcelBuy OnParcelBuy; |
180 | public event Action<IClientAPI> OnConnectionClosed; | 180 | public event Action<IClientAPI> OnConnectionClosed; |
@@ -380,7 +380,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
380 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; | 380 | public event ClassifiedInfoRequest OnClassifiedInfoRequest; |
381 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; | 381 | public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; |
382 | public event ClassifiedDelete OnClassifiedDelete; | 382 | public event ClassifiedDelete OnClassifiedDelete; |
383 | public event ClassifiedDelete OnClassifiedGodDelete; | 383 | public event ClassifiedGodDelete OnClassifiedGodDelete; |
384 | 384 | ||
385 | public event EventNotificationAddRequest OnEventNotificationAddRequest; | 385 | public event EventNotificationAddRequest OnEventNotificationAddRequest; |
386 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; | 386 | public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; |
@@ -419,6 +419,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
419 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; | 419 | public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; |
420 | public event SimWideDeletesDelegate OnSimWideDeletes; | 420 | public event SimWideDeletesDelegate OnSimWideDeletes; |
421 | public event SendPostcard OnSendPostcard; | 421 | public event SendPostcard OnSendPostcard; |
422 | public event ChangeInventoryItemFlags OnChangeInventoryItemFlags; | ||
422 | public event MuteListEntryUpdate OnUpdateMuteListEntry; | 423 | public event MuteListEntryUpdate OnUpdateMuteListEntry; |
423 | public event MuteListEntryRemove OnRemoveMuteListEntry; | 424 | public event MuteListEntryRemove OnRemoveMuteListEntry; |
424 | public event GodlikeMessage onGodlikeMessage; | 425 | public event GodlikeMessage onGodlikeMessage; |
@@ -446,6 +447,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
446 | public virtual UUID AgentId | 447 | public virtual UUID AgentId |
447 | { | 448 | { |
448 | get { return m_uuid; } | 449 | get { return m_uuid; } |
450 | set { m_uuid = value; } | ||
449 | } | 451 | } |
450 | 452 | ||
451 | public UUID SessionId | 453 | public UUID SessionId |
@@ -854,8 +856,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC | |||
854 | 856 | ||
855 | public void Close() | 857 | public void Close() |
856 | { | 858 | { |
857 | // Remove ourselves from the scene | 859 | Close(true); |
858 | m_scene.RemoveClient(AgentId, false); | 860 | } |
861 | |||
862 | public void Close(bool sendStop) | ||
863 | { | ||
859 | } | 864 | } |
860 | 865 | ||
861 | public void Start() | 866 | public void Start() |