[Script] automatic update

This commit is contained in:
Anuken
2022-01-22 15:49:05 -05:00
parent fdcc373813
commit c7d68be8fb
4 changed files with 33 additions and 1 deletions

View File

@@ -39,6 +39,11 @@ public class Tiles implements Iterable<Tile>{
array[y*width + x] = tile;
}
/** set a tile at a raw array position; does not range-check. use with caution. */
public void seti(int i, Tile tile){
array[i] = tile;
}
/** @return whether these coordinates are in bounds */
public boolean in(int x, int y){
return x >= 0 && x < width && y >= 0 && y < height;