Esempio n. 1
0
        /// <summary>
        /// Only use this instead of GetTypeDefinition() when the type is not within the Terraria module (eg. an XNA type).
        /// </summary>
        /// <param name="fullName"></param>
        /// <returns></returns>
        public static TypeReference GetTypeReference(ModuleDefinition moduleDefinition, string fullName)
        {
            TypeReference reference;

            if (!moduleDefinition.TryGetTypeReference(fullName, out reference))
                Program.ShowErrorMessage(string.Format("Failed to locate {0} type!", fullName));

            return reference;
        }