1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-30 19:15:22 +00:00
OpenDiablo2/d2common/d2interface/drawable.go

14 lines
293 B
Go
Raw Normal View History

2019-11-10 08:36:53 +00:00
package d2interface
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)
}