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

Method GetLocalFeature

library/modules/MapCache.cpp:1147–1153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1145}
1146
1147bool MapExtras::Block::GetLocalFeature(t_feature *out)
1148{
1149 out->type = (df::feature_type)-1;
1150 if (!valid || block->local_feature < 0)
1151 return false;
1152 return ::GetLocalFeature(*out, block->region_pos, block->local_feature);
1153}
1154
1155void MapExtras::Block::init_item_counts()
1156{

Callers 1

map_prospectorFunction · 0.80

Calls 1

GetLocalFeatureFunction · 0.85

Tested by 1

map_prospectorFunction · 0.64