hellbound/Assets/Sources/Feel/MMTools/Tools/MMAchievements/Scripts/SerializedMMAchievementMana...

39 lines
1.1 KiB
C#
Raw Normal View History

2021-11-26 11:16:25 +03:00
using UnityEngine;
using System.Collections;
using System;
namespace MoreMountains.Tools
{
[Serializable]
/// <summary>
/// A serializable class used to store an achievement into a save file
/// </summary>
public class SerializedMMAchievement
{
public string AchievementID;
public bool UnlockedStatus;
public int ProgressCurrent;
/// <summary>
/// Initializes a new instance of the <see cref="MoreMountains.Tools.SerializedMMAchievement"/> class.
/// </summary>
/// <param name="achievementID">Achievement I.</param>
/// <param name="unlockedStatus">If set to <c>true</c> unlocked status.</param>
/// <param name="progressCurrent">Progress current.</param>
public SerializedMMAchievement(string achievementID, bool unlockedStatus, int progressCurrent)
{
AchievementID = achievementID;
UnlockedStatus = unlockedStatus;
ProgressCurrent = progressCurrent;
}
}
[Serializable]
/// <summary>
/// Serializable MM achievement manager.
/// </summary>
public class SerializedMMAchievementManager
{
public SerializedMMAchievement[] Achievements;
}
}