public override void LoadFromFile()
        {
            string filePath = Path.Combine(FolderPath, name);

            if (FileStorageSystem.LoadBinary(filePath, out bool outValue))
            {
                UpdateValue(outValue, false);
            }
        }
        public override void LoadFromFile()
        {
            string filePath = Path.Combine(FolderPath, name);

            if (FileStorageSystem.LoadBinary(filePath, out float outValue))
            {
                currentValue = outValue;
            }
        }
        /// <summary>Loads value from local storage</summary>
        public void LoadFromFile()
        {
            string filePath = Path.Combine(FolderPath, name);

            if (FileStorageSystem.LoadBinary(filePath, out bool finishedValue))
            {
                SetFinished(finishedValue, false);
            }
        }
        public override void LoadFromFile()
        {
            string filePath = Path.Combine(FolderPath, name);

            if (FileStorageSystem.LoadBinary(filePath, out bool outValue))
            {
                isDoneOnce = outValue;
            }
        }
Beispiel #5
0
        /// <summary>Loads the active state of this quest from local storage and assigns its value</summary>
        public void LoadActiveStateFromFile()
        {
            string filePath = Path.Combine(FolderPath, name);

            if (FileStorageSystem.LoadBinary(filePath, out bool outValue))
            {
                SetActiveInternal(outValue, false);
            }
        }