mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-01 16:12:33 +00:00
38 lines
632 B
C#
38 lines
632 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace CodeImp.DoomBuilder.UDBScript
|
|||
|
{
|
|||
|
class ProgressInfo
|
|||
|
{
|
|||
|
IProgress<int> progress;
|
|||
|
IProgress<string> status;
|
|||
|
IProgress<string> _log;
|
|||
|
|
|||
|
public ProgressInfo(IProgress<int> progress, IProgress<string> status, IProgress<string> log)
|
|||
|
{
|
|||
|
this.progress = progress;
|
|||
|
this.status = status;
|
|||
|
_log = log;
|
|||
|
}
|
|||
|
|
|||
|
public void setProgress(int p)
|
|||
|
{
|
|||
|
progress.Report(p);
|
|||
|
}
|
|||
|
|
|||
|
public void setStatus(string s)
|
|||
|
{
|
|||
|
status.Report(s);
|
|||
|
}
|
|||
|
|
|||
|
public void log(string s)
|
|||
|
{
|
|||
|
_log.Report(s);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|