SetDataItem() public method

public SetDataItem ( UUID regionID, string item, string value ) : bool
regionID UUID
item string
value string
return bool
        public bool SetDataItem(UUID regionID, string item, string value)
        {
            if (Instance != this)
            {
                return(Instance.SetDataItem(regionID, item, value));
            }

            if (!m_regionData.ContainsKey(regionID))
            {
                return(false);
            }

            m_regionData[regionID].Data[item] = value;

            return(true);
        }
        public bool SetDataItem(UUID regionID, string item, string value)
        {
            if (m_useStaticInstance && Instance != this)
            {
                return(Instance.SetDataItem(regionID, item, value));
            }

            try
            {
                m_regionData[regionID].Data[item] = value;
            }
            catch (KeyNotFoundException)
            {
                return(false);
            }

            return(true);
        }