Remove generated files from git

This commit is contained in:
AsmodeusRex 2022-10-31 11:48:34 -07:00
parent e9c2effcfb
commit 241fdcdf55
17 changed files with 15 additions and 9511 deletions

View file

@ -12,7 +12,7 @@ use surgery::*;
use things::*;
fn write(path: &'static str, data: &String) -> io::Result<()> {
let mut f = File::create(format!("../Content/Base/Defs/{path}.xml"))?;
let mut f = File::create(format!("../Content/Base/Defs/Generated/{path}.xml"))?;
let s = format!("<?xml version=\"1.0\" encoding=\"utf-8\"?>
<!-- This is an automatically generated file. If you are the end user, this is safe to edit. If you are a contributor, please edit the source files instead. -->
<Defs>{data}</Defs>");
@ -58,13 +58,13 @@ fn main() {
animal_races.push_str(&construct_racegroup(&group));
}
write("HediffDefs/Hediffs_Animals", &animal_hediffs).unwrap();
write("HediffDefs/Hediffs_Humans", &human_hediffs).unwrap();
write("HediffDefs/Hediffs_Breasts", &breast_hediffs).unwrap();
write("HediffDefs/Hediffs_Misc", &part_hediffs).unwrap();
write("RaceSupport/Custom_Parts", &raceparts).unwrap();
write("ThingDefs/Items_BodyParts", &thingdefs).unwrap();
write("RecipeDefs/Recipes_Surgery", &surgeries).unwrap();
write("RaceSupport/Humanoids", &human_races).unwrap();
write("RaceSupport/Animals", &animal_races).unwrap();
write("Hediffs_Animals", &animal_hediffs).unwrap();
write("Hediffs_Humans", &human_hediffs).unwrap();
write("Hediffs_Breasts", &breast_hediffs).unwrap();
write("Hediffs_Misc", &part_hediffs).unwrap();
write("Parts", &raceparts).unwrap();
write("Items_BodyParts", &thingdefs).unwrap();
write("Recipes_Surgery", &surgeries).unwrap();
write("Races_Humanoids", &human_races).unwrap();
write("Races_Animals", &animal_races).unwrap();
}