2024-05-28 11:24:12 +03:00
|
|
|
package ox
|
|
|
|
|
2024-06-01 16:07:28 +03:00
|
|
|
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}
|
|
|
|
|
2024-05-28 11:24:12 +03:00
|
|
|
// The standard empty implementation
|
2024-06-01 16:07:28 +03:00
|
|
|
// of the Object interface to embed
|
|
|
|
// so you do not need to implement everything.
|
|
|
|
var _ = gg.Object(ObjectImpl{})
|
|
|
|
type ObjectImpl struct {
|
|
|
|
DrawerImpl
|
|
|
|
BeherImpl
|
|
|
|
}
|
2024-06-01 22:01:17 +03:00
|
|
|
|