1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-11 18:20:42 +00:00
OpenDiablo2/d2common/d2interface/map_entity.go
lord 524132c122
D2datadict unique items bugfix (#669)
* d2ui.Label: add support for color tokens in labels, multiple colors per label

* unique items should use the item name as the map key
2020-08-02 21:26:07 -04:00

18 lines
446 B
Go

package d2interface
import "github.com/OpenDiablo2/OpenDiablo2/d2common/d2math/d2vector"
// MapEntity is something that can be positioned on and rendered on the game map
type MapEntity interface {
Render(target Surface)
Advance(tickTime float64)
GetPosition() d2vector.Position
GetVelocity() d2vector.Vector
GetSize() (width, height int)
GetLayer() int
GetPositionF() (float64, float64)
Label() string
Selectable() bool
Highlight()
}