using System.Diagnostics.CodeAnalysis; namespace NeonSprawl.Server.Game.Quests; /// /// Read-only access to validated entries loaded at startup (). /// /// /// E7.M1 (quest accept / progress / objective advance): callers validating quest ids and resolving quest metadata should depend on this interface /// rather than so quest defs stay centralized. /// NEO-115: HTTP/read-model projections should depend on this interface rather than reaching into the catalog. /// public interface IQuestDefinitionRegistry { /// Attempts to resolve a quest by stable id (see quest-def.schema.json). Unknown ids and null return false without throwing. bool TryGetDefinition(string? questId, [NotNullWhen(true)] out QuestDefRow? 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? rawQuestId, [NotNullWhen(true)] out string normalized); /// Every loaded definition, ordered by (ordinal). IReadOnlyList GetDefinitionsInIdOrder(); }