Esempio n. 1
0
    /// <summary>
    /// Tries to load the currency if a file is present
    /// </summary>
    public virtual void LoadSavedCurrency()
    {
        SerializedCurrency serializedCurrency = (SerializedCurrency)MMSaveLoadManager.Load(typeof(SerializedCurrency), _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName);

        ExtractSerializedCurrency(serializedCurrency);
        CorgiEngineEvent.Trigger(CorgiEngineEventTypes.LoadPoints);
    }
Esempio n. 2
0
        /// <summary>
        /// Tries to load the inventory if a file is present
        /// </summary>
        public virtual void LoadSavedInventory()
        {
            SerializedInventory serializedInventory = (SerializedInventory)MMSaveLoadManager.Load(typeof(SerializedInventory), gameObject.name + _saveFileExtension, _saveFolderName);

            ExtractSerializedInventory(serializedInventory);
            MMInventoryEvent.Trigger(MMInventoryEventType.InventoryLoaded, null, this.name, null, 0, 0);
        }
Esempio n. 3
0
        /// <summary>
        /// Loads the sound settings from file (if found)
        /// </summary>
        protected virtual void LoadSoundSettings()
        {
            SoundSettings settings = (SoundSettings)MMSaveLoadManager.Load(typeof(SoundSettings), _saveFileName, _saveFolderName);

            if (settings != null)
            {
                Settings = settings;
            }
        }
Esempio n. 4
0
/// <summary>
/// Loads the settings from file (if found)
/// </summary>
        protected virtual void LoadGameSettings()
        {
            SaveSettings settings = (SaveSettings)MMSaveLoadManager.Load(typeof(GameObject), _saveFileName, _saveFolderName);

            if (settings != null)
            {
                SaveSettings = settings;
            }
        }
Esempio n. 5
0
    public void LoadDataCollection()
    {
        SerializedDataManager serializedDataManager = (SerializedDataManager)MMSaveLoadManager.Load(typeof(SerializedDataManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName);

        ExtractSerializedData(serializedDataManager);
    }
Esempio n. 6
0
    /// <summary>
    /// Tries to load the currency if a file is present
    /// </summary>
    public virtual void LoadSavedIntroScene()
    {
        SerializedIntro serializedIntro = (SerializedIntro)MMSaveLoadManager.Load(typeof(SerializedIntro), _saveFileNameCurrency + _saveFileExtensionCurrency, _saveFolderName);

        ExtractSerializedIntroScene(serializedIntro);
    }
Esempio n. 7
0
    public void LoadGeomancers()
    {
        SerializedGeomancerManager serializedGeo = (SerializedGeomancerManager)MMSaveLoadManager.Load(typeof(SerializedGeomancerManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName);

        ExtractSerializedGeomancers(serializedGeo);
    }
Esempio n. 8
0
    /// <summary>
    /// Tries to load the currency if a file is present
    /// </summary>
    public virtual void LoadSavedTime()
    {
        SerializedTime serializedTime = (SerializedTime)MMSaveLoadManager.Load(typeof(SerializedTime), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName);

        ExtractSerializedTime(serializedTime);
    }