namespace Content.Server.NPC.HTN.Preconditions; /// /// Checks for the presence of the value by the specified in the . /// Returns true if there is a value. /// public sealed partial class KeyExistsPrecondition : HTNPrecondition { [DataField(required: true), ViewVariables] public string Key = string.Empty; public override bool IsMet(NPCBlackboard blackboard) { return blackboard.ContainsKey(Key); } }