-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGetEvent.cs
88 lines (87 loc) · 2.57 KB
/
GetEvent.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using static RPG_Maker_LDB_Printer.Program;
namespace RPG_Maker_LDB_Printer
{
public class Event
{
public static void GetEvent()
{
Formating.ContinueIndent();
int commoneventdata = Data.GetInt();
Formating.OpenIndent();
Formating.ContinueIndent();
Byte[] level = br.ReadBytes(1);
sw.Write(BitConverter.ToString(level));
Formating.OpenIndent();
Formating.ContinueIndent();
Data.GetString();
Formating.ContinueIndent();
int[] gotInts = Data.GetInts();
switch (commoneventdata)
{
case 0:
case 10://0A
case 20141://81 9D 2D
stop = true;
break;
case 10140://CF 1C
case 20140://81 9D 2C
while (stop == false)
{
GetEvent();
}
stop = false;
break;
case 12010://DD 6A
case 13310://E7 7E
CheckEnd();
if (gotInts[5] == 1)
{
CheckEnd();
}
GetEvent();
break;
case 10710://D3 56
if (gotInts[3] == 2 || gotInts[4] == 1)
{
GetEvent();
CheckEnd();
GetEvent();
CheckEnd();
GetEvent();
}
break;
case 10720://D3 60
case 10730://D3 6A
if (gotInts[2] == 1)
{
stop = false;
GetEvent();
CheckEnd();
GetEvent();
CheckEnd();
GetEvent();
}
break;
case 12210://DF 32
while (stop == false)
{
GetEvent();
}
stop = false;
GetEvent();
break;
}
Formating.CloseIndent();
Formating.CloseIndent();
}
static void CheckEnd()
{
while (stop == false)
{
GetEvent();
}
stop = false;
}
}
}