aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-07-24 14:34:57 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-07-24 14:34:57 +0200
commitdf83dba4e5481fc1f5d6276867d09ef729fcfc25 (patch)
tree8f46e6857f69754162459359d33b3d024a1c305d /examples
parent71528905ed228750559a41144a2e0a95db3e6805 (diff)
downloadevtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.tar.gz
evtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.tar.bz2
evtclib-df83dba4e5481fc1f5d6276867d09ef729fcfc25.zip
include analyzer output in loginfo example
Diffstat (limited to 'examples')
-rw-r--r--examples/loginfo.rs5
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!(