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

Function init_extents

library/modules/Buildings.cpp:743–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741}
742
743static void init_extents(df::building::T_room &room, const df::coord &pos,
744 const df::coord2d &size)
745{
746 room.extents = new df::building_extents_type[size.x*size.y];
747 room.x = pos.x;
748 room.y = pos.y;
749 room.width = size.x;
750 room.height = size.y;
751
752 memset(room.extents, 1, size.x*size.y);
753}
754
755bool Buildings::checkFreeTiles(df::coord pos, df::coord2d size,
756 df::building *bld,

Callers 2

checkFreeTilesMethod · 0.85
checkBuildingTilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected