From df83dba4e5481fc1f5d6276867d09ef729fcfc25 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Fri, 24 Jul 2020 14:34:57 +0200 Subject: include analyzer output in loginfo example --- examples/loginfo.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'examples') diff --git a/examples/loginfo.rs b/examples/loginfo.rs index 8ad0093..927ff52 100644 --- a/examples/loginfo.rs +++ b/examples/loginfo.rs @@ -20,6 +20,11 @@ fn main() { println!("Encounter: {:?}", log.encounter()); println!("Was CM? {}", log.is_cm()); + if let Some(analyzer) = log.analyzer() { + println!("Fight outcome: {:?}", analyzer.outcome()); + } else { + println!("No analyzer available for this fight."); + } println!("Players:"); for player in log.players() { println!( -- cgit v1.2.3