using asap.core; using GameCore; namespace Assets.Scripts.UI.SocialRush { public class Model { private int _progressActual, _progressDisplay; private float _inflationRate; public int ProgressActual => _progressActual; public int ProgressDisplay => _progressDisplay; public float InflationRate => _inflationRate; public void AddProgress(int n) { _progressActual += n; } public void SyncProgress() { _progressDisplay = _progressActual; } public void Reset() { _progressActual = 0; _progressDisplay = 0; _inflationRate = GContext.container.Resolve().InflationRate; } public void Set(int progressActual, int progressDisplay, float inflationRate) { _progressActual = progressActual; _progressDisplay = progressDisplay; _inflationRate = inflationRate; } public void SetProgress(int progressActual) { _progressActual = progressActual; } } }