-
Notifications
You must be signed in to change notification settings - Fork 5
/
CheckerGen3RS.cs
45 lines (34 loc) · 1.05 KB
/
CheckerGen3RS.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 CheckerGen3RS : 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_gen3rs");
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 = ((IEventFlagArray)m_savFile!).GetEventFlag(idx);
break;
default:
isEvtSet = false;
break;
}
return isEvtSet;
}
}
}