Crate vault [] [src]

vault is a fully-featured Company of Heroes 2 replay parser valid for replays created on or after the release of the British forces (version 19545).

This library contains representations of all replay, map, and player information, including chat, equipped items, and player commands.

Structs

ChatLine

This type represents a single Company of Heroes 2 chat message.

Command

This type represents a single Company of Heroes 2 player command.

Config

This type contains option and configuration information for a call to one of vault's parsing functions.

Item

This type contains a parsed representation of an item that can be equipped in a CoH2 replay.

Map

This type represents a Company of Heroes 2 map as presented in a CoH2 replay file.

Player

This type represents a Company of Heroes 2 player entity as it appears in a CoH2 replay file.

Replay

The main Replay type, contains all currently parsed replay data. Can be serialized to JSON for output using rustc_serialize.

Enums

CmdType

This type contains a numerical u8 representation of every command/action possible in a CoH2 command sequence. Contents of this enum provided by Relic Entertainment.

Error

This type contains the various error messages that can be returned from the library.

Functions

parse_replay

Parses a single replay (.rec) file.

print_version

Prints out the current vault version and compatible CoH2 game versions.

Type Definitions

Result

Custom Result wrapper for vault, used to return vault::Error from every result.