add several options for NPC creation so abusive use can be reduced (restrictive by default) UNTESTED

This commit is contained in:
UbitUmarov
2015-09-30 02:45:11 +01:00
parent 1124d14eb0
commit feb78b2910
4 changed files with 96 additions and 10 deletions

View File

@@ -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 -"
}
/// <summary>
/// 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.
/// </returns>
UUID GetOwner(UUID agentID);
NPCOptionsFlags NPCOptionFlags {get;}
}
}