aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
AgeCommit message (Collapse)Author
2020-04-27combine AgentKind and AgentNameDaniel Schadt
Both of those are only used in lockstep anyway. If the AgentKind was Player, the AgentName was also Player. Having the possibility of mis-matched enum variants here was bad and always required an extra step of "unwrap" that was not necessary. This combination is the first step to simplify the handling of different agent kinds.
2020-04-27change some getters to copyDaniel Schadt
The types are so small that a reference would be slower than just copying the number itself.
2020-04-27remove try_traitDaniel Schadt
The .ok_or() method on Option is enough for those two occasions that we don't need to activate the complete try_trait feature just for a very small and questionable ergonomics gain. This also allows us to more easily discern which data exactly was invalid, as the .ok_or() in different places could take different error values. This also allows evtclib to be used on stable now. Some noise is introduced in the diff due to automatically re-formatting the source.
2020-04-27remove features stmt_expr_attributes & never_typeDaniel Schadt
Those are not used anymore and can be disabled. Maybe we can even get rid of try_trait in a nice way, allowing us to run on stable instead of nightly-only.
2020-04-27remove statistics submoduleDaniel Schadt
The way the trackers worked was rather... "adventurous", and while there were some good ideas and it mostly worked, the implementation and interface could do better. Additionally, it was incomplete, for example there were a lot of mechanics just missing. While I'm not against having this functionality provided by evtclib, I think it would be more worthwile with a better designed implementation & API, so this "proof of concept" implementation is gone until there is a better way of doing things. gamedata is being kept, as the boss identifiers are useful and applications shouldn't have to deal with keeping this low-level list themselves.
2020-04-04use getset::Getters without #[macro_use]Daniel Schadt
2020-04-04Use num_derive::FromPrimitive without #[macro_use]Daniel Schadt
2020-04-04switch from quick_error to thiserrorDaniel Schadt
thiserror seems to be the more modern approach that also works with the new Error trait from std.
2020-04-04update dependenciesDaniel Schadt
2019-05-24add public method to parse raw::Agent to AgentDaniel Schadt
2018-07-07more readabilityDaniel Schadt
2018-07-07base for mechanic trackingDaniel Schadt
2018-06-14deal with multiple boss agentsDaniel Schadt
Exemplary done with Xera.
2018-06-14add support for reading zipped logsDaniel Schadt
2018-06-14derive getters for AgentDaniel Schadt
2018-06-14rework boon trackingDaniel Schadt
2018-05-31cargo fmtDaniel Schadt
2018-05-30update rust - use never_type featureDaniel Schadt
2018-04-25introduce trackersDaniel Schadt
Trackers help us to keep the code somewhat cleaner, especially in the statistics::calculate function.
2018-04-24basic work on statistics calculationDaniel Schadt
2018-04-23more documentationDaniel Schadt
2018-04-23add a bit more documentationDaniel Schadt
2018-04-23add some utility methods to AgentDaniel Schadt
2018-04-23run rustfmtDaniel Schadt
2018-04-23apply clippy's suggestionsDaniel Schadt
2018-04-23add basic translation to more readable eventsDaniel Schadt
This basically implements the "event logic" as described in the README, though it produces easier-to-digest events. The test binary show 0 failed events on an example log, but of course, not all mechanics are used there, and the parsing logic may very well contain some errors.
2018-04-14Initial commitDaniel Schadt