using System.Collections.Generic; using System.Linq; using System.Reflection; namespace Superlazy.UI { public static class SLUIEditorUtil { public static string[] GetAllCommands() { var methods = new Dictionary>(); methods.CreateMethodInfoDictionary(false, typeof(SLEntity)); var components = new List(); components.CreateInstanceList(); var commands = new Dictionary(); commands.Add("None", (null, null)); foreach (var component in components) { commands.CreateCommandInfoToBaseType(component, typeof(SLEntity)); } return commands.Keys.ToArray(); } } }