MCPcopy Create free account
hub / github.com/17cupsofcoffee/rl / get

Method get

src/resources.rs:143–145  ·  view source on GitHub ↗
(&self, x: usize, y: usize)

Source from the content-addressed store, hash-verified

141 }
142
143 pub fn get(&self, x: usize, y: usize) -> Option<&MapTile> {
144 self.tiles.get(x + y * self.width)
145 }
146
147 pub fn tile_positions(&self) -> impl Iterator<Item = (usize, usize, &MapTile)> {
148 self.tiles

Callers 1

process_movementFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected