diff options
author | Daniel Schadt <kingdread@gmx.de> | 2020-07-24 14:34:57 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2020-07-24 14:34:57 +0200 |
commit | df83dba4e5481fc1f5d6276867d09ef729fcfc25 (patch) | |
tree | 8f46e6857f69754162459359d33b3d024a1c305d /examples/loginfo.rs | |
parent | 71528905ed228750559a41144a2e0a95db3e6805 (diff) | |
download | evtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.tar.gz evtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.tar.bz2 evtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.zip |
include analyzer output in loginfo example
Diffstat (limited to 'examples/loginfo.rs')
-rw-r--r-- | examples/loginfo.rs | 5 |
1 files changed, 5 insertions, 0 deletions
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!( |