mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 10:14:10 +02:00
readme+cargo meta
This commit is contained in:
parent
eba1c81126
commit
a9302218cb
3 changed files with 17 additions and 1 deletions
|
|
@ -1,7 +1,11 @@
|
|||
[package]
|
||||
name = "tf-log-parser"
|
||||
version = "0.1.0"
|
||||
authors = ["Robin Appelman <robin@icewind.nl>"]
|
||||
edition = "2018"
|
||||
license = "MIT OR Apache-2.0"
|
||||
exclude = [ "test_data" ]
|
||||
repository = "https://github.com/icewind1991/tf-log-parser"
|
||||
|
||||
[dependencies]
|
||||
steamid-ng = "1"
|
||||
|
|
|
|||
13
README.md
Normal file
13
README.md
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# tf-log-parser
|
||||
|
||||
TF2 log parser with a focus on speed and flexibility.
|
||||
|
||||
## CLI usage
|
||||
|
||||
```bash
|
||||
tf-log-parser path/to/log.log
|
||||
```
|
||||
|
||||
## Custom statistics
|
||||
|
||||
By implementing the `EventHandler` trait you can run custom analysis, see the [examples](./examples) for details.
|
||||
|
|
@ -32,7 +32,6 @@ impl EventHandler for HighestDamageHandler {
|
|||
}) = event
|
||||
{
|
||||
let damage = damage.get();
|
||||
// note that we leave the name empty for now to prevent needles cloning
|
||||
match &mut self.current {
|
||||
Some((_, current_damage)) if damage > *current_damage => {
|
||||
self.current = Some((subject, damage))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue