Partial of a compatibility probe component that implements IChatEvent. Forwards chat messages to ProbeChat.Observe when this probe is the active one.
using Sandbox;
using SboxSuperuser.Engine.Compatibility;
namespace SboxSuperuser.Components;
public sealed partial class CompatibilityProbe : IChatEvent
{
void IChatEvent.OnChatMessage( ChatMessageEvent message )
{
if ( CanRun && FindActiveProbe() == this )
{
ProbeChat.Observe( message );
}
}
}