From 134f86e8d5c414409631b25b8c6f0ee45fbd8631 Mon Sep 17 00:00:00 2001
From: David Walter Seikel
Date: Thu, 3 Nov 2016 21:44:39 +1000
Subject: Initial update to OpenSim 0.8.2.1 source code.
---
OpenSim/Region/Framework/Interfaces/INPCModule.cs | 37 +++++++++++++++++++++++
1 file changed, 37 insertions(+)
(limited to 'OpenSim/Region/Framework/Interfaces/INPCModule.cs')
diff --git a/OpenSim/Region/Framework/Interfaces/INPCModule.cs b/OpenSim/Region/Framework/Interfaces/INPCModule.cs
index 9817cf7..478833e 100644
--- a/OpenSim/Region/Framework/Interfaces/INPCModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/INPCModule.cs
@@ -72,6 +72,32 @@ namespace OpenSim.Region.Framework.Interfaces
AvatarAppearance appearance);
///
+ /// Create an NPC with a user-supplied agentID
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// The desired agent ID
+ ///
+ ///
+ /// Make the NPC show up as an agent on LSL sensors. The default is
+ /// that they show up as the NPC type instead, but this is currently
+ /// an OpenSim-only extension.
+ ///
+ ///
+ ///
+ /// The avatar appearance to use for the new NPC.
+ ///
+ ///
+ /// The UUID of the ScenePresence created. UUID.Zero if there was a
+ /// failure.
+ ///
+ UUID CreateNPC(string firstname, string lastname,
+ Vector3 position, UUID agentID, UUID owner, bool senseAsAgent, Scene scene,
+ AvatarAppearance appearance);
+
+ ///
/// Check if the agent is an NPC.
///
///
@@ -96,6 +122,17 @@ namespace OpenSim.Region.Framework.Interfaces
///
/// Check if the caller has permission to manipulate the given NPC.
///
+ ///
+ /// A caller has permission if
+ /// * An NPC exists with the given npcID.
+ /// * The caller UUID given is UUID.Zero.
+ /// * The avatar is unowned (owner is UUID.Zero).
+ /// * The avatar is owned and the owner and callerID match.
+ /// * The avatar is owned and the callerID matches its agentID.
+ ///
+ ///
+ ///
+ /// true if they do, false if they don't.
///
///
///
--
cgit v1.1