CodingLand/pkg/internal/land/object_ui.go
2024-07-18 21:03:21 +08:00

22 lines
319 B
Go

package land
import "github.com/veandco/go-sdl2/sdl"
type BaseUIObject struct {
BaseObject
Position Vector2D
Size Vector2D
}
func (p *BaseUIObject) Draw(pen *sdl.Renderer) {
}
func (p *BaseUIObject) GetPosition() Vector2D {
return p.Position
}
func (p *BaseUIObject) GetSize() Vector2D {
return p.Size
}