func GetMap(id int32) (Map, error) {
	if _, ok := maps[id]; !ok {
		return Map{}, fmt.Errorf("invalid map id: %v", id)
	}
	return maps[id], nil
}
GetMap from loaded nx
package nx
import (
	"fmt"
	"log"
	"github.com/Hucaru/gonx"
)
var items map[int32]Item
var maps map[int32]Map
var mobs map[int32]Mob
var playerSkills map[int32][]PlayerSkill
var mobSkills map[byte][]MobSkill
func LoadFile(fname string) {
	nodes, textLookup, _, _, err := gonx.Parse(fname)
	if err != nil {
		panic(err)
	}
	items = extractItems(nodes, textLookup)
	maps = extractMaps(nodes, textLookup)
	mobs = extractMobs(nodes, textLookup)
	playerSkills, mobSkills = extractSkills(nodes, textLookup)
}
func GetItem(id int32) (Item, error) {
	if _, ok := items[id]; !ok {
		return Item{}, fmt.Errorf("invalid item id: %v", id)
	}
	return items[id], nil
}