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

Function df_liquids_execute

plugins/liquids.cpp:397–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

395}
396
397command_result df_liquids_execute(color_ostream &out)
398{
399 auto cursor = Gui::getCursorPos();
400 if (!cursor.isValid())
401 {
402 out.printerr("Can't get cursor coords! Make sure you have a cursor active in DF.\n");
403 return CR_WRONG_USAGE;
404 }
405
406 auto rv = df_liquids_execute(out, cur_mode, cursor);
407 if (rv == CR_OK)
408 out << "OK" << endl;
409 return rv;
410}
411
412command_result df_liquids_execute(color_ostream &out, OperationMode &cur_mode, df::coord cursor)
413{

Callers 3

df_liquidsFunction · 0.85
df_liquids_hereFunction · 0.85
paintFunction · 0.85

Calls 15

findRandomVariantFunction · 0.85
FlowPassableFunction · 0.85
setTiletypeAtMethod · 0.80
setDesignationAtMethod · 0.80
BlockAtMethod · 0.80
enableBlockUpdatesMethod · 0.80
tiletypeAtMethod · 0.80
BlockFlagsMethod · 0.80
WriteAllMethod · 0.80
isValidMethod · 0.45
resetMethod · 0.45
pointsMethod · 0.45

Tested by

no test coverage detected