/// <summary> /// Get full description for Card /// </summary> /// <param name="cardID">Card id to use</param> /// <returns>Card full desscription</returns> public static string GetFullDescriptionForCard(string cardID) { List <XmlDataNode> foundDataNodes = DM.GameInfos.staticInfos["Card"].rootDataNode.GetXmlDataNodesByPathWithXmlInfo("Card", attributeToCheck: new Dictionary <string, string>() { { "ID", cardID } }); if (foundDataNodes.Count <= 0) { foundDataNodes = DM.EditGameData_CardInfos.StaticCard.rootDataNode.GetXmlDataNodesByPathWithXmlInfo("Card", attributeToCheck: new Dictionary <string, string>() { { "ID", cardID } }); } if (foundDataNodes.Count > 0) { XmlDataNode CARD_NODE = foundDataNodes[0]; string CARD_NAME_DES = LocalizedGameDescriptions.GetDecriptionForCard(CARD_NODE.GetAttributesSafe("ID")); string CHAPTER_DES = LocalizedGameDescriptions.GetDescriptionForChapter(CARD_NODE.GetInnerTextByPath("Chapter")); string DIV_INFO_DES = GetDivideInfo.GetDividedCardInfo(cardID); return($"{DIV_INFO_DES} {CHAPTER_DES} / {CARD_NAME_DES}:{cardID}"); } else { return($"Card ID :{cardID}"); } }
/// <summary> /// Get full description of Key Book /// </summary> /// <param name="bookID"></param> /// <returns></returns> public static string GetFullDescriptionForKeyBook(string bookID) { List <XmlDataNode> foundDataNodes = DM.GameInfos.staticInfos["EquipPage"].rootDataNode.GetXmlDataNodesByPathWithXmlInfo("Book", attributeToCheck: new Dictionary <string, string>() { { "ID", bookID } }); if (foundDataNodes.Count <= 0) { foundDataNodes = DM.EditGameData_BookInfos.StaticEquipPage.rootDataNode.GetXmlDataNodesByPathWithXmlInfo("Book", attributeToCheck: new Dictionary <string, string>() { { "ID", bookID } }); } if (foundDataNodes.Count > 0) { XmlDataNode STAGE_NODE = foundDataNodes[0]; string TEXT_ID = STAGE_NODE.GetInnerTextByPath("TextId"); string CHPATER_NUM = STAGE_NODE.GetInnerTextByPath("Chapter"); string BOOK_DES = ""; int KEY_PAGE_ID = Convert.ToInt32(bookID); if (KEY_PAGE_ID > 9000000 && KEY_PAGE_ID < 9999999) { BOOK_DES = LocalizedGameDescriptions.GetDescriptionForBooks(bookID); } else { BOOK_DES = LocalizedGameDescriptions.GetDescriptionForBooks(TEXT_ID); } string CHAPTER_DES = LocalizedGameDescriptions.GetDescriptionForChapter(CHPATER_NUM); string DIV_INFO_DES = GetDivideInfo.GetDividedKeyPageInfo(bookID); return($"{DIV_INFO_DES} {CHAPTER_DES} / {BOOK_DES}:{bookID}"); } else { return($"Book ID :{bookID}"); } }