Skip to content

Extract information from .bsp files.

License

Notifications You must be signed in to change notification settings

vikpe/bspparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bspparser Test crates docs.rs

Extract information from .bsp files

Entities

let data = fs::read("dm3.mvd")?;

pub fn entities_as_hashmaps(data: &[u8]) -> Result<Vec<HashMap<String, String>>> { }
/*
[
    {
        "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<String> { }
/*
{
"wad" "gfx/base.wad"
"classname" "worldspawn"
"worldtype" "2"
"sounds" "6"
"message" "The Abandoned Base"
}
{
"classname" "light_fluoro"
"origin" "264 -32 88"
}
...
*/

About

Extract information from .bsp files.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages