1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-10-31 16:27:18 -04:00
OpenDiablo2/d2corecommon/d2coreinterface/scene.go
Alex Yatskov c01bedaedf Do not advance state in render (#269)
* Do not advance state in render

* Update advance logic for sprite and region
2019-12-28 23:32:24 -05:00

12 lines
264 B
Go

package d2coreinterface
import "github.com/OpenDiablo2/OpenDiablo2/d2render/d2surface"
// Scene defines the function necessary for scene management
type Scene interface {
Load() []func()
Unload()
Render(target *d2surface.Surface)
Advance(tickTime float64)
}