|
|
|
@ -21,15 +21,17 @@ int main (void)
|
|
|
|
|
cerr << "DF not found" << endl;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
DF.InitMap();
|
|
|
|
|
|
|
|
|
|
if (DF.InitViewAndCursor())
|
|
|
|
|
{
|
|
|
|
|
if(DF.getCursorCoords(x,y,z))
|
|
|
|
|
{
|
|
|
|
|
cout << "cursor coords: " << x << "/" << y << "/" << z << endl;
|
|
|
|
|
if(DF.isValidBlock(x,y,z))
|
|
|
|
|
{
|
|
|
|
|
DF.ReadDesignations((x/16),(y/16),(z/16), &designations);
|
|
|
|
|
cout << x%16;
|
|
|
|
|
|
|
|
|
|
designations[x%16][y%16].bits.flow_size = 7;
|
|
|
|
|
designations[x%16][y%16].bits.liquid_type = DFHack::liquid_magma;
|
|
|
|
|
DF.WriteDesignations(x,y,z, &designations);
|
|
|
|
@ -39,7 +41,7 @@ int main (void)
|
|
|
|
|
cout << "Failure 1" << endl;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
cout << "Failure 1" << endl;
|
|
|
|
|
cout << "Failure 2" << endl;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
cout << "Process Failed" << endl;
|
|
|
|
|