示例#1
0
        /// <summary>
        /// Gets the resource subtype of the node
        /// </summary>
        /// <returns></returns>
        private static GMResourceSubType GetResourceSubType(string name)
        {
            // Iterate through resource subtype enumerations
            foreach (string enumeration in EnumString.GetEnumStrings(typeof(GMResourceSubType)))
            {
                if (name == enumeration)
                {
                    return((GMResourceSubType)EnumString.GetEnumFromString <GMResourceSubType>(name));
                }
            }

            // No match, set to none
            return(GMResourceSubType.None);
        }