Putting in some broken code to get a peer review

develop
unknown 2010-03-25 16:29:05 -05:00
parent dbeb342c6a
commit f231f23332
1 changed files with 40 additions and 0 deletions

@ -0,0 +1,40 @@
// This will create 7 deep magama on the square the cursor is on. It does not
// enable magma buildings at this time.
#include <iostream>
#include <integers.h>
#include <vector>
using namespace std;
#include <DFTypes.h>
#include <DFHackAPI.h>
int main (void)
{
uint32_t x,y,z;
DFHack::designations40d designations;
DFHack::API DF("Memory.xml");
if(!DF.Attach())
{
cerr << "DF not found" << endl;
return 1;
}
DF.InitMap();
DF.getCursorCoords(x,y,z);
DF.ReadDesignations((x/16),(y/16),(z/16), &designations);
designations[x%16][y%16].bits.flow_size = 7;
designations[x%16][y%16].bits.liquid_type = liquid_magma;
DF.Detach();
#ifndef LINUX_BUILD
cout << "Done. Press any key to continue" << endl;
cin.ignore();
#endif
return 0;
}