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

Function listMaterial

library/RemoteTools.cpp:513–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513static void listMaterial(ListMaterialsOut *out, int type, int index, const BasicMaterialInfoMask *mask)
514{
515 MaterialInfo info(type, index);
516 if (info.isValid())
517 describeMaterial(out->add_value(), info, mask);
518}
519
520static command_result ListMaterials(color_ostream &stream,
521 const ListMaterialsIn *in, ListMaterialsOut *out)

Callers 1

ListMaterialsFunction · 0.85

Calls 2

add_valueMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected