/// <summary> /// Initializes a new instance of the <see cref="NiTextureTransformController"/> class. /// </summary> /// <param name="file">The file.</param> /// <param name="reader">The reader.</param> public NiTextureTransformController(NiFile file, BinaryReader reader) : base(file, reader) { this.Unkown2 = reader.ReadByte(); this.TextureSlot = (eTexType)reader.ReadUInt32(); this.Operation = (eTexTransform)reader.ReadUInt32(); if (base.Version <= eNifVersion.VER_10_1_0_0) { this.Data = new NiRef<NiFloatData>(reader); } }
/// <summary> /// Initializes a new instance of the <see cref="NiTextureTransformController"/> class. /// </summary> /// <param name="file">The file.</param> /// <param name="reader">The reader.</param> public NiTextureTransformController(NiFile file, BinaryReader reader) : base(file, reader) { this.Unkown2 = reader.ReadByte(); this.TextureSlot = (eTexType)reader.ReadUInt32(); this.Operation = (eTexTransform)reader.ReadUInt32(); if (base.Version <= eNifVersion.VER_10_1_0_0) { this.Data = new NiRef <NiFloatData>(reader); } }