using System.Diagnostics.CodeAnalysis;
namespace NeonSprawl.Server.Game.Encounters;
///
/// Read-only access to validated entries loaded at startup ().
///
///
/// E5.M3 (encounter completion / loot grants): callers validating reward-table ids and resolving fixed grants should depend on this interface
/// rather than so reward tables stay centralized.
/// NEO-103: HTTP/read-model projections should depend on this interface rather than reaching into the catalog.
///
public interface IRewardTableDefinitionRegistry
{
/// Attempts to resolve a reward table by stable id (see reward-table.schema.json). Unknown ids and null return false without throwing.
bool TryGetDefinition(string? rewardTableId, [NotNullWhen(true)] out RewardTableDefRow? definition);
/// Trims and lowercases ; returns true when the normalized id exists in the loaded catalog. null, empty, and whitespace return false without throwing.
bool TryNormalizeKnown(string? rawRewardTableId, [NotNullWhen(true)] out string normalized);
/// Every loaded definition, ordered by (ordinal).
IReadOnlyList GetDefinitionsInIdOrder();
}