CodingLand/pkg/internal/land/root.go
2024-07-18 13:59:06 +08:00

18 lines
274 B
Go

package land
import (
"github.com/veandco/go-sdl2/sdl"
)
type RootObject struct {
BaseObject
}
func (p *RootObject) Draw(pen *sdl.Renderer) {
for _, child := range p.Children {
if drawableChild, ok := child.(DrawableObject); ok {
drawableChild.Draw(pen)
}
}
}