Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikpe/bspparser
Extract information from .bsp files.
https://github.com/vikpe/bspparser
bsp maps quake quakeworld
Last synced: 27 days ago
JSON representation
Extract information from .bsp files.
- Host: GitHub
- URL: https://github.com/vikpe/bspparser
- Owner: vikpe
- License: mit
- Created: 2024-06-24T16:02:07.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-26T20:15:21.000Z (4 months ago)
- Last Synced: 2024-09-17T01:39:23.078Z (about 2 months ago)
- Topics: bsp, maps, quake, quakeworld
- Language: Rust
- Homepage:
- Size: 681 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.YML
- License: LICENSE
Awesome Lists containing this project
README
# bspparser [![Test](https://github.com/vikpe/bspparser/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/vikpe/bspparser/actions/workflows/test.yml) [![crates](https://img.shields.io/crates/v/bspparser)](https://crates.io/crates/bspparser) [![docs.rs](https://img.shields.io/docsrs/bspparser)](https://docs.rs/bspparser/)
> Extract information from .bsp files
## Entities
```rust
let data = fs::read("dm3.mvd")?;pub fn entities_as_hashmaps(data: &[u8]) -> Result>> { }
/*
[
{
"wad": "gfx/base.wad",
"worldtype": "2",
"sounds": "6",
"message": "The Abandoned Base",
"classname": "worldspawn"
},
{
"classname": "light_fluoro",
"origin": "264 -32 88"
}
...
]
*/pub fn entities_as_string(data: &[u8]) -> Result { }
/*
{
"wad" "gfx/base.wad"
"classname" "worldspawn"
"worldtype" "2"
"sounds" "6"
"message" "The Abandoned Base"
}
{
"classname" "light_fluoro"
"origin" "264 -32 88"
}
...
*/
```