mirror of
https://github.com/opensim/opensim.git
synced 2026-07-14 03:15:36 +08:00
add several options for NPC creation so abusive use can be reduced (restrictive by default) UNTESTED
This commit is contained in:
@@ -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;}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user