Skip to content
/ vmf Public

Go library for parsing Valve's Hammer Editor .vmf map files

License

Notifications You must be signed in to change notification settings

Galaco/vmf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoDoc Go report card Build Status

vmf

Golang library for manipulating hammer Editor .vmf map files

This library constructs a simple node tree that you can query any structure(s) and any property(s) of.

Usage

package main

import (
    "fmt"
    "github.com/galaco/vmf"
)

func main() {
	file,_ := os.Open("de_dust2.vmf")

	reader := vmf.NewReader(file)
	f,_ := reader.Read()

	fmt.Println(f.Entities.GetChildrenByKey("entity")[0].GetProperty("classname"))
	fmt.Println(f.Entities.GetChildrenByKey("entity")[0].GetChildrenByKey("solid"))
}

About

Go library for parsing Valve's Hammer Editor .vmf map files

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages