public DetailedTextureProfile(string savePath, string label, int w, int h, bool shouldLoad = false) { //If load is successfull these variables will be overriden by the saved version name = label; width = w; height = h; SavePath = savePath + "/" + label + ".dat"; if (shouldLoad) { SaveLoadHanlder.Load(this, SavePath, false); } else { LoadFailed(); } }
public void Load() { SaveLoadHanlder.Load(inventory, "/Inventory.dat", true); }
public void TryLoad() { SaveLoadHanlder.Load(this, SavePath); }