mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-10 14:26:15 -05:00
1c2b4869a1
* Switch items to dynamic load with a common struct, add misc.txt loading * Update Ebiten Reference * Switch references to point to D2Shared * Migrate part 2
14 lines
297 B
Go
14 lines
297 B
Go
package d2coreinterface
|
|
|
|
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)
|
|
}
|