Crates.io | goldsrc-rs |
lib.rs | goldsrc-rs |
version | 0.11.1 |
source | src |
created_at | 2022-09-01 02:44:24.478576 |
updated_at | 2024-06-17 20:28:42.720226 |
description | Collection of file's parsers for goldsrc engine. |
homepage | |
repository | https://github.com/r4v3n6101/goldsrc-rs/ |
max_upload_size | |
id | 656395 |
size | 26,319 |
Collection of file's parsers for goldsrc engine.
In your Cargo.toml add new dependency:
[dependcies]
goldsrc-rs = "0.10"
fn main() {
let file = File::open("test.wad").unwrap();
let entries = goldsrc_rs::wad_entries(file);
// Parsing miptex, fonts and so on...
let file = File::open("test.bsp").unwrap();
let bsp = goldsrc_rs::bsp(file);
// ...
}
Pull requests are welcome. This hasn't been tested appropriately.
So I'll be glad to see your results and bugs.