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

Method setPriorityAt

library/modules/MapCache.cpp:332–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330}
331
332bool MapExtras::Block::setPriorityAt(df::coord2d pos, int32_t priority)
333{
334 if (!block || priority <= 0)
335 return false;
336
337 auto event = getPriorityEvent(block, true);
338 event->priority[pos.x % 16][pos.y % 16] = priority;
339 return true;
340}
341
342bool MapExtras::Block::setVeinMaterialAt(df::coord2d pos, int16_t mat, df::inclusion_type type)
343{

Callers 1

setPriorityAtFunction · 0.80

Calls 1

getPriorityEventFunction · 0.85

Tested by

no test coverage detected