public static async Task AddSetToList(string listName_, string curvename_, PreDefinedSet set_, string user_=null) { // get the list var configs = _structs[set_].Select(x => new UserListItem { CurveName=curvename_, ListName=listName_, Points=x, SType=StructureType.Swap, UserName= user_ ?? SymmetryEnvironment.UserName }); // might have been added to the list already so filter out those that have configs = configs.Where(x => UserListCache.Instance().DoesConfigAlreadyExist(x) == false); // update the cache await UserListCache.Instance().AddOrUpdateDefinitions(configs); }
public static PointDef[][] GetStructuresForSet(PreDefinedSet set_) { return _structs[set_]; }