aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Interfaces/INPCModule.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-01-12 18:14:19 +0000
committerJustin Clark-Casey (justincc)2012-01-12 18:14:19 +0000
commitb47c0d7e51bdb4d4bfa34f0952593f94c657d19c (patch)
treeff869b0264b252f6246d0c8d76e41cfd856f17c3 /OpenSim/Region/Framework/Interfaces/INPCModule.cs
parentIf deserializing a scene object fails during IAR load then ignore the object ... (diff)
downloadopensim-SC-b47c0d7e51bdb4d4bfa34f0952593f94c657d19c.zip
opensim-SC-b47c0d7e51bdb4d4bfa34f0952593f94c657d19c.tar.gz
opensim-SC-b47c0d7e51bdb4d4bfa34f0952593f94c657d19c.tar.bz2
opensim-SC-b47c0d7e51bdb4d4bfa34f0952593f94c657d19c.tar.xz
refactor: Move existing npc owner checks to NPCModule.CheckPermissions() methods and expose on interface for external calls.
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces/INPCModule.cs')
-rw-r--r--OpenSim/Region/Framework/Interfaces/INPCModule.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Interfaces/INPCModule.cs b/OpenSim/Region/Framework/Interfaces/INPCModule.cs
index cac8479..3ec1bda 100644
--- a/OpenSim/Region/Framework/Interfaces/INPCModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/INPCModule.cs
@@ -53,6 +53,14 @@ namespace OpenSim.Region.Framework.Interfaces
53 bool IsNPC(UUID agentID, Scene scene); 53 bool IsNPC(UUID agentID, Scene scene);
54 54
55 /// <summary> 55 /// <summary>
56 /// Check if the caller has permission to manipulate the given NPC.
57 /// </summary>
58 /// <param name="npcID"></param>
59 /// <param name="callerID"></param>
60 /// <returns>true if they do, false if they don't or if there's no NPC with the given ID.</returns>
61 bool CheckPermissions(UUID npcID, UUID callerID);
62
63 /// <summary>
56 /// Set the appearance for an NPC. 64 /// Set the appearance for an NPC.
57 /// </summary> 65 /// </summary>
58 /// <param name="agentID"></param> 66 /// <param name="agentID"></param>