-
Notifications
You must be signed in to change notification settings - Fork 5
/
CheckerGen7SM.cs
45 lines (34 loc) · 1.07 KB
/
CheckerGen7SM.cs
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
namespace MissingEventFlagsCheckerPlugin
{
internal class CheckerGen7SM : EventFlagsChecker
{
static string? s_chkdb_res = null;
protected override void InitData(SaveFile savFile)
{
m_savFile = savFile;
#if DEBUG
// Force refresh
s_chkdb_res = null;
#endif
s_chkdb_res ??= ReadResFile("chkdb_gen7sm");
m_flagsSourceInfo["0"] = 0;
m_flagsSourceInfo["-"] = -1;
ParseChecklist(s_chkdb_res);
}
protected override bool IsEvtSet(EventDetail evtDetail)
{
bool isEvtSet = false;
int idx = (int)evtDetail.EvtId;
switch (evtDetail.EvtSource)
{
case 0: // EventFlags
isEvtSet = ((IEventFlagProvider37)m_savFile!).EventWork.GetEventFlag(idx);
break;
default:
isEvtSet = false;
break;
}
return isEvtSet;
}
}
}