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

Function getPlantBlock

library/modules/Designations.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using df::global::world;
20
21static df::map_block *getPlantBlock(const df::plant *plant)
22{
23 if (!world)
24 return nullptr;
25 return Maps::getTileBlock(Designations::getPlantDesignationTile(plant));
26}
27
28df::coord Designations::getPlantDesignationTile(const df::plant *plant)
29{

Callers 2

canMarkPlantMethod · 0.85
canUnmarkPlantMethod · 0.85

Calls 1

getTileBlockFunction · 0.85

Tested by

no test coverage detected