2020-04-18 00:12:15 +01:00
|
|
|
package scenario
|
|
|
|
|
|
|
|
import (
|
|
|
|
"code.ur.gs/lupine/ordoor/internal/maps"
|
|
|
|
)
|
|
|
|
|
|
|
|
type CellPoint struct {
|
|
|
|
IsoPt
|
|
|
|
Z int
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *Scenario) CellAtCursor() (maps.Cell, CellPoint) {
|
2020-04-18 11:44:05 +01:00
|
|
|
cell := s.area.Cell(int(s.selectedCell.X), int(s.selectedCell.Y), 0)
|
|
|
|
return cell, CellPoint{IsoPt: s.selectedCell, Z: 0}
|
2020-04-18 00:12:15 +01:00
|
|
|
}
|