This repository was archived by the owner on Jan 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLogLineHandle.cs
More file actions
58 lines (50 loc) · 2.16 KB
/
LogLineHandle.cs
File metadata and controls
58 lines (50 loc) · 2.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Reflection;
using System.Xml;
using System.Linq;
using System.Diagnostics;
using System.Threading;
using System.Threading.Tasks;
using Advanced_Combat_Tracker;
namespace MoreLogLine
{
class LogLineHandle
{
private static LogLineEventDelegate BoradCastLogLine;
public static void GetOnLogReadList() {
FormActMain oFormActMain = ActGlobals.oFormActMain;
Delegate[] invokeList = Utils.GetObjectEventList(oFormActMain, "OnLogLineRead");
MoreLogLineUI.AddParserMessage($"OnLogLineRead:");
using (IEnumerator<LogLineEventDelegate> enumerator = invokeList.Cast<LogLineEventDelegate>().GetEnumerator()) {
while (enumerator.MoveNext()) {
LogLineEventDelegate logLineEventDelegate = enumerator.Current;
try {
MethodInfo info = logLineEventDelegate.Method;
string str = info.Name;
if (str != "MoreLogLines_OnLogLineRead") {
BoradCastLogLine += logLineEventDelegate;
//OnLogLineReadList.Add(logLineEventDelegate);
}
//logLineEventDelegate2(isImport, logLineEventArgs3);
MoreLogLineUI.AddParserMessage($"{str}");
}
catch {
throw new Exception("Failed");
}
}
}
}
public static void SendLogLine(bool isImport, LogLineEventArgs logline) {
MoreLogLineUI.AddParserMessage($"{logline.logLine}");
//PluginUI.AddParserMessage($"Step:{Step}:Progress:{Progress}:Quality:{Quality}:Durability:{Durability}:Condition:{Condition}:CurrentCP:{CurrentCP}:MaxCP:{MaxCP}:Control:{Control}:Craftsmanship{Craftsmanship}");
BoradCastLogLine(isImport, logline);
}
}
}