Exemplo n.º 1
0
        public RegionData GetSpecific(string regionName, UUID scopeID)
        {
            if (m_useStaticInstance && Instance != this)
            {
                return(Instance.GetSpecific(regionName, scopeID));
            }

            string  cleanName = regionName.ToLower();
            Matcher queryMatch;

            queryMatch = delegate(string s) { return(s.Equals(cleanName)); };

            lock (m_regionData)
            {
                foreach (RegionData r in m_regionData.Values)
                {
                    // m_log.DebugFormat("[NULL REGION DATA]: comparing {0} to {1}", cleanName, r.RegionName.ToLower());
                    if (queryMatch(r.RegionName.ToLower()))
                    {
                        return(r);
                    }
                }
            }

            return(null);
        }
Exemplo n.º 2
0
        public RegionData GetSpecific(string regionName, UUID scopeID)
        {
            if (m_useStaticInstance && Instance != this)
            {
                return(Instance.GetSpecific(regionName, scopeID));
            }

            lock (m_regionData)
            {
                foreach (RegionData r in m_regionData.Values)
                {
                    if (r.RegionName.Equals(regionName, StringComparison.InvariantCultureIgnoreCase))
                    {
                        return(r);
                    }
                }
            }

            return(null);
        }