Wire ProjectZomboidPvpLog default analyser

This commit is contained in:
2026-04-30 21:47:51 +00:00
parent d15fc81f9f
commit 51eb2de282
2 changed files with 54 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ namespace IndifferentKetchup\Codex\Log\ProjectZomboid;
use IndifferentKetchup\Codex\Analyser\AnalyserInterface;
use IndifferentKetchup\Codex\Analyser\PatternAnalyser;
use IndifferentKetchup\Codex\Analysis\ProjectZomboid\PvpDamageInformation;
use IndifferentKetchup\Codex\Detective\FilenameDetector;
use IndifferentKetchup\Codex\Detective\WeightedSinglePatternDetector;
use IndifferentKetchup\Codex\Parser\ParserInterface;
@@ -22,7 +23,8 @@ class ProjectZomboidPvpLog extends ProjectZomboidEventLog
public static function getDefaultAnalyser(): AnalyserInterface
{
return new PatternAnalyser();
return (new PatternAnalyser())
->addPossibleInsightClass(PvpDamageInformation::class);
}
public static function getDetectors(): array