From 70d5138a3fb665cdfd3333b210b6aa39886e4472 Mon Sep 17 00:00:00 2001 From: Matt Zykan Date: Mon, 23 Sep 2024 21:03:09 -0500 Subject: [PATCH] add map() with no args to wren api class --- src/api/wren.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/wren.c b/src/api/wren.c index df319c072..725e1b6fa 100644 --- a/src/api/wren.c +++ b/src/api/wren.c @@ -66,6 +66,7 @@ class TIC {\n\ foreign static spr(id, x, y, alpha_color, scale, flip)\n\ foreign static spr(id, x, y, alpha_color, scale, flip, rotate)\n\ foreign static spr(id, x, y, alpha_color, scale, flip, rotate, cell_width, cell_height)\n\ + foreign static map()\n\ foreign static map(cell_x, cell_y)\n\ foreign static map(cell_x, cell_y, cell_w, cell_h)\n\ foreign static map(cell_x, cell_y, cell_w, cell_h, x, y)\n\ @@ -1517,6 +1518,7 @@ static WrenForeignMethodFn foreignTicMethods(const char* signature) if (strcmp(signature, "static TIC.spr(_,_,_,_,_,_,_)" ) == 0) return wren_spr; if (strcmp(signature, "static TIC.spr(_,_,_,_,_,_,_,_,_)" ) == 0) return wren_spr; + if (strcmp(signature, "static TIC.map()" ) == 0) return wren_map; if (strcmp(signature, "static TIC.map(_,_)" ) == 0) return wren_map; if (strcmp(signature, "static TIC.map(_,_,_,_)" ) == 0) return wren_map; if (strcmp(signature, "static TIC.map(_,_,_,_,_,_)" ) == 0) return wren_map;