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

Function createDesign

library/modules/Buildings.cpp:1053–1067  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1051}
1052
1053static void createDesign(df::building *bld, bool rough)
1054{
1055 auto job = bld->jobs[0];
1056
1057 job->mat_type = bld->mat_type;
1058 job->mat_index = bld->mat_index;
1059
1060 if (bld->needsDesign())
1061 {
1062 auto act = (df::building_actual*)bld;
1063 act->design = new df::building_design();
1064
1065 act->design->flags.bits.rough = rough;
1066 }
1067}
1068
1069static int getMaxStockpileId()
1070{

Callers 2

constructWithItemsMethod · 0.85
constructWithFiltersMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected