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

Method priorityAt

library/modules/MapCache.cpp:321–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319
320
321int32_t MapExtras::Block::priorityAt(df::coord2d pos)
322{
323 if (!block)
324 return false;
325
326 if (auto event = getPriorityEvent(block, false))
327 return event->priority[pos.x % 16][pos.y % 16];
328
329 return 0;
330}
331
332bool MapExtras::Block::setPriorityAt(df::coord2d pos, int32_t priority)
333{

Callers 1

priorityAtFunction · 0.80

Calls 1

getPriorityEventFunction · 0.85

Tested by

no test coverage detected