sort interfaces

This commit is contained in:
Josh Deprez 2021-08-18 14:25:51 +10:00
parent 2f372d10d4
commit f8665c82be

View file

@ -18,6 +18,11 @@ type Drawer interface {
Draw(screen *ebiten.Image, opts ebiten.DrawImageOptions)
}
// DrawOrderer is used to reorder layers.
type DrawOrderer interface {
DrawOrder() float64
}
// Identifier components have a sense of self. This makes it easier for
// components to find and interact with one another.
type Identifier interface {
@ -44,8 +49,3 @@ type Scanner interface {
type Updater interface {
Update() error
}
// DrawOrderer is used to reorder layers.
type DrawOrderer interface {
DrawOrder() float64
}