-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCheckerGen7bGPGE.cs
More file actions
48 lines (36 loc) · 1.14 KB
/
CheckerGen7bGPGE.cs
File metadata and controls
48 lines (36 loc) · 1.14 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
namespace MissingEventFlagsCheckerPlugin
{
internal class CheckerGen7bGPGE : EventFlagsChecker
{
static string? s_chkdb_res = null;
EventWork7b? m_eventWorkData;
protected override void InitData(SaveFile savFile)
{
m_savFile = savFile;
m_eventWorkData = ((SAV7b)m_savFile).EventWork;
#if DEBUG
// Force refresh
s_chkdb_res = null;
#endif
s_chkdb_res ??= ReadResFile("chkdb_gen7blgpe");
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 = m_eventWorkData!.GetFlag(idx);
break;
default:
isEvtSet = false;
break;
}
return isEvtSet;
}
}
}