public override void vmethod_0(Stream26 stream26_0) { this.byte_0 = stream26_0.ReadByte2(); this.int_0 = new int[] { stream26_0.ReadInt() }; byte byte_ = this.byte_0; switch (byte_) { case 1: this.object_0 = stream26_0.ReadInt(); return; case 2: this.object_0 = stream26_0.ReadFloat(); return; case 3: break; case 4: this.object_0 = stream26_0.ReadUnicodeString(); return; default: switch (byte_) { case 13: this.int_0 = new int[] { this.int_0[0], stream26_0.ReadInt() }; return; case 14: case 16: this.object_0 = stream26_0.ReadByte2(); return; case 15: break; case 17: this.object_0 = stream26_0.ReadShort(); break; default: return; } break; } }
public override void vmethod_0(Stream26 stream260) { Byte0 = stream260.ReadByte2(); Int0 = new[] { stream260.ReadInt() }; var byte_ = Byte0; switch (byte_) { case 1: Object0 = stream260.ReadInt(); return; case 2: Object0 = stream260.ReadFloat(); return; case 3: break; case 4: Object0 = stream260.ReadUnicodeString(); return; default: switch (byte_) { case 13: Int0 = new[] { Int0[0], stream260.ReadInt() }; return; case 14: case 16: Object0 = stream260.ReadByte2(); return; case 15: break; case 17: Object0 = stream260.ReadShort(); break; default: return; } break; } }
public void Initialize() { if (_fileName != null) { _fileStream = new Stream26(File.Open(_fileName, FileMode.Open, FileAccess.Read, FileShare.Read), true); } var num = 1; var num2 = _fileStream.ReadUShort(); var num3 = 0; if (num2 == 0xFACE) // Hey man he was in my face { _unkFlag0 = false; num = _fileStream.ReadShortAt(6); num3 = _fileStream.ReadInt(); } else if (num2 != 2600) // Appears to be flags at the beginning of certain types of texture metadata? { throw new Exception(); } while (num-- != 0) { TextureList.Add( new TextureMetadata( _fileStream.ReadShortAt(num3 + 2), _fileStream.ReadInt(), _fileStream.ReadShort(), _fileStream.ReadShort(), _fileStream.ReadShort(), _fileStream.ReadByteAt(num3 + 20), _fileStream.ReadShort(), _fileStream.ReadIntAt(num3 + 28), _fileStream.ReadInt())); num3 += 40; } _fileStream.ReverseEndianness = false; }