private void ParseShopHash(List<Event> events)
{
int eventNum = this.br.ReadInt32();
int num = this.br.Read3F1();
int arg_2D_0 = 1;
int num2 = num;
int num3 = arg_2D_0;
Event aoe = new Event();
aoe.EventType = (EventType)Enum.ToObject(typeof(EventType), eventNum);
checked
{
while (true)
{
int arg_151_0 = num3;
int num4 = num2;
if (arg_151_0 > num4)
{
break;
}
string text = this.br.ReadString(4);
int num5 = this.br.ReadByte();
int num6 = this.br.ReadByte();
bool flag = num5 == 0 && num6 == 0;
if (flag)
{
num5 = this.br.ReadInt16();
num6 = this.br.ReadInt16();
}
int count = Math.Min(11, this.br.Buffer.Length - this.br.Ptr);
this.br.Skip(count);
Function aof = new Function();
aof.Arguments.Values.Add(text);
aof.Arguments.Values.Add(num5);
aof.Arguments.Values.Add(num6);
aof.Target = 255;
aof.TickCount = 1;
aof.TickInterval = 0;
aof.FunctionType = (int)FunctionType.Shophash;
aoe.Functions.Add(aof);
num3++;
}
}
if (events == null)
{
events = new List<Event>();
}
events.Add(aoe);
}