forked from MTSR/mapserver
18 lines
294 B
Go
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)
|
|
}
|
|
}
|