Exemplo 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);
    }
Exemplo 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);
        }
Exemplo 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;
            }
        }
Exemplo 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;
            }
        }
Exemplo n.º 5
0
    public void LoadDataCollection()
    {
        SerializedDataManager serializedDataManager = (SerializedDataManager)MMSaveLoadManager.Load(typeof(SerializedDataManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName);

        ExtractSerializedData(serializedDataManager);
    }
Exemplo 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);
    }
Exemplo n.º 7
0
    public void LoadGeomancers()
    {
        SerializedGeomancerManager serializedGeo = (SerializedGeomancerManager)MMSaveLoadManager.Load(typeof(SerializedGeomancerManager), _saveFileNameUpgrades + _saveFileExtensionUpgrades, _saveFolderName);

        ExtractSerializedGeomancers(serializedGeo);
    }
Exemplo 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);
    }