public void ReadFooter(BinaryReader reader, Dictionary <uint, string> nameLookupTable, Dictionary <uint, string> datasetLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { LocatorName = new FoxHash(FoxHash.Type.StrCode32); LocatorName.Read(reader, nameLookupTable, hashIdentifiedCallback); DataSet = new FoxHash(FoxHash.Type.PathCode32); DataSet.Read(reader, datasetLookupTable, hashIdentifiedCallback); }
public virtual void Read(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { HashValue = reader.ReadUInt32(); if (hashLookupTable.ContainsKey(HashValue)) { StringLiteral = hashLookupTable[HashValue]; hashIdentifiedCallback.Invoke(HashValue, StringLiteral); } }
public void Read(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { Translation = new Vector4(); Translation.Read(reader); Rotation = new Vector4(); Rotation.Read(reader); }
public override void Read(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { HasFooter = false; Type = LocatorType.Type0; Translation = new Vector4(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle()); Rotation = new Quaternion(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle()); }
public override void ReadFooter(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { throw new InvalidOperationException("This locator format does not have a footer."); }
public override void ReadFooter(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { LocatorName = new FoxHash(); LocatorName.Read(reader, hashLookupTable, hashIdentifiedCallback); DataSet = new FoxHash(); DataSet.Read(reader, hashLookupTable, hashIdentifiedCallback); }
public override void Read(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { HasFooter = true; Type = LocatorType.Type3; Translation = new Vector4(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle()); Rotation = new Quaternion(reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle(), reader.ReadSingle()); Unknown30 = new FoxHash(); Unknown30.Read(reader, hashLookupTable, hashIdentifiedCallback); Unknown31 = new FoxHash(); Unknown31.Read(reader, hashLookupTable, hashIdentifiedCallback); Unknown32 = new FoxHash(); Unknown32.Read(reader, hashLookupTable, hashIdentifiedCallback); Unknown33 = new FoxHash(); Unknown33.Read(reader, hashLookupTable, hashIdentifiedCallback); }
public virtual void ReadFooter(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback) { }