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

Function projPosAtStep

plugins/siege-engine.cpp:876–883  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874}
875
876static int projPosAtStep(lua_State *L)
877{
878 auto engine = find_engine(L, 1);
879 auto path = decode_path(L, 2, engine->center);
880 int step = luaL_checkint(L, 3);
881 Lua::Push(L, path[step]);
882 return 1;
883}
884
885static bool isPassableTile(df::coord pos)
886{

Callers

nothing calls this directly

Calls 3

find_engineFunction · 0.85
decode_pathFunction · 0.85
PushFunction · 0.85

Tested by

no test coverage detected