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

Function get_details

plugins/prospector.cpp:292–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290};
291
292static df::world_region_details *get_details(df::world_data *data, df::coord2d pos)
293{
294 int d_idx = linear_index(data->midmap_data.region_details, &df::world_region_details::pos, pos);
295 return vector_get(data->midmap_data.region_details, d_idx);
296}
297
298bool estimate_underground(color_ostream &out, EmbarkTileLayout &tile, df::world_region_details *details, int x, int y)
299{

Callers 2

estimate_undergroundFunction · 0.85
embark_prospectorFunction · 0.85

Calls 2

vector_getFunction · 0.85
linear_indexFunction · 0.50

Tested by

no test coverage detected