public void moduleUpgrade(moduleURL url, int buildingID) { string bURL = "/" + url.ToString(); int id = 625; string method = "upgrade"; JsonTextWriter r = Request(id, method, buildingID.ToString()); Post(bURL, r); }
public void moduleRepair(moduleURL url, int buildingID) { string bURL = "/" + url.ToString(); int id = 622; string method = "repair"; JsonTextWriter r = Request(id, method, buildingID.ToString()); Post(bURL, r); }
public void moduleDemolish(moduleURL url, int buildingID) { string bURL = "/" + url.ToString(); int id = 624; string method = "demolish"; JsonTextWriter r = Request(id, method, buildingID.ToString()); Post(bURL, r); }
//build, repair, upgrade, downgrade, demolish public void moduleBuild(moduleURL url, int bodyID, int x, int y) { string bURL = "/" + url.ToString(); int id = 621; string method = "build"; JsonTextWriter r = Request(id, method, bodyID.ToString(), x.ToString(), y.ToString()); Post(bURL, r); }