19 lines
335 B
Go
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)
|
|
}
|
|
}
|