DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Run()

override void SVNBlamePlugin::Run ( )
inlineprivate

См. определение в файле BlameTool.c строка 7

8 {
9 ScriptEditor mod = Workbench.GetModule("ScriptEditor");
10 if (mod)
11 {
12 string file;
13 string absPath;
14 if (mod.GetCurrentFile(file) && Workbench.GetAbsolutePath(file, absPath))
15 {
16 int line = mod.GetCurrentLine();
17 string command = CommandLine;
18 command.Replace("$path", absPath);
19 command.Replace("$line", (line + 1).ToString());
20 Workbench.RunCmd(command);
21 }
22 }
23 }
proto string ToString()
string CommandLine
Определения BlameTool.c:5
proto external bool GetCurrentFile(out string filename)
proto native external int GetCurrentLine()
proto int Replace(string sample, string replace)
Replace all occurrances of 'sample' in 'str' by 'replace'.
int[] ScriptEditor
Определения workbenchApi.c:2

Перекрестные ссылки CommandLine, Workbench::GetAbsolutePath(), ScriptEditor::GetCurrentFile(), ScriptEditor::GetCurrentLine(), Workbench::GetModule(), string::Replace(), Workbench::RunCmd() и ToString().