//User types are those types defined in the registered assemblies
        List <Type> GetUserTypes()
        {
            List <Assembly> assemblies = GetRegisteredAssemblies();

            notificationsHandler.NotifyMessage("Loading CommandSystem data from: " + string.Join(", ", assemblies.ConvertAll(GetAssemblyFile).ToArray()) + ".");

            List <Type> types = new List <Type>();

            for (int i = 0; i < assemblies.Count; i++)
            {
                types.AddRange(assemblies[i].GetTypes());
            }
            return(types);
        }
Esempio n. 2
0
 void FindParsers()
 {
     Type[] types = finder.userClassesAndStructs;
     for (int i = 0; i < types.Length; i++)
     {
         FindParsersInType(types[i]);
     }
     isDataLoaded = true;
     notificationsHandler.NotifyMessage($"Loaded {parsers.Count} parsers:\n{string.Join("\n", parsers.ToList().ConvertAll(x => x.Key.Namespace + "." + SignatureBuilder.TypeToString(x.Key)).ToArray())}");
 }