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

Method set_base_mat

library/modules/MapCache.cpp:666–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

664}
665
666void MapExtras::Block::BasematInfo::set_base_mat(TileInfo *tiles, df::coord2d pos, int16_t type, int16_t idx)
667{
668 mat_type[pos.x][pos.y] = type;
669 mat_index[pos.x][pos.y] = idx;
670
671 // Copy base info back to construction layer
672 if (tiles->con_info && !tiles->con_info->constructed.getassignment(pos))
673 {
674 tiles->con_info->mat_type[pos.x][pos.y] = type;
675 tiles->con_info->mat_index[pos.x][pos.y] = idx;
676 }
677}
678
679void MapExtras::Block::WriteVeins(TileInfo *tiles, BasematInfo *bmats)
680{

Callers 4

setVeinMaterialAtMethod · 0.80
setStoneAtMethod · 0.80
setSoilAtMethod · 0.80
ParseBasematsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected