/// <summary> /// Default is formed from: input.Landblock.ToString("X4") /// </summary> public string GetDefaultFileName(Encounter input) { string fileName = input.Landblock.ToString("X4"); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.TreasureType.ToString("00000") /// </summary> public string GetDefaultFileName(TreasureDeath input) { string fileName = input.TreasureType.ToString("00000"); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.Id.ToString("00000") + " " + input.Name /// </summary> public string GetDefaultFileName(Spell input) { string fileName = input.Id.ToString("00000") + " " + input.Name; fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.HouseId.ToString("00000") /// </summary> public string GetDefaultFileName(HousePortal input) { string fileName = input.HouseId.ToString("00000"); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: (input.ObjCellId >> 16).ToString("X4") /// </summary> public string GetDefaultFileName(LandblockInstance input) { string fileName = (input.ObjCellId >> 16).ToString("X4"); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.Name /// </summary> public string GetDefaultFileName(Quest input) { string fileName = input.Name; fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.RecipeId.ToString("00000") /// </summary> public string GetDefaultFileName(CookBook input) { string fileName = input.RecipeId.ToString("00000"); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.ClassId.ToString("00000") + " " + name /// </summary> public string GetDefaultFileName(Weenie input) { var name = input.WeeniePropertiesString.FirstOrDefault(r => r.Type == (int)PropertyString.Name); var fileName = input.ClassId.ToString("00000") + " " + (name != null ? name.Value : ""); fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
/// <summary> /// Default is formed from: input.RecipeId.ToString("00000") + " " + [SuccessWeenieName or Cook Book Source] /// </summary> public string GetDefaultFileName(Recipe input, IList <CookBook> cookBooks, bool descOnly = false) { string description = null; if (WeenieNames != null) { if (WeenieNames.TryGetValue(input.SuccessWCID, out var weenieName)) { description = weenieName; } } string alternateDescription = null; if (cookBooks != null && cookBooks.Count > 0 && WeenieNames != null) { WeenieNames.TryGetValue(cookBooks[0].SourceWCID, out alternateDescription); for (int i = 1; i < cookBooks.Count; i++) { if (WeenieNames.TryGetValue(cookBooks[i].SourceWCID, out var sourceWeenieName) && sourceWeenieName != alternateDescription) { alternateDescription = null; break; } } } if (string.IsNullOrEmpty(description) && !string.IsNullOrEmpty(alternateDescription)) { description = alternateDescription; } if (description == "Cooking Pot" && !string.IsNullOrEmpty(alternateDescription)) { description = alternateDescription; } if (descOnly) { return(description); } string fileName = input.Id.ToString("00000"); if (!string.IsNullOrEmpty(description)) { fileName += " " + description; } fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }
public string GetDefaultFileName(Realm input, bool descOnly = false) { string description = input.Name; if (descOnly) { return(description); } string fileName = input.Id.ToString("00000"); if (!string.IsNullOrEmpty(description)) { fileName += " " + description; } fileName = IllegalInFileName.Replace(fileName, "_"); fileName += ".sql"; return(fileName); }