poe_data_tools 1.0.0

A library for working with Path of Exile game data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::file_parsers::{FileParser, VersionedResult};

pub mod parser;
pub mod types;
use parser::parse_tgm_bytes;
use types::TGMFile;

pub struct TGMParser;

impl FileParser for TGMParser {
    type Output = TGMFile;

    fn parse(&self, bytes: &[u8]) -> VersionedResult<Self::Output> {
        parse_tgm_bytes(bytes)
    }
}