mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-10-31 16:27:18 -04:00
14 lines
288 B
Go
14 lines
288 B
Go
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)
|
|
}
|