示例#1
0
        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);
        }
示例#2
0
        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);
            }
        }
示例#3
0
        public void Read(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback)
        {
            Translation = new Vector4();
            Translation.Read(reader);

            Rotation = new Vector4();
            Rotation.Read(reader);
        }
示例#4
0
 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());
 }
示例#5
0
 public override void ReadFooter(BinaryReader reader, Dictionary <uint, string> hashLookupTable, HashIdentifiedDelegate hashIdentifiedCallback)
 {
     throw new InvalidOperationException("This locator format does not have a footer.");
 }
示例#6
0
        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);
        }
示例#7
0
        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);
        }
示例#8
0
 public virtual void ReadFooter(BinaryReader reader, Dictionary <uint, string> hashLookupTable,
                                HashIdentifiedDelegate hashIdentifiedCallback)
 {
 }