using System.Diagnostics.CodeAnalysis; namespace NeonSprawl.Server.Game.Encounters; /// /// Read-only access to validated entries loaded at startup (). /// /// /// E5.M3 (encounter progress / completion): callers validating encounter ids and resolving completion metadata should depend on this interface /// rather than so encounter defs stay centralized. /// NEO-103: HTTP/read-model projections should depend on this interface rather than reaching into the catalog. /// public interface IEncounterDefinitionRegistry { /// Attempts to resolve an encounter by stable id (see encounter-def.schema.json). Unknown ids and null return false without throwing. bool TryGetDefinition(string? encounterId, [NotNullWhen(true)] out EncounterDefRow? 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? rawEncounterId, [NotNullWhen(true)] out string normalized); /// Every loaded definition, ordered by (ordinal). IReadOnlyList GetDefinitionsInIdOrder(); }