UltimateZoneBuilder/Source/Plugins/UDBScript/ProgressInfo.cs
biwa e2374102ee
UDBScript asynchronous execution (#684)
Script run by UDBScript are now executed asynchronously
2022-01-03 14:33:34 +01:00

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