MCPcopy Create free account
hub / github.com/DFHack/dfhack / link_adjacent_smooth_walls

Function link_adjacent_smooth_walls

plugins/dig-now.cpp:1085–1099  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1083}
1084
1085static int link_adjacent_smooth_walls(lua_State *L)
1086{
1087 DFCoord pos;
1088 if (lua_gettop(L) <= 1)
1089 Lua::CheckDFAssign(L, &pos, 1);
1090 else
1091 pos = DFCoord(luaL_checkint(L, 1), luaL_checkint(L, 2),
1092 luaL_checkint(L, 3));
1093
1094 MapExtras::MapCache map;
1095 adjust_smooth_wall_dir(map, pos);
1096 refresh_adjacent_smooth_walls(map, pos);
1097 map.WriteAll();
1098 return 0;
1099}
1100
1101DFHACK_PLUGIN_LUA_COMMANDS {
1102 DFHACK_LUA_COMMAND(dig_now_tile),

Callers

nothing calls this directly

Calls 5

lua_gettopFunction · 0.85
CheckDFAssignFunction · 0.85
adjust_smooth_wall_dirFunction · 0.85
WriteAllMethod · 0.80

Tested by

no test coverage detected