UltimateZoneBuilder/Source/Core/Data/Scripting/FindUsagesResult.cs
MaxED 88363a1a66 Added, Script Editor: added "Find usages" option (available in the "Search" menu, via text editor context menu, via Ctrl-Shift-F shortcut and in the "Find and Replace" window).
Added, Script Editor: double-clicking text resource tab header now shows the corresponding resource in the Resources tree.
Updated, Game configurations, UDMF: added several missing Thing renderstyles.
2016-12-08 12:10:43 +00:00

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