UltimateZoneBuilder/Source/Core/Data/Scripting/FindUsagesResult.cs
2017-01-15 00:35:40 +02:00

29 lines
844 B
C#
Executable file

using System.Text.RegularExpressions;
namespace CodeImp.DoomBuilder.Data.Scripting
{
public class FindUsagesResult
{
private ScriptResource source;
private string line;
private int lineindex;
private int matchstart;
private int matchend;
public ScriptResource Resource { get { return source; } }
public string Line { get { return line; } }
public int LineIndex { get { return lineindex; } }
public int MatchStart { get { return matchstart; } }
public int MatchEnd { get { return matchend; } }
private FindUsagesResult() { }
public FindUsagesResult(ScriptResource source, Match match, string line, int lineindex)
{
this.source = source;
this.line = line;
this.lineindex = lineindex;
this.matchstart = match.Index;
this.matchend = match.Index + match.Length;
}
}
}