mapserver/mapobject/clearmapdata.go
NatureFreshMilk 8d0fcebb17 mapblock size
2019-01-18 15:18:42 +01:00

19 lines
323 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)
}
}