30 lines
1.2 KiB
C#
30 lines
1.2 KiB
C#
using NeonSprawl.Server.Game.Quests;
|
|
|
|
namespace NeonSprawl.Server.Tests.Game.Quests;
|
|
|
|
internal static class QuestCatalogTestPaths
|
|
{
|
|
internal static string DiscoverRepoQuestsDirectory() =>
|
|
QuestCatalogPathResolution.TryDiscoverQuestsDirectory(AppContext.BaseDirectory)
|
|
?? throw new InvalidOperationException(
|
|
"Could not discover repo content/quests from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");
|
|
|
|
internal static string DiscoverRepoQuestDefSchemaPath() =>
|
|
QuestCatalogPathResolution.ResolveQuestDefSchemaPath(
|
|
DiscoverRepoQuestsDirectory(),
|
|
configuredSchemaPath: null,
|
|
contentRootPath: string.Empty);
|
|
|
|
internal static string DiscoverRepoQuestStepDefSchemaPath() =>
|
|
QuestCatalogPathResolution.ResolveQuestStepDefSchemaPath(
|
|
DiscoverRepoQuestsDirectory(),
|
|
configuredSchemaPath: null,
|
|
contentRootPath: string.Empty);
|
|
|
|
internal static string DiscoverRepoQuestObjectiveDefSchemaPath() =>
|
|
QuestCatalogPathResolution.ResolveQuestObjectiveDefSchemaPath(
|
|
DiscoverRepoQuestsDirectory(),
|
|
configuredSchemaPath: null,
|
|
contentRootPath: string.Empty);
|
|
}
|