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

Function is_meta_phase

plugins/blueprint.cpp:1409–1417  ·  view source on GitHub ↗

returns true if we could interface with lua and could verify that the given phase is a meta phase

Source from the content-addressed store, hash-verified

1407// returns true if we could interface with lua and could verify that the given
1408// phase is a meta phase
1409static bool is_meta_phase(color_ostream &out,
1410 blueprint_options opts, // copy because we can't const
1411 const string &phase) {
1412 bool ret = false;
1413 if (!Lua::CallLuaModuleFunction(out, "plugins.blueprint", "is_meta_phase",
1414 std::make_tuple(&opts, phase), 1, [&](lua_State *L){ret = lua_toboolean(L, -1);}))
1415 return false;
1416 return ret;
1417}
1418
1419static void write_minimal(ofstream &ofile, const blueprint_options &opts,
1420 const bp_volume &mapdata) {

Callers 2

get_modelineFunction · 0.85
do_transformFunction · 0.85

Calls 2

CallLuaModuleFunctionFunction · 0.85
lua_tobooleanFunction · 0.85

Tested by

no test coverage detected