mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 20:32:34 +00:00
29 lines
844 B
C#
Executable file
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;
|
|
}
|
|
}
|
|
}
|