Neg_Utils/Achivments/IAchivmentCallbackReciever.cs
2022-12-21 15:13:55 +01:00

23 lines
829 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace NEG.Utils.Achivments
{
public interface IAchivmentCallbackReciever
{
/// <summary>
/// Called when an achivment is completed
/// </summary>
/// <param name="achivment"></param>
/// <param name="getState"></param>
void SetAchivment(AchivmentData achivment);
/// <summary>
/// Called when achivment progress changes
/// </summary>
/// <param name="achivment"></param>
/// <param name="progress">Current achivment progress, equal to <paramref name="achivment"/> <see cref="AchivmentDefinition.ProgressRequired"/> - <see cref="AchivmentData.ProgressLeft"/></param>
void SetAchivmentProgress(AchivmentData achivment, int progress);
}
}