// Token: 0x060000EB RID: 235 RVA: 0x00004F5C File Offset: 0x0000315C private bool HandleEvents(string entry) { EventsSectionEntry eventsSectionEntry = EventsSectionEntry.Parse(entry); bool result; if (eventsSectionEntry == null) { result = false; } else { if (eventsSectionEntry.Offset > this.LastIndex) { this.LastIndex = eventsSectionEntry.Offset; } this.Events.Add(eventsSectionEntry); result = true; } return(result); }
// Token: 0x06000162 RID: 354 RVA: 0x00007BEC File Offset: 0x00005DEC public static EventsSectionEntry Parse(string entryStr) { Match match = EventsSectionEntry.EventTextRegex.Match(entryStr); EventsSectionEntry eventsSectionEntry = new EventsSectionEntry(); EventsSectionEntry result; if (!match.Success) { match = EventsSectionEntry.EventEffectRegex.Match(entryStr); if (!match.Success) { result = null; } else { int offset = int.Parse(match.Groups["offset"].Value.Trim()); int effectType = int.Parse(match.Groups["type"].Value.Trim()); int effectLength = int.Parse(match.Groups["len"].Value.Trim()); eventsSectionEntry.Type = EventType.Effect; eventsSectionEntry.Offset = offset; eventsSectionEntry.EffectLength = effectLength; eventsSectionEntry.EffectType = effectType; result = eventsSectionEntry; } } else { int offset2 = int.Parse(match.Groups["offset"].Value.Trim()); string textValue = match.Groups["value"].Value.Trim(); eventsSectionEntry.Type = EventType.Text; eventsSectionEntry.Offset = offset2; eventsSectionEntry.TextValue = textValue; result = eventsSectionEntry; } return(result); }