Further hunt mode refactors
This commit is contained in:
@ -10,6 +10,15 @@ class Drawing {
|
||||
this.camera = new Point(0, 0);
|
||||
}
|
||||
|
||||
withCamera(point: Point, cb: () => void) {
|
||||
let oldCamera = this.camera;
|
||||
this.camera = this.camera = point;
|
||||
|
||||
cb();
|
||||
|
||||
this.camera = oldCamera;
|
||||
}
|
||||
|
||||
get size() { return getScreen().size; }
|
||||
|
||||
invertRect(position: Point, size: Size) {
|
||||
|
Reference in New Issue
Block a user