mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2024-11-06 18:27:20 -05:00
c01bedaedf
* Do not advance state in render * Update advance logic for sprite and region
15 lines
356 B
Go
15 lines
356 B
Go
package d2coreinterface
|
|
|
|
import "github.com/OpenDiablo2/OpenDiablo2/d2render/d2surface"
|
|
|
|
// Drawable represents an instance that can be drawn
|
|
type Drawable interface {
|
|
Render(target *d2surface.Surface)
|
|
Advance(elapsed float64)
|
|
GetSize() (width, height int)
|
|
SetPosition(x, y int)
|
|
GetPosition() (x, y int)
|
|
GetVisible() bool
|
|
SetVisible(visible bool)
|
|
}
|