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

Method getName

library/modules/Job.cpp:666–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666std::string Job::getName(df::job *job)
667{
668 CHECK_NULL_POINTER(job);
669
670 std::string desc;
671 auto button = df::allocate<df::interface_button_building_new_jobst>();
672 button->mstring = job->reaction_name;
673 button->specdata.hist_figure_id = job->specdata.hist_figure_id;
674 button->jobtype = job->job_type;
675 button->itemtype = job->item_type;
676 button->subtype = job->item_subtype;
677 button->material = job->mat_type;
678 button->matgloss = job->mat_index;
679 button->specflag = job->specflag;
680 button->job_item_flag = job->material_category;
681 button->specdata = job->specdata;
682 button->art_specifier_id1 = job->art_spec.id;
683 button->art_specifier_id2 = job->art_spec.subid;
684
685 button->text(&desc);
686 delete button;
687
688 return desc;
689}
690
691std::string Job::getManagerOrderName(df::manager_order *order)
692{

Callers 15

plugMethod · 0.45
typeMethod · 0.45
dump_rpcMethod · 0.45
IndexFieldsFunction · 0.45
enum_identityMethod · 0.45
findMethod · 0.45
registerCommandsMethod · 0.45
applyMethod · 0.45
RenderTypeFunction · 0.45
RenderTypeChildrenFunction · 0.45
registerListenerMethod · 0.45
registerTickMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected