Phase 2: Extract IPluginLogger and KillTracker

- Create IPluginLogger interface, PluginCore implements it
- CharacterStats.cs and WebSocket.cs now use IPluginLogger instead of PluginCore.WriteToChat
- Extract KillTracker.cs: owns kill detection (all 36 regex patterns), death tracking,
  rate calculation, and the 1-sec stats update timer
- Bridge properties on PluginCore maintain backward compat for WebSocket telemetry

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
erik 2026-02-27 07:29:49 +00:00
parent 4845a67c1f
commit 366cca8cb6
6 changed files with 265 additions and 160 deletions

View file

@ -306,6 +306,8 @@
</Compile>
<Compile Include="CommandRouter.cs" />
<Compile Include="Constants.cs" />
<Compile Include="IPluginLogger.cs" />
<Compile Include="KillTracker.cs" />
<Compile Include="ClientTelemetry.cs" />
<Compile Include="DecalHarmonyClean.cs" />
<Compile Include="FlagTrackerData.cs" />