public static List <GameConsoleCommand> UpdateList() { List <Type> types = TypeFinder.FindAllTypes <GameConsoleCommand>(); _commands.Clear(); for (int i = 0; i < types.Count; i++) { ConstructorInfo constructor = types[i].GetConstructor(Type.EmptyTypes); GameConsoleCommand command = (GameConsoleCommand)constructor.Invoke(null); if (command.Active) { _commands.Add(command); } } return(_commands); }