Esempio n. 1
0
    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();
        }
    }
Esempio n. 2
0
 public void Load()
 {
     SaveLoadHanlder.Load(inventory, "/Inventory.dat", true);
 }
Esempio n. 3
0
 public void TryLoad()
 {
     SaveLoadHanlder.Load(this, SavePath);
 }