Skip to content

Commit

Permalink
add map() with no args to wren api class (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
anescient authored Sep 30, 2024
1 parent 0e34eaa commit ac30827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/wren.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit ac30827

Please sign in to comment.