From 375163a6fece8b3a57c7555246abe8338223a599 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Tue, 29 Apr 2008 14:04:55 +0000 Subject: * Spring cleaning. * Added new generic "Location" class to handle 2D integer locations. Going to use it to replace all RegionHandle and X,Y coordinate references throughout the entire project. You have been warned. --- OpenSim/Framework/ACL.cs | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'OpenSim/Framework/ACL.cs') diff --git a/OpenSim/Framework/ACL.cs b/OpenSim/Framework/ACL.cs index 88a3034..29d7f7a 100644 --- a/OpenSim/Framework/ACL.cs +++ b/OpenSim/Framework/ACL.cs @@ -43,8 +43,8 @@ namespace OpenSim.Framework /// public class ACL { - private Dictionary Roles = new Dictionary(); private Dictionary Resources = new Dictionary(); + private Dictionary Roles = new Dictionary(); public ACL AddRole(Role role) { @@ -125,14 +125,14 @@ namespace OpenSim.Framework { protected Role m_role; - public Role ErrorRole + public AlreadyContainsRoleException(Role role) { - get { return m_role; } + m_role = role; } - public AlreadyContainsRoleException(Role role) + public Role ErrorRole { - m_role = role; + get { return m_role; } } public override string ToString() @@ -164,6 +164,18 @@ namespace OpenSim.Framework private Role[] m_parents; private Dictionary m_resources = new Dictionary(); + public Role(string name) + { + m_name = name; + m_parents = null; + } + + public Role(string name, Role[] parents) + { + m_name = name; + m_parents = parents; + } + public string Name { get { return m_name; } @@ -201,32 +213,20 @@ namespace OpenSim.Framework { m_resources[resource] = perm; } - - public Role(string name) - { - m_name = name; - m_parents = null; - } - - public Role(string name, Role[] parents) - { - m_name = name; - m_parents = parents; - } } public class Resource { private string m_name; - public string Name + public Resource(string name) { - get { return m_name; } + m_name = name; } - public Resource(string name) + public string Name { - m_name = name; + get { return m_name; } } } -- cgit v1.1