public static Blueprint LoadWholeBlueprintAtPath(string path) { BlueprintLoader loader = new BlueprintLoader(path); try { loader.LoadBlueprint(); return(loader.blueprint); } catch (Exception) { return(null); } }
public static Blueprint LoadRandomBlueprintPartAtPath(string path, IntVec3 size) { BlueprintLoader loader = new BlueprintLoader(path); try { loader.LoadBlueprint(); loader.CutRandomRectOfSize(size); return(loader.blueprint); } catch (Exception) { return(null); } }