public EMAAnimationBlock() { m_ProbablyTextureId = 0; m_ScaleU = new KeyframeBlock(1); m_ScaleV = new KeyframeBlock(1); m_Rotation = new KeyframeBlock(0); m_TranslationU = new KeyframeBlock(0); m_TranslationV = new KeyframeBlock(0); }
protected override void _CreateFromStream(Stream stream) { base._CreateFromStream(stream); m_Header = EANHeader.FromStream(stream); m_BlockTranslateX = new KeyframeBlock(stream); m_BlockTranslateY = new KeyframeBlock(stream); m_BlockTranslateZ = new KeyframeBlock(stream); m_BlockRotateX = new KeyframeBlock(stream); m_BlockRotateY = new KeyframeBlock(stream); m_BlockRotateZ = new KeyframeBlock(stream); m_BlockScaleX = new KeyframeBlock(stream); m_BlockScaleY = new KeyframeBlock(stream); m_BlockScaleZ = new KeyframeBlock(stream); }
private EMAAnimationBlock(Stream stream) { using (var br = new BinaryReader(stream, Encoding.Unicode, true)) { m_ProbablyTextureId = br.ReadInt32(); if (m_ProbablyTextureId != 0) { Warning.WriteLine("ema_animation_block_t::unknown1 != 0"); } m_ScaleU = new KeyframeBlock(stream); m_ScaleV = new KeyframeBlock(stream); m_Rotation = new KeyframeBlock(stream); m_TranslationU = new KeyframeBlock(stream); m_TranslationV = new KeyframeBlock(stream); } }