Ejemplo n.º 1
0
        /// <summary>
        /// Returns the attribute specified by name, or null if not found.
        /// </summary>
        /// <param name="name">Name of attribute</param>
        public HEU_OutputAttribute GetAttribute(string name)
        {
            HEU_OutputAttribute attr = null;

            _attributes.TryGetValue(name, out attr);
            return(attr);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Add the given attribute to the internal map by name.
 /// </summary>
 /// <param name="attribute">Attribute data to store</param>
 public void SetAttribute(HEU_OutputAttribute attribute)
 {
     if (string.IsNullOrEmpty(attribute._name))
     {
         Debug.LogWarningFormat("Unable to store attribute with empty name!", attribute._name);
         return;
     }
     _attributes.Add(attribute._name, attribute);
 }