public override int GetHashCode() => StoryTitle.StringHash256() ^ ChapterTitle.StringHash256() ^ ChapterIndex.StringHash256() ^ Address.StringHash256() ^ LinkedId.StringHash256() ^ LinkTarget.StringHash256();
protected override BibleVerse Parse() { return(new BibleVerse { Id = ToInt(BibleVerseID), ChapterTitle = ChapterTitle.ToString(), BibleVerseContent = BibleVerseContent.ToString(), DateOfVerse = ToDateTime(DateOfVerse), Emotion = EmotionsReactions.ToString() }); }
/// <summary> /// 创建章节标题 /// </summary> /// <param name="chapterID"></param> /// <returns></returns> public static async System.Threading.Tasks.Task CreateChapterTitle(int chapterID) { var title = await UIComponent.CreateUIAsync(UIType.ChapterTitle, true); title.transform.SetRectTransformStretchAllWithParent(UIRoot.instance.GetUIRootCanvasTop().transform); ChapterTitle chapterTitle = title.GetComponent <ChapterTitle>(); var section = StaticData.configExcel.GetSectionBySectionId(chapterID); string titleStr = ChapterTool.GetChapterFunctionString(section.SectionTitle[0]); string titleContent = ChapterTool.GetChapterFunctionString(section.SectionTitle[1]); chapterTitle.Play(titleStr, titleContent); }
public bool Equals(IFfnAddress other) { if (other is StoryAddress otherStory) { return(StoryTitle.Equals(otherStory.StoryTitle) && ChapterTitle.Equals(otherStory.ChapterTitle) && ChapterIndex.Equals(otherStory.ChapterIndex) && Address.Equals(otherStory.Address) && LinkedId.Equals(otherStory.LinkedId)); } return(false); }