30 lines
670 B
Go
30 lines
670 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(
|
|
c gg.Context,
|
|
) 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
|
|
}
|
|
|