public static Blueprint_Install PlaceBlueprintForReinstall(Building buildingToReinstall, IntVec3 center, Map map, Rot4 rotation, Faction faction) { Blueprint_Install blueprint_Install = (Blueprint_Install)ThingMaker.MakeThing(buildingToReinstall.def.installBlueprintDef, null); blueprint_Install.SetBuildingToReinstall(buildingToReinstall); blueprint_Install.SetFactionDirect(faction); GenSpawn.Spawn(blueprint_Install, center, map, rotation, WipeMode.Vanish, false); return(blueprint_Install); }
public static Blueprint_Install PlaceBlueprintForReinstall(Building buildingToReinstall, IntVec3 center, Map map, Rot4 rotation, Faction faction) { Blueprint_Install obj = (Blueprint_Install)ThingMaker.MakeThing(buildingToReinstall.def.installBlueprintDef); obj.SetBuildingToReinstall(buildingToReinstall); obj.SetFactionDirect(faction); GenSpawn.Spawn(obj, center, map, rotation); return(obj); }