use source_vmt::Vmt;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let input = r#"
"VertexLitGeneric"
{
"$basetexture" "models/player/scout/scout_red"
"$surfaceprop" "flesh"
}
"#;
let mut vmt = Vmt::from_str(input)?;
vmt.set_flag("$rimlight", true)
.set_string("$rimlightexponent", "5")
.remove("$surfaceprop");
let result = vmt.to_string()?;
println!("--- Updated VMT ---");
println!("{}", result);
Ok(())
}