Esempio n. 1
0
 public CWEIcon(CWEIcon toCopy)
 {
     Name        = toCopy.Name;
     Description = toCopy.Description;
     Texture     = m_Texture;
     Material    = toCopy.Material;
 }
Esempio n. 2
0
        public static CWEIcon GetIcon(string iconName)
        {
            if (Instance.AvailableIcons.ContainsKey(iconName))
            {
                return(Instance.AvailableIcons[iconName]);
            }

            var newIcon = new CWEIcon(GetDefaultIcon());

            newIcon.Name        = iconName;
            newIcon.Description = "CWE-" + iconName;

            return(newIcon);
        }