This commit is contained in:
gamer147
2026-05-25 14:36:12 -04:00
parent 558e8288eb
commit 5e7a65fe5a
54 changed files with 39633 additions and 29 deletions

View File

@@ -0,0 +1,19 @@
using SVSim.Database.Entities.Story;
namespace SVSim.Database.Repositories.Story;
public interface IStoryMasterRepository
{
Task<List<StorySection>> GetSectionsByFamilyAsync(StoryApiType apiType);
Task<List<StoryWorld>> GetWorldsForSectionsAsync(IEnumerable<int> worldIds);
Task<List<StoryChapter>> GetChaptersBySectionCharaAsync(int sectionId, int charaId);
/// <summary>
/// Bulk-load chapter scalars (no owned collections) across multiple sections in one round-trip.
/// Used by the section rollup to avoid N+1 per (section, chara) lookups.
/// </summary>
Task<List<StoryChapter>> GetChaptersBySectionsAsync(IEnumerable<int> sectionIds);
Task<StoryChapter?> GetChapterByIdAsync(int storyId);
Task<SpecialBattleSetting?> GetSbsByIdAsync(int sbsId);
}