1
0
forked from MTSR/mapserver
mapserver/mapobject/clearmapdata.go
2019-01-21 14:42:38 +01:00

18 lines
294 B
Go

package mapobject
import (
"mapserver/mapblockparser"
"mapserver/mapobjectdb"
)
type ClearMapData struct {
db mapobjectdb.DBAccessor
}
func (this *ClearMapData) OnParsedMapBlock(block *mapblockparser.MapBlock) {
err := this.db.RemoveMapData(block.Pos)
if err != nil {
panic(err)
}
}