public static Interface8 smethod_3( Interface6 resolver, Interface7 subResolver, string content) { Class251.Class254 marker = new Class251.Class254(content); string str = marker.method_2(); if (str == null) { throw new Exception1(); } try { int int32 = Convert.ToInt32(str); if (int32 < Class250.int_7) { return((Interface8) new Class251(resolver, subResolver, int32, marker)); } if (int32 < Class250.int_63) { return((Interface8) new Class252(resolver, subResolver, int32, marker)); } return((Interface8) new Class253(resolver, subResolver, int32, marker)); } catch (FormatException ex) { throw new Exception0("Failed to read SAT version number!", (Exception)ex); } }
protected override Interface8 vmethod_0( Interface6 entityResolver, Interface7 subEntityResolver, int fileFormatVersion, Class251.Class254 subReadMarker) { return((Interface8) new Class252(entityResolver, subEntityResolver, fileFormatVersion, subReadMarker)); }
internal Class252( Interface6 resolver, Interface7 subResolver, int version, Class251.Class254 marker) : base(resolver, subResolver, version, marker) { }
internal Class251( Interface6 resolver, Interface7 subResolver, int version, Class251.Class254 marker) { this.interface6_0 = resolver; this.interface7_0 = subResolver; this.int_0 = version; this.class254_0 = marker; }
public virtual bool imethod_15(ref List <Class561> unknownData) { string str1 = this.class254_0.method_4(); if (this.FileFormatVersion < Class250.int_7) { unknownData.Add((Class561) new Class562 <string>(Class951.Enum41.const_9, str1)); } else { int startIndex = 0; int num = 0; int result = -2; int index = 0; while (index < str1.Length) { if (str1[index] == '$') { string s = new Class251.Class254(str1.Substring(index + 1)).method_2(); if (int.TryParse(s, out result)) { num = index - 1; index += s.Length + 2; } } else if (str1[index] == '#') { num = index - 1; ++index; } else { ++index; continue; } if (startIndex < num) { string str2 = str1.Substring(startIndex, num - startIndex); unknownData.Add((Class561) new Class562 <string>(Class951.Enum41.const_9, str2)); num = 0; startIndex = index; } if (result != -2) { unknownData.Add((Class561) new Class562 <int>(Class951.Enum41.const_12, result)); result = -2; startIndex = index; } } } return(true); }
private static Interface8 smethod_0( Interface6 resolver, Interface7 subResolver, int version, MemoryStream stream) { int num = Class1045.smethod_7((Stream)stream); string empty = string.Empty; for (int index = 0; index < num; ++index) { empty += (string)(object)(char)stream.ReadByte(); } Class251.Class254 marker = new Class251.Class254(empty); if (version < Class250.int_7) { return((Interface8) new Class251(resolver, subResolver, version, marker)); } if (version < Class250.int_63) { return((Interface8) new Class252(resolver, subResolver, version, marker)); } return((Interface8) new Class253(resolver, subResolver, version, marker)); }