tins2020/control.go
2020-05-09 15:32:43 +02:00

19 lines
340 B
Go

package tins2020
import "github.com/veandco/go-sdl2/sdl"
type Control interface {
Init(*Context) error
Handle(*Context, sdl.Event)
Render(*Context)
}
type ControlBase struct {
}
func (b *ControlBase) Handle(*Context, sdl.Event) {}
func (b *ControlBase) Render(*Context) {}
func (b *ControlBase) Init(*Context) error { return nil }