From ba8933937e0b24e5a648ec176c4f0b8515fb0e2d Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 6 Oct 2021 22:06:05 +0200 Subject: Implemented missing functions for the interpreter --- src/field.nim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/field.nim') diff --git a/src/field.nim b/src/field.nim index a9d706e..0a741c9 100644 --- a/src/field.nim +++ b/src/field.nim @@ -213,3 +213,6 @@ func Step*(f: Field, v: tuple[x, y: int], d: tuple[x, y: int]): (int, int) = if not f.IsIn(x2, y2): return (x, y) x = x2; y = y2 + +func GetSize*(f: Field): (int, int, int, int) = + return (f.x, f.y, f.lx, f.ly) -- cgit v1.2.3