1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-07 10:47:19 -05:00
OpenDiablo2/Common/Drawable.go

14 lines
288 B
Go
Raw Normal View History

package Common
import "github.com/hajimehoshi/ebiten"
// Drawable represents an instance that can be drawn
type Drawable interface {
Draw(target *ebiten.Image)
GetSize() (width, height uint32)
MoveTo(x, y int)
GetLocation() (x, y int)
GetVisible() bool
SetVisible(visible bool)
}