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

Method insert

library/modules/Constructions.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66bool Constructions::insert(df::construction * constr)
67{
68 bool toInsert;
69 insert_into_vector(world->event.constructions, &df::construction::pos, constr, &toInsert);
70 return toInsert;
71}
72
73bool Constructions::designateNew(df::coord pos, df::construction_type type,
74 df::item_type item, int mat_index)

Callers 15

setArmokToolsMethod · 0.45
RunAliasMethod · 0.45
TEST_FFunction · 0.45
dfhack_timeoutFunction · 0.45
screen_doSimulateInputFunction · 0.45
mapifyFunction · 0.45
find_child_hostsMethod · 0.45
applyMethod · 0.45
removeMethod · 0.45
prompt_loopMethod · 0.45
prompt_loopMethod · 0.45
registerListenerMethod · 0.45

Calls 1

insert_into_vectorFunction · 0.85

Tested by 2

TEST_FFunction · 0.36
add_bucket_to_vectorsFunction · 0.36