mapserver/mapobject/poi.go
NatureFreshMilk 0415b69731 mapobjectdb
2019-01-18 15:51:10 +01:00

28 lines
411 B
Go

package mapobject
import (
"mapserver/coords"
"mapserver/mapblockparser"
"mapserver/mapobjectdb"
)
type POI struct {
db mapobjectdb.DBAccessor
}
func (this *POI) OnParsedMapBlock(block *mapblockparser.MapBlock, pos coords.MapBlockCoords) {
var found bool
for _, v := range block.BlockMapping {
if v == "mapserver:poi" {
found = true
break
}
}
if !found {
return
}
panic("OK") //XXX
}