Crate tcm

Crate tcm 

Source
Expand description

TCM format parser for Geometry Dash bot replays.

This library supports both TCM v1 and v2 formats with auto-detection capabilities.

§Quick Start

use tcm::{DynamicReplay, meta::Meta};
use std::fs::File;
use std::io::BufReader;

let file = File::open("examples/data/restartv1.tcm")?;
let mut reader = BufReader::new(file);
let replay = DynamicReplay::from_reader(&mut reader)?;

println!("TCM v{} - TPS: {}", replay.meta.version_instance(), replay.meta.tps());

§Type-Specific Usage

use tcm::{meta::{Meta, MetaV2}, replay::{Replay, ReplayDeserializer}};

let replay = Replay::<MetaV2>::new_empty(240.0);
println!("TPS: {}", replay.meta.tps());

Re-exports§

pub use replay::DynamicReplay;
pub use replay::Replay;

Modules§

error
Error types for the TCM library.
input
Input types for TCM replays.
meta
Metadata structures for TCM format versions.
replay
Replay serialization and deserialization.

Type Aliases§

Frame