From feb78b29104cc1c7f5d327bab45edd4d00a88944 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 30 Sep 2015 02:45:11 +0100 Subject: add several options for NPC creation so abusive use can be reduced (restrictive by default) UNTESTED --- OpenSim/Region/Framework/Interfaces/INPCModule.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Interfaces/INPCModule.cs b/OpenSim/Region/Framework/Interfaces/INPCModule.cs index 478833e..8f9a13c 100644 --- a/OpenSim/Region/Framework/Interfaces/INPCModule.cs +++ b/OpenSim/Region/Framework/Interfaces/INPCModule.cs @@ -31,6 +31,16 @@ using OpenSim.Region.Framework.Scenes; namespace OpenSim.Region.Framework.Interfaces { + // option flags for NPCs + public enum NPCOptionsFlags : int + { + None = 0x00, // no flags (max restriction) + AllowNotOwned = 0x01, // allow NPCs to be created not Owned + AllowSenseAsAvatar = 0x02, // allow NPCs to set to be sensed as Avatars + AllowCloneOtherAvatars = 0x04, // allow NPCs to created cloning a avatar in region + NoNPCGroup = 0x08 // NPCs will have no group title, otherwise will have "- NPC -" + } + /// /// Temporary interface. More methods to come at some point to make NPCs /// more object oriented rather than controlling purely through module @@ -284,5 +294,7 @@ namespace OpenSim.Region.Framework.Interfaces /// agent, the agent is unowned or the agent was not an NPC. /// UUID GetOwner(UUID agentID); + + NPCOptionsFlags NPCOptionFlags {get;} } } -- cgit v1.1