Crate wot_replay_parser

Crate wot_replay_parser 

Source
Expand description

A parser for .wotreplay files generated by the game World of Tanks

Modules§

events
Contains code for all the different types of events. For each packet, we have an event. An event can be considered the human readable abstraction over a packet.
wot_types

Structs§

BattleContext
Store information about a battle so that it can be used for debugging.
Context
EventStream
Packet
A packet is simply a wrapper around a slice that represents that packet. We can also access its type, timestamp and payload size
PacketStream
A PacketStream is a wrapper around the binary data produced after decompressing the .wotreplay file. It implements the Iterator trait which allows to retrieve each Packet as we iterate through the binary stream.
ReplayParser
TODO: Remove this * import Parse a wotreplay from file. Only deals with that wotreplay. If you need to parse multiple replays, create multiple instances of ReplayParser.

Enums§

BattleEvent
This enum aims to represent all possible events that can occur in a battle. It’s variant should map to each packet type and is expected to always be that type. For ex., a GameVersion packet has type 0x18 and is a variant of this enum. It is always be expected to be this type across all replays. Note that some packet types like 0x08 may have children of its own. See EntityMethodEvent for more details.
PacketError
ReplayError

Statics§

VERSIONS

Traits§

PacketParser
This trait is implemented by all events so that they can parse a packet to a BattleEvent

Functions§

get_replay_time