public bool CreateNewModuleFile(string newModuleName) { //.dat Datei zur Speicherung der Fragen anlegen var moduleSaveFile = new ModuleQuestions(newModuleName); Persist.Save(moduleSaveFile, "Modules\\" + newModuleName); var success = Persist.GetModuleFiles().Contains(newModuleName); Debug.Log("Erstellen der Modul-Speicher-Datei war erfolgreich? " + success); return(success); }
public List <string> GetModulesWithEnoughQuestionWarningAsList() { var tmpModuleList = new List <string>(module); var allModuls = Persist.GetModuleFiles(); for (var index = 0; index < allModuls.Count; index++) { var modul = allModuls[index]; var loadedModuleFile = Persist.Load <ModuleQuestions>("Modules\\" + modul); if (!loadedModuleFile.HasEnoughQuestions()) { tmpModuleList[index] += " (" + loadedModuleFile.GetCombinedNumberOfQuestions() + "/90 Fragen)"; } } return(tmpModuleList); }
public List <string> GetModulesAsList() { // Refresh module = Persist.GetModuleFiles(); return(module); }
private void Start() { //Initiales Laden der Module module = Persist.GetModuleFiles(); }