VMF Parser
A high-performance parser for Valve Map Format (VMF) files written in Rust.
Overview
VMF (Valve Map Format) is a text-based file format used by Source Engine level editors like Hammer to store map data. This library provides a fast, memory-efficient parser.
Supported VMF Structures
- Version information and metadata
- World geometry (solids, brushes, sides)
- Entities (point entities, brush entities)
- Displacement surfaces (terrain)
- Visibility groups
- View settings
- Cameras
- Cordons
Usage
[]
= "0.1.0"
Basic Example
use VMF;
Working with World Geometry
use ;
let vmf = VMFopen?;
let data = vmf.parse?;
for value in data
Development
Building
Testing
note: This crate uses over 150 tests, and almost everything is covered.
Running Benchmarks
License
Licensed under either of
- Apache License, Version 2.0, (http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (http://opensource.org/licenses/MIT)
at your option.
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.