2019-11-17 00:16:33 -05:00
|
|
|
package d2coreinterface
|
2019-10-25 18:40:27 -04:00
|
|
|
|
2019-12-28 16:46:08 -05:00
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2render/d2surface"
|
2019-10-25 18:40:27 -04:00
|
|
|
|
|
|
|
// Drawable represents an instance that can be drawn
|
|
|
|
type Drawable interface {
|
2019-12-28 16:46:08 -05:00
|
|
|
Render(target *d2surface.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
|
|
|
}
|