2020-01-31 23:18:11 -05:00
|
|
|
package d2ui
|
2019-10-25 18:40:27 -04:00
|
|
|
|
2020-02-01 20:39:28 -05:00
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2core/d2render"
|
2019-10-25 18:40:27 -04:00
|
|
|
|
|
|
|
// Drawable represents an instance that can be drawn
|
|
|
|
type Drawable interface {
|
2020-02-01 20:39:28 -05:00
|
|
|
Render(target d2render.Surface)
|
2019-12-28 23:32:24 -05:00
|
|
|
Advance(elapsed float64)
|
2019-12-21 20:53:18 -05:00
|
|
|
GetSize() (width, height int)
|
|
|
|
SetPosition(x, y int)
|
|
|
|
GetPosition() (x, y int)
|
2019-10-25 18:40:27 -04:00
|
|
|
GetVisible() bool
|
2019-10-25 22:20:36 -04:00
|
|
|
SetVisible(visible bool)
|
2019-10-25 18:40:27 -04:00
|
|
|
}
|