MCPcopy Create free account
hub / github.com/SolarLune/masterplan / GetI

Method GetI

contents.go:2455–2460  ·  view source on GitHub ↗
(x, y int)

Source from the content-addressed store, hash-verified

2453}
2454
2455func (mapData *MapData) GetI(x, y int) int {
2456 if y < 0 || x < 0 || y >= mapData.Height || x >= mapData.Width {
2457 return -1
2458 }
2459 return mapData.Data[y][x]
2460}
2461
2462func (mapData *MapData) Get(point Vector) int {
2463 return mapData.GetI(int(point.X), int(point.Y))

Callers 3

SetMethod · 0.95
GetMethod · 0.95
UpdateTextureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected