Exemplo n.º 1
0
        public override void Deserialize(BSReader reader)
        {
            base.Deserialize(reader);

            // Check working set
            var soundSetCount = reader.ReadInt32();

            if (soundSetCount <= 0)
            {
                return;
            }

            // Continue reading
            this.UnkUInt06  = reader.ReadUInt32();
            this.UnkUInt07  = reader.ReadUInt32();
            this.UnkUInt08  = reader.ReadUInt32();
            this.UnkFloat02 = reader.ReadSingle();
            this.UnkFloat03 = reader.ReadSingle();
            this.UnkUInt09  = reader.ReadUInt32();
            this.UnkUInt10  = reader.ReadUInt32();
            this.UnkUInt11  = reader.ReadUInt32();
            this.UnkUInt12  = reader.ReadUInt32();
            this.UnkUInt13  = reader.ReadUInt32();
            this.UnkUInt14  = reader.ReadUInt32();

            for (int i = 0; i < soundSetCount; i++)
            {
                this.SoundSet.Add(reader.Deserialize <ModDataSoundSet>());
            }
        }
Exemplo n.º 2
0
 public void Deserialize(BSReader reader)
 {
     this.Name           = reader.ReadString();
     this.Diffuse        = reader.ReadColor4();
     this.Ambient        = reader.ReadColor4();
     this.Specular       = reader.ReadColor4();
     this.Emissive       = reader.ReadColor4();
     this.UnkFloat01     = reader.ReadSingle();
     this.Flags          = reader.ReadUInt32(); // MaterialEntryFlags (64 is default often used with 256 and/or 512 only a few exceptions have 1 2 4 8...)
     this.DiffuseMapPath = reader.ReadString();
     this.UnkFloat02     = reader.ReadSingle();
     this.UnkByte01      = reader.ReadByte();
     this.UnkByte02      = reader.ReadByte();
     this.IsAbsolutePath = reader.ReadBoolean();
     if ((this.Flags & (uint)PrimMtrlFlag.Bit14) != 0)
     {
         this.NormalMapPath = reader.ReadString();
         this.UnkUInt01     = reader.ReadUInt32();
     }
 }
Exemplo n.º 3
0
 public virtual void Deserialize(BSReader reader)
 {
     this.UnkFloat01 = reader.ReadSingle();
     this.UnkUInt01  = reader.ReadUInt32();
     this.UnkUInt02  = reader.ReadUInt32();
     this.UnkUInt03  = reader.ReadUInt32();
     this.UnkUInt04  = reader.ReadUInt32();
     this.UnkUInt05  = reader.ReadUInt32();
     this.UnkByte01  = reader.ReadByte();
     this.UnkByte02  = reader.ReadByte();
     this.UnkByte03  = reader.ReadByte();
     this.UnkByte04  = reader.ReadByte();
 }
Exemplo n.º 4
0
        public override void Deserialize(BSReader reader)
        {
            base.Deserialize(reader);

            this.UnkFloat02 = reader.ReadSingle();
            this.UnkFloat03 = reader.ReadSingle();
            this.UnkFloat04 = reader.ReadSingle();
            this.UnkFloat05 = reader.ReadSingle();
            this.UnkFloat06 = reader.ReadSingle();
            this.UnkFloat07 = reader.ReadSingle();

            var textureCount = reader.ReadInt32();

            for (int i = 0; i < textureCount; i++)
            {
                // Check if entry is not enabled
                if (reader.ReadByte() == 0)
                {
                    continue;
                }

                this.Textures.Add(reader.ReadString());
            }
        }
Exemplo n.º 5
0
 public void Deserialize(BSReader reader)
 {
     this.Time  = reader.ReadInt32();
     this.Value = reader.ReadSingle();
 }