using NeonSprawl.Server.Game.Npc;

namespace NeonSprawl.Server.Tests.Game.Npc;

internal static class NpcBehaviorCatalogTestPaths
{
    internal static string DiscoverRepoNpcBehaviorsDirectory() =>
        NpcBehaviorCatalogPathResolution.TryDiscoverNpcBehaviorsDirectory(AppContext.BaseDirectory)
        ?? throw new InvalidOperationException(
            "Could not discover repo content/npc-behaviors from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");

    internal static string DiscoverRepoNpcBehaviorDefSchemaPath() =>
        NpcBehaviorCatalogPathResolution.ResolveNpcBehaviorDefSchemaPath(
            DiscoverRepoNpcBehaviorsDirectory(),
            configuredSchemaPath: null,
            contentRootPath: string.Empty);
}
