public string getSaveString() { string str = "<folder name=\"" + Folder.Filter(this.name) + "\">\n"; for (int index = 0; index < this.folders.Count; ++index) { str += this.folders[index].getSaveString(); } for (int index = 0; index < this.files.Count; ++index) { str = str + "<file name=\"" + Folder.Filter(this.files[index].name) + "\">" + Folder.Filter(this.files[index].data) + "</file>\n"; } return(str + "</folder>\n"); }
public string getSaveString() { var str = "<mission next=\"" + nextMission + "\" goals=\"" + reloadGoalsSourceFile + "\""; if (wasAutoGenerated) { str = str + " genTarget=\"" + genTarget + "\" genFile=\"" + genFile + "\" genPath=\"" + genPath + "\" genTargetName=\"" + genTargetName + "\" genOther=\"" + genOther + "\""; } return(string.Concat(str, " activeCheck=\"", activeCheck, "\">\n") + "<email sender=\"" + email.sender + "\" subject=\"" + email.subject + "\">" + Folder.Filter(email.body) + "</email>" + "<endFunc val=\"" + endFunctionValue + "\" name=\"" + endFunctionName + "\" />" + "<posting title=\"" + postingTitle + "\">" + Folder.Filter(postingBody) + "</posting>" + "</mission>"); }
public string GetSaveString() { StringBuilder stringBuilder1 = new StringBuilder(); stringBuilder1.Append("<Memory>\r\n"); if (this.DataBlocks != null && this.DataBlocks.Count > 0) { stringBuilder1.Append("<Data>"); for (int index = 0; index < this.DataBlocks.Count; ++index) { stringBuilder1.Append("<Block>" + Folder.Filter(this.DataBlocks[index]) + "</Block>\r\n"); } stringBuilder1.Append("</Data>\r\n"); } if (this.CommandsRun != null && this.CommandsRun.Count > 0) { stringBuilder1.Append("<Commands>"); for (int index = 0; index < this.CommandsRun.Count; ++index) { stringBuilder1.Append("<Command>" + Folder.Filter(this.CommandsRun[index]) + "</Command>\r\n"); } stringBuilder1.Append("</Commands>\r\n"); } if (this.FileFragments != null && this.FileFragments.Count > 0) { stringBuilder1.Append("<FileFragments>"); for (int index1 = 0; index1 < this.CommandsRun.Count; ++index1) { StringBuilder stringBuilder2 = stringBuilder1; string[] strArray1 = new string[5] { "<File name=\"", null, null, null, null }; string[] strArray2 = strArray1; int index2 = 1; KeyValuePair <string, string> fileFragment = this.FileFragments[index1]; string str1 = Folder.Filter(fileFragment.Key); strArray2[index2] = str1; strArray1[2] = "\">"; string[] strArray3 = strArray1; int index3 = 3; fileFragment = this.FileFragments[index1]; string str2 = Folder.Filter(fileFragment.Value); strArray3[index3] = str2; strArray1[4] = "</Command>\r\n"; string str3 = string.Concat(strArray1); stringBuilder2.Append(str3); } stringBuilder1.Append("</FileFragments>\r\n"); } if (this.Images != null && this.Images.Count > 0) { stringBuilder1.Append("<Images>"); for (int index = 0; index < this.Images.Count; ++index) { stringBuilder1.Append("<Image>" + Folder.Filter(this.Images[index]) + "</Image>\r\n"); } stringBuilder1.Append("</Images>\r\n"); } stringBuilder1.Append("</Memory>"); return(stringBuilder1.ToString()); }
public string getSaveString() { string str = "<mission next=\"" + this.nextMission + "\" goals=\"" + this.reloadGoalsSourceFile + "\" reqRank=\"" + (object)this.requiredRank + "\""; if (this.wasAutoGenerated) { str = str + " genTarget=\"" + this.genTarget + "\" genFile=\"" + this.genFile + "\" genPath=\"" + this.genPath + "\" genTargetName=\"" + this.genTargetName + "\" genOther=\"" + this.genOther + "\""; } return(str + " activeCheck=\"" + (object)this.activeCheck + "\">\n" + "<email sender=\"" + Folder.Filter(this.email.sender) + "\" subject=\"" + Folder.Filter(this.email.subject) + "\">" + Folder.Filter(this.email.body) + "</email>" + "<endFunc val=\"" + (object)this.endFunctionValue + "\" name=\"" + this.endFunctionName + "\" />" + "<posting title=\"" + Folder.Filter(this.postingTitle) + "\">" + Folder.Filter(this.postingBody) + "</posting>" + "</mission>"); }