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

Method fake_df_id

library/modules/Persistence.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160int PersistentDataItem::fake_df_id() {
161 if (!isValid())
162 return 0;
163
164 // set it if unset
165 if (data->fake_df_id == 0)
166 data->fake_df_id = next_fake_df_id--;
167
168 return data->fake_df_id;
169}
170
171void Persistence::Internal::clear(color_ostream& out) {
172 CoreSuspender suspend;

Callers 4

getPersistentTilemaskMethod · 0.80
history_keyFunction · 0.80
push_constraintFunction · 0.80

Calls 1

isValidFunction · 0.50

Tested by

no test coverage detected