last_light/game/world/empty_map.go

23 lines
413 B
Go

package world
import "mvvasilev/last_light/engine"
type EmptyDungeonMap struct {
level *BasicMap
}
func (edl *EmptyDungeonMap) Size() engine.Size {
return edl.level.Size()
}
func (edl *EmptyDungeonMap) SetTileAt(x int, y int, t Tile) {
edl.level.SetTileAt(x, y, t)
}
func (edl *EmptyDungeonMap) TileAt(x int, y int) Tile {
return edl.level.TileAt(x, y)
}
func (edl *EmptyDungeonMap) Tick(dt int64) {
}