UltimateZoneBuilder/Source/Plugins/UDBScript/ProgressInfo.cs

38 lines
632 B
C#
Raw Normal View History

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);
}
}
}