using NeonSprawl.Server.Game.Combat;

namespace NeonSprawl.Server.Tests.Game.Combat;

internal static class AbilityCatalogTestPaths
{
    internal static string DiscoverRepoAbilitiesDirectory() =>
        AbilityCatalogPathResolution.TryDiscoverAbilitiesDirectory(AppContext.BaseDirectory)
        ?? throw new InvalidOperationException(
            "Could not discover repo content/abilities from AppContext.BaseDirectory; run tests from the neon-sprawl clone.");

    internal static string DiscoverRepoAbilityDefSchemaPath() =>
        AbilityCatalogPathResolution.ResolveAbilityDefSchemaPath(
            DiscoverRepoAbilitiesDirectory(),
            configuredSchemaPath: null,
            contentRootPath: string.Empty);
}
