(mapWidth int, mapHeight int)
| 13 | } |
| 14 | |
| 15 | func newMapRender(mapWidth int, mapHeight int) mapRender { |
| 16 | ret := mapRender{ |
| 17 | Render: make([][]MapCell, mapHeight), |
| 18 | legend: make(map[rune]string, 3), |
| 19 | } |
| 20 | for y := 0; y < mapHeight; y++ { |
| 21 | ret.Render[y] = make([]MapCell, mapWidth) |
| 22 | for x := 0; x < mapWidth; x++ { |
| 23 | ret.Render[y][x] = MapCell{Symbol: ' '} |
| 24 | } |
| 25 | } |
| 26 | return ret |
| 27 | } |
| 28 | |
| 29 | func (m *mapRender) GetLegend(overrides map[rune]string) map[rune]string { |
| 30 | ret := map[rune]string{} |
no outgoing calls
no test coverage detected