aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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!(