2019-01-29 10:03:49 +03:00
|
|
|
package mapobject
|
|
|
|
|
|
|
|
import (
|
|
|
|
"mapserver/mapblockparser"
|
|
|
|
"mapserver/mapobjectdb"
|
|
|
|
)
|
|
|
|
|
|
|
|
type DigilineLcdBlock struct{}
|
|
|
|
|
|
|
|
func (this *DigilineLcdBlock) onMapObject(x, y, z int, block *mapblockparser.MapBlock) *mapobjectdb.MapObject {
|
|
|
|
md := block.Metadata.GetMetadata(x, y, z)
|
|
|
|
|
2019-02-06 10:38:08 +03:00
|
|
|
o := mapobjectdb.NewMapObject(block.Pos, x, y, z, "digilinelcd")
|
2019-01-29 10:03:49 +03:00
|
|
|
o.Attributes["text"] = md["text"]
|
|
|
|
o.Attributes["channel"] = md["channel"]
|
|
|
|
|
|
|
|
return o
|
|
|
|
}
|