diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -3,6 +3,7 @@ evtclib [![Latest Version](https://img.shields.io/crates/v/evtclib.svg)](https://crates.io/crates/evtclib) [![Rust Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/evtclib) +[![License](https://img.shields.io/crates/l/evtclib.svg)](https://opensource.org/licenses/MIT) `evtclib` is a Rust library that allows you to parse `.evtc` files, as generated by the [arcdps addon](https://www.deltaconnected.com/arcdps/) for the @@ -25,12 +26,8 @@ Example use std::fs::File; fn main() -> Result<(), Box<dyn std::error::Error>> { - // Open a file for processing - let mut file = File::open("Skorvald/20200421-183243.evtc")?; - // Parse the raw content of the file - let raw_log = evtclib::raw::parse_file(&mut file)?; - // Process the file to do the nitty-gritty low-level stuff done - let log = evtclib::process(&raw_log)?; + // Parse a log + let log = evtclib::process_file("Skorvald/20200421-183243.evtc")?; // Do work on the log for player in log.players() { println!("Player {} participated!", player.account_name()); |