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§
- Battle
Context - Store information about a battle so that it can be used for debugging.
- Context
- Event
Stream - Packet
- A packet is simply a wrapper around a slice that represents that packet. We can also access its type, timestamp and payload size
- Packet
Stream - A
PacketStreamis a wrapper around the binary data produced after decompressing the.wotreplayfile. It implements theIteratortrait which allows to retrieve eachPacketas we iterate through the binary stream. - Replay
Parser - 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§
- Battle
Event - 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
GameVersionpacket has type0x18and is a variant of this enum. It is always be expected to be this type across all replays. Note that some packet types like0x08may have children of its own. SeeEntityMethodEventfor more details. - Packet
Error - Replay
Error
Statics§
Traits§
- Packet
Parser - This trait is implemented by all events so that they can parse a packet to a BattleEvent