2022-01-30 15:29:47 +03:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/minetest-go/mapparser"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ParsedMapblock struct {
|
|
|
|
Mapblock *mapparser.MapBlock
|
2023-12-29 18:00:11 +03:00
|
|
|
Pos *MapBlockCoords
|
2022-01-30 15:29:47 +03:00
|
|
|
}
|
|
|
|
|
2023-12-29 18:00:11 +03:00
|
|
|
func NewParsedMapblock(mb *mapparser.MapBlock, pos *MapBlockCoords) *ParsedMapblock {
|
2022-01-30 15:29:47 +03:00
|
|
|
return &ParsedMapblock{Mapblock: mb, Pos: pos}
|
|
|
|
}
|