mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-09-14 15:28:11 -04:00
14 lines
274 B
Go
14 lines
274 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() (uint32, uint32)
|
||
|
MoveTo(x, y int)
|
||
|
GetLocation() (int, int)
|
||
|
GetVisible() bool
|
||
|
SetVisible(bool)
|
||
|
}
|