#include "adapters/hooks/items/ItemHookDiagnostics.h"

namespace ta::adapters::hooks::items::diagnostics
{
    namespace
    {
        ta::foundation::diagnostics::Counter factory_hits;
        ta::foundation::diagnostics::Flag factory_captured;
    }

    void reset() noexcept { factory_hits.reset(); factory_captured.reset(); }
    void mark_factory_hit() noexcept { factory_hits.increment(); }
    void set_factory_captured(const bool captured) noexcept { factory_captured.set(captured); }
    Snapshot snapshot() noexcept { return {factory_hits.value(), factory_captured.value()}; }
}
