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

Function GetLanguage

plugins/remotefortressreader/remotefortressreader.cpp:2974–2987  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2972}
2973
2974static command_result GetLanguage(color_ostream & stream, const EmptyMessage * in, RemoteFortressReader::Language * out)
2975{
2976 if (!world)
2977 return CR_FAILURE;
2978
2979 for (size_t i = 0; i < world->raws.descriptors.shapes.size(); i++)
2980 {
2981 auto shape = world->raws.descriptors.shapes[i];
2982 auto netShape = out->add_shapes();
2983 netShape->set_id(shape->id);
2984 netShape->set_tile(shape->tile);
2985 }
2986 return CR_OK;
2987}

Callers

nothing calls this directly

Calls 2

set_tileMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected