diff options
Diffstat (limited to 'svgbob/src/location.rs')
-rw-r--r-- | svgbob/src/location.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/svgbob/src/location.rs b/svgbob/src/location.rs index d339a2b..686a7f3 100644 --- a/svgbob/src/location.rs +++ b/svgbob/src/location.rs @@ -29,6 +29,12 @@ impl Location { Self::jump(direction, 1) } + // this location + // TODO: hacky fix these + pub fn this()-> Self{ + Self::jump(Right, 0) + } + pub fn jump(direction: Direction, step: usize) -> Self { Location(vec![(direction, step)]) } |