1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-02 17:27:23 -04:00
OpenDiablo2/d2common/d2interface/map_entity.go
Ziemas 3757ff1ac5
New package d2object, first object initFun (#537)
* Move MapEntity to d2interface

* New package d2object, first object initFun

Moves objects out to their own package and implements the very first
init function, torches/braziers now gets their animation mode set at creation.

* Apply name again

* Turn on waypoints
2020-07-04 00:48:31 -04:00

14 lines
314 B
Go

package d2interface
// MapEntity is something that can be positioned on and rendered on the game map
type MapEntity interface {
Render(target Surface)
Advance(tickTime float64)
GetPosition() (float64, float64)
GetLayer() int
GetPositionF() (float64, float64)
Name() string
Selectable() bool
Highlight()
}