mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-08 17:46:24 -05:00
* 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
14 lines
314 B
Go
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()
|
|
}
|