1
0
forked from MTSR/mapserver
mapserver/mapobject/clearmapdata.go
2019-01-18 15:10:46 +01:00

19 lines
327 B
Go

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