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

Function setDesignationAt

library/include/modules/MapCache.h:539–548  ·  view source on GitHub ↗

if priority is 0, it is kept unchanged if previously set, otherwise 4000

Source from the content-addressed store, hash-verified

537 }
538 // if priority is 0, it is kept unchanged if previously set, otherwise 4000
539 bool setDesignationAt (DFCoord tilecoord, df::tile_designation des, int32_t priority = 0)
540 {
541 if (Block *b = BlockAtTile(tilecoord))
542 {
543 if (!b->setDesignationAt(tilecoord, des, priority))
544 return false;
545 return true;
546 }
547 return false;
548 }
549
550 int32_t priorityAt (DFCoord tilecoord)
551 {

Callers

nothing calls this directly

Calls 2

BlockAtTileFunction · 0.85
setDesignationAtMethod · 0.80

Tested by

no test coverage detected