mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-12-15 06:30:57 +00:00
30 lines
844 B
C#
30 lines
844 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|