Esempio n. 1
0
        public void InitializeAllDefinition(IConfigProvider config_provider)
        {
            if (m_initialized)
            {
                return;
            }
            var enumerator = ms_all_ids.GetEnumerator();

            while (enumerator.MoveNext())
            {
                AttributeData data = config_provider.GetAttributeData(enumerator.Current.Key);
                if (data == null)
                {
                    continue;
                }
                AttributeDefinition definition = new AttributeDefinition(data);
                m_definitions_by_id[data.m_attribute_id]     = definition;
                m_definitions_by_name[data.m_attribute_name] = definition;
            }
            BuildStaticDependency();
            m_initialized = true;
        }