Exemple #1
0
 void Save()
 {
     PlayerPrefs.SetInt("GI", GeneratedItems);
     if (GeneratedItems > 0)
     {
         for (int i = InitialLength; i < InitialLength + GeneratedItems; i++)
         {
             saver.SaveDecimal(i.ToString() + "HP", Main.Items[i].InitialHP);
             saver.SaveDecimal(i.ToString() + "Armor", Main.Items[i].Toughness);
             saver.SaveDecimal(i.ToString() + "PS", Main.Items[i].PriceScore);
             saver.SaveDecimal(i.ToString() + "Price", Main.Items[i].Price);
         }
     }
 }
    public void Save()
    {
        eSave saver = new eSave();

        for (int i = 0; i < Variables.Length; i++)
        {
            if (Variables[i].Save)
            {
                saver.SaveDecimal(Variables[i].Name + GetInstanceID(), Variables[i].Value);
            }
        }
        AdvRawMessage(SendOn.Save);
    }
    void Save()
    {
        eSave saver = new eSave();

        saver.SaveDateTime("LastPlayTime", DateTime.Now);
        saver.SaveDecimal("Money", Money);
        saver.SaveDecimal("MoneyM", MoneyMultiplier);
        saver.SaveDecimal("Score", Score);
        saver.SaveFloat("TPS", TapPerSec);
        saver.SaveDecimal("IdleMoney", IdleMoneyPerSec);
        saver.SaveDecimal("DamageM", DamageMultiplier);
        saver.SaveInt("CurItem", CurrentItem);
        saver.SaveDecimal("Damage", Damage);
        saver.SaveInt("MaxLevel", MaxLevelUnlocked);
        Invoke("Save", SaveDelay);
        if (OnSave != null)
        {
            OnSave();
        }
    }