36 lines
2.7 KiB
C#
36 lines
2.7 KiB
C#
using PlotLine.Models;
|
|
using PlotLine.ViewModels;
|
|
|
|
// Fictional, database-free data for reproducible marketing screenshots of the real application views.
|
|
internal static class PublicWebsiteFixtures
|
|
{
|
|
public static IReadOnlyList<StoryCalendarSceneViewModel> CalendarScenes() =>
|
|
new[] { "Arrival at the harbour", "The letter", "An unexpected ally", "A promise made", "Footsteps on the pier", "The missing page", "A change of plan", "The sender revealed", "Across the water", "The last crossing" }
|
|
.Select((title, i) => new StoryCalendarSceneViewModel { SceneID = 101 + i, BookID = 12, ChapterID = 21 + i / 2,
|
|
Title = title, StoryDate = new DateOnly(2026, 10, 3 + i * 2), ChapterNumber = i / 2 + 1, SceneNumber = i % 2 + 1,
|
|
Pov = i % 2 == 0 ? "Mara" : "Elias", NarrativeOrder = i + 1, TimeLabel = i % 2 == 0 ? "Before dawn" : "Evening" }).ToList();
|
|
|
|
public static PlotLineWorkspaceData PlotMap()
|
|
{
|
|
var titles = new[] { "Arrival at the harbour", "An unexpected ally", "The missing page", "A promise made", "Footsteps on the pier", "The sender revealed", "Across the water", "The last crossing" };
|
|
var lines = new[] { "The missing letter", "Mara & Elias", "The harbour secret" };
|
|
var colours = new[] { "#5bada0", "#c88d55", "#829ccf" };
|
|
var events = new List<PlotLineWorkspaceContributionRow>();
|
|
for (var scene = 0; scene < titles.Length; scene++)
|
|
for (var line = 0; line < lines.Length; line++)
|
|
{
|
|
if ((scene + line) % 3 == 2) continue;
|
|
events.Add(new() { ThreadEventID = 1000 + scene * 10 + line, PlotLineID = line + 1, PlotThreadID = 11 + line,
|
|
SceneID = 101 + scene, NarrativeOrder = scene + 1, ChapterNumber = scene / 2 + 1, SceneNumber = scene % 2 + 1,
|
|
ChapterTitle = "The crossing", SceneTitle = titles[scene], ThreadTitle = lines[line],
|
|
CanonicalTitle = titles[scene], CanonicalRole = scene == 0 ? "Introduced" : scene == 7 ? "Resolved" : "Developed",
|
|
PovCharacterName = scene % 2 == 0 ? "Mara" : "Elias", LocationName = "North Pier" });
|
|
}
|
|
return new() {
|
|
PlotLines = lines.Select((name, i) => new PlotLineWorkspaceLineRow { PlotLineID = i + 1, PlotLineName = name, Colour = colours[i], SortOrder = i + 1, ThreadCount = 1, ContributionSceneCount = events.Where(e => e.PlotLineID == i + 1).Select(e => e.SceneID).Distinct().Count() }).ToList(),
|
|
Threads = lines.Select((name, i) => new PlotLineWorkspaceThreadRow { PlotThreadID = 11 + i, PlotLineID = i + 1, ThreadTitle = name, ContributionCount = events.Count(e => e.PlotLineID == i + 1), IntroducedSceneID = 101, PlannedResolutionSceneID = 108 }).ToList(),
|
|
Contributions = events
|
|
};
|
|
}
|
|
}
|