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

19 lines
335 B
Go

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