Esempio n. 1
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();
 }
Esempio n. 2
0
 public void Deserialize(BSReader reader)
 {
     this.IsEnabled    = reader.ReadInt32() != 0;
     this.Path         = reader.ReadString();
     this.BoneRelative = reader.ReadString();
     this.Position     = reader.ReadVector3();
     this.BirthTime    = reader.ReadUInt32();
     this.UnkByte01    = reader.ReadByte();
     this.UnkByte02    = reader.ReadByte();
     this.UnkByte03    = reader.ReadByte();
     this.UnkByte04    = reader.ReadByte();
     if (this.UnkByte04 == 1)
     {
         this.UnkVector01 = reader.ReadVector3();
     }
 }
Esempio n. 3
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();
     }
 }
        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());
            }
        }