gg/ox/object.go
2024-06-01 18:07:28 +05:00

25 lines
650 B
Go

package ox
import "surdeus.su/core/gg"
type DrawerImpl struct{}
func (o DrawerImpl) Draw(c gg.Context) *gg.Drawing {
return nil
}
func (o DrawerImpl) GetLayer() gg.Layer {return 0}
func (o DrawerImpl) IsVisible() bool {return false}
type BeherImpl struct{}
func (o BeherImpl) OnStart(c gg.Context) {}
func (o BeherImpl) OnUpdate(c gg.Context) {}
func (o BeherImpl) OnDelete(c gg.Context) {}
func (o BeherImpl) GetTags() gg.TagMap {return nil}
// The standard empty implementation
// of the Object interface to embed
// so you do not need to implement everything.
var _ = gg.Object(ObjectImpl{})
type ObjectImpl struct {
DrawerImpl
BeherImpl
}