1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! `vault` is a Company of Heroes 3 replay parser written with nom, and exposing Ruby bindings
//! via magnus.
//!
//! Currently, this library is able to parse player, map, and chat message data, as well as various
//! bits and pieces of basic replay information. It is not currently able to parse detailed command
//! information
//!
//! To use, simply initialize an instance of `Replay` by using one of its parsing entrypoints:
//!
//! ```ignore
//! fn main() {
//!     let data = include_bytes!("/path/to/replay.rec");
//!     let replay = vault::Replay::from_bytes(data);
//!     assert!(replay.is_ok())
//! }
//! ```

mod command;
pub mod command_data;
mod command_type;
mod data;
mod errors;
mod map;
mod message;
mod player;
mod replay;

pub use crate::command::Command;
#[cfg(feature = "raw")]
pub use crate::command::RawCommand;
pub use crate::command_type::CommandType;
pub use crate::errors::ParseError;
pub use crate::map::Map;
pub use crate::message::Message;
pub use crate::player::Faction;
pub use crate::player::Player;
pub use crate::player::Team;
pub use crate::replay::GameType;
pub use crate::replay::Replay;