diff options
author | UbitUmarov | 2015-09-30 02:45:11 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-30 02:45:11 +0100 |
commit | feb78b29104cc1c7f5d327bab45edd4d00a88944 (patch) | |
tree | 86a1e500e2824d5ca741c8af676dee38f8e63cf4 /OpenSim/Region/Framework/Interfaces | |
parent | remove some restrictions on NPCs creation (diff) | |
download | opensim-SC_OLD-feb78b29104cc1c7f5d327bab45edd4d00a88944.zip opensim-SC_OLD-feb78b29104cc1c7f5d327bab45edd4d00a88944.tar.gz opensim-SC_OLD-feb78b29104cc1c7f5d327bab45edd4d00a88944.tar.bz2 opensim-SC_OLD-feb78b29104cc1c7f5d327bab45edd4d00a88944.tar.xz |
add several options for NPC creation so abusive use can be reduced (restrictive by default) UNTESTED
Diffstat (limited to 'OpenSim/Region/Framework/Interfaces')
-rw-r--r-- | OpenSim/Region/Framework/Interfaces/INPCModule.cs | 12 |
1 files changed, 12 insertions, 0 deletions
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; | |||
31 | 31 | ||
32 | namespace OpenSim.Region.Framework.Interfaces | 32 | namespace OpenSim.Region.Framework.Interfaces |
33 | { | 33 | { |
34 | // option flags for NPCs | ||
35 | public enum NPCOptionsFlags : int | ||
36 | { | ||
37 | None = 0x00, // no flags (max restriction) | ||
38 | AllowNotOwned = 0x01, // allow NPCs to be created not Owned | ||
39 | AllowSenseAsAvatar = 0x02, // allow NPCs to set to be sensed as Avatars | ||
40 | AllowCloneOtherAvatars = 0x04, // allow NPCs to created cloning a avatar in region | ||
41 | NoNPCGroup = 0x08 // NPCs will have no group title, otherwise will have "- NPC -" | ||
42 | } | ||
43 | |||
34 | /// <summary> | 44 | /// <summary> |
35 | /// Temporary interface. More methods to come at some point to make NPCs | 45 | /// Temporary interface. More methods to come at some point to make NPCs |
36 | /// more object oriented rather than controlling purely through module | 46 | /// more object oriented rather than controlling purely through module |
@@ -284,5 +294,7 @@ namespace OpenSim.Region.Framework.Interfaces | |||
284 | /// agent, the agent is unowned or the agent was not an NPC. | 294 | /// agent, the agent is unowned or the agent was not an NPC. |
285 | /// </returns> | 295 | /// </returns> |
286 | UUID GetOwner(UUID agentID); | 296 | UUID GetOwner(UUID agentID); |
297 | |||
298 | NPCOptionsFlags NPCOptionFlags {get;} | ||
287 | } | 299 | } |
288 | } | 300 | } |