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

Method setTiletypeAt

library/modules/MapCache.cpp:267–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267bool MapExtras::Block::setTiletypeAt(df::coord2d pos, df::tiletype tt, bool force)
268{
269 if (!block)
270 return false;
271
272 if (!basemats)
273 init_tiles(true);
274
275 pos = pos & 15;
276
277 dirty_tiles = true;
278 tiles->raw_tiles[pos.x][pos.y] = tt;
279 tiles->dirty_raw.setassignment(pos, true);
280
281 return true;
282}
283
284static df::block_square_event_designation_priorityst *getPriorityEvent(df::map_block *block, bool write)
285{

Callers 9

setTiletypeAtFunction · 0.80
df_liquids_executeFunction · 0.80
paintTileProcessingFunction · 0.80
dig_typeFunction · 0.80
dig_tileFunction · 0.80
adjust_smooth_wall_dirFunction · 0.80
smooth_tileFunction · 0.80
carve_tileFunction · 0.80
df_tilesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected