public NiKeyframeData(NIFReader file, BinaryReader reader) : base(file, reader) { var count = reader.ReadUInt32(); if (count != 0u) { KeyType = (KeyType)reader.ReadUInt32(); } if (KeyType == KeyType.XYZ_ROTATION_KEY) { UnknownFloat = reader.ReadSingle(); Rotations = new KeyGroup <FloatKey>[] { new KeyGroup <FloatKey>(reader), new KeyGroup <FloatKey>(reader), new KeyGroup <FloatKey>(reader) }; } else { QuaternionKeys = new QuatKey[count]; for (var i = 0; i < QuaternionKeys.Length; i++) { QuaternionKeys[i] = new QuatKey(reader, KeyType); } } Translations = new KeyGroup <VecKey>(reader); Scales = new KeyGroup <FloatKey>(reader); }
public NiUVData(NIFReader file, BinaryReader reader) : base(file, reader) { UTranslation = new KeyGroup <FloatKey>(reader); VTranslation = new KeyGroup <FloatKey>(reader); UScalingAndTiling = new KeyGroup <FloatKey>(reader); VScalingAndTiling = new KeyGroup <FloatKey>(reader); }
public Morph(BinaryReader reader, uint numVertices) { Keys = new KeyGroup <FloatKey>(reader); Vectors = reader.ReadArray <Vector3>(numVertices); }
public NiPosData(NIFReader file, BinaryReader reader) : base(file, reader) { Data = new KeyGroup <VecKey>(reader); }
public NiColorData(NIFReader file, BinaryReader reader) : base(file, reader) { Data = new KeyGroup <Color4Key>(reader); }
public NiFloatData(NIFReader file, BinaryReader reader) : base(file, reader) { Data = new KeyGroup <FloatKey>(reader); }