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

Method points

plugins/Brushes.h:92–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 BlockBrush(){};
91 ~BlockBrush(){};
92 coord_vec points(MapExtras::MapCache & mc, DFHack::DFCoord start)
93 {
94 coord_vec v;
95 DFHack::DFCoord blockc = start / 16;
96 DFHack::DFCoord iterc = blockc * 16;
97 if( !mc.testCoord(start) )
98 return v;
99 auto starty = iterc.y;
100 for(int xi = 0; xi < 16; xi++)
101 {
102 for(int yi = 0; yi < 16; yi++)
103 {
104 v.push_back(iterc);
105 iterc.y++;
106 }
107 iterc.y = starty;
108 iterc.x ++;
109 }
110 return v;
111 };
112 std::string str() const {
113 return "block";
114 }

Callers 2

df_liquids_executeFunction · 0.45
executePaintJobFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected