1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-06 18:27:20 -05:00
OpenDiablo2/d2core/d2ui/drawable.go
Tim Sarbin 2461142fbd
Minor changes to project layout (#276)
* Minor changes to reduce interdependencies on modules.
2020-01-31 23:18:11 -05:00

17 lines
338 B
Go

package d2ui
import (
"github.com/OpenDiablo2/OpenDiablo2/d2common"
)
// Drawable represents an instance that can be drawn
type Drawable interface {
Render(target d2common.Surface)
Advance(elapsed float64)
GetSize() (width, height int)
SetPosition(x, y int)
GetPosition() (x, y int)
GetVisible() bool
SetVisible(visible bool)
}