#generated #entity #bsp #vbsp-entities-codegen

vbsp-entities-tf2

VBSP entity definitions for Team Fortress 2

7 releases (breaking)

Uses new Rust 2024

0.6.0 Mar 8, 2025
0.5.0 Mar 6, 2025
0.4.0 Mar 4, 2025
0.3.0 Mar 3, 2025
0.1.0-egg Feb 27, 2025

#81 in Games

Download history 374/week @ 2025-02-26 247/week @ 2025-03-05 16/week @ 2025-03-12 6/week @ 2025-03-19

643 downloads per month
Used in vbsp

MIT/Apache

215KB
7K SLoC

VBSP Entities For Team Fortress 2

Latest version License

TF2 Entities (Generated)

Generated by vbsp-entities-codegen. Intended for use with the vbsp crate.

Usage:

use vbsp::Bsp;
use vbsp_entities_tf2::Entity;

let data = std::fs::read("tf/maps/ctf_2fort.bsp")?;
let bsp = Bsp::read(&data)?;

for entity in &bsp.entities {
	match entity.parse() {
		// print Medkit locations
		Ok(Entity::ItemHealthkitFull(item_healthkit_full)) => dbg!(item_healthkit_full.origin),
		_ => (),
	}
}

Dependencies

~1–1.8MB
~37K SLoC