mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-06 18:27:20 -05:00
2461142fbd
* Minor changes to reduce interdependencies on modules.
17 lines
338 B
Go
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)
|
|
}
|