示例#1
0
 /// <summary>
 /// Get all of the atoms that have a controller
 /// </summary>
 /// <param name="sc"></param>
 /// <returns></returns>
 public static IEnumerable <Atom> GetSelectableAtoms(this SuperController sc)
 {
     return(sc.GetAtoms().Where((a) => a.mainController != null));
 }
示例#2
0
 /// <summary>
 /// Get all plugin storables
 /// </summary>
 /// <param name="sc"></param>
 /// <returns></returns>
 public static IEnumerable <JSONStorable> GetAllPlugins(this SuperController sc)
 {
     return(sc.GetAtoms().SelectMany((a) => a.GetPluginStorables()));
 }