mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-18 02:16:23 -05:00
55dc3e42ed
* adding comments to d2interface for linter * moved d2render renderer interfaces and types into d2interface
17 lines
353 B
Go
17 lines
353 B
Go
package d2ui
|
|
|
|
import (
|
|
"github.com/OpenDiablo2/OpenDiablo2/d2common/d2interface"
|
|
)
|
|
|
|
// Drawable represents an instance that can be drawn
|
|
type Drawable interface {
|
|
Render(target d2interface.Surface)
|
|
Advance(elapsed float64)
|
|
GetSize() (width, height int)
|
|
SetPosition(x, y int)
|
|
GetPosition() (x, y int)
|
|
GetVisible() bool
|
|
SetVisible(visible bool)
|
|
}
|