UI service frame

This commit is contained in:
ThomasCharester committed 2026-01-21 11:45:04 +03:00
1 parent 12a27f85c5
commit e2d0974b3c
45 files changed
+1138 -927

No files matched your search

@@ -5,6 +5,7 @@ namespace Code.Infrastructure.Loadings
public class Loading
{
private int _progress;
public bool Completed { get; private set; }
private Action _completed;
private Action<Loading> _loadProgress;
@@ -23,7 +24,12 @@ namespace Code.Infrastructure.Loadings
{
_progress--;
_loadProgress?.Invoke(this);
if(_progress <= 0) _completed();
if(_progress <= 0) // Зачем инвертировать, если так читается лучше, райдер соси
{
Completed = true;
_completed();
}
}
}
}