worldbox-observer-mod/IdleSpectator/InterestCollector.cs

45 lines
1.2 KiB
C#

using UnityEngine;
namespace IdleSpectator;
/// <summary>
/// Compatibility shim: WorldLog / discovery / harness still call here.
/// Selection goes only through <see cref="InterestRegistry"/> (no dual-feed queue).
/// </summary>
public static class InterestCollector
{
public static void OnWorldLogMessage(WorldLogMessage message)
{
InterestFeeds.OnWorldLogMessage(message);
}
public static void EnqueueDirect(InterestEvent interest)
{
InterestFeeds.RegisterDirect(interest);
}
public static int PendingCount => InterestRegistry.PendingCount;
public static bool HasPendingScoreAtLeast(float minScore)
{
return InterestRegistry.HasPendingScoreAtLeast(minScore);
}
public static void Clear()
{
InterestRegistry.Clear();
}
/// <summary>Obsolete: director no longer pops from a queue. Kept for compile safety.</summary>
public static bool TryGetBest(out InterestEvent best)
{
best = null;
return false;
}
/// <summary>Obsolete no-op.</summary>
public static void Remove(InterestEvent interest)
{
// Registry marks selected via InterestDirector.
}
}