CodingLand/pkg/internal/land/root.go

18 lines
274 B
Go
Raw Normal View History

2024-07-18 05:59:06 +00:00
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)
}
}
}