public static ComponentAnimation Read(BlockReader reader, ActorComponent[] components) { ComponentAnimation componentAnimation = new ComponentAnimation(); componentAnimation.m_ComponentIndex = reader.ReadUInt16(); int numProperties = (int)reader.ReadUInt16(); componentAnimation.m_Properties = new PropertyAnimation[numProperties]; for (int i = 0; i < numProperties; i++) { componentAnimation.m_Properties[i] = PropertyAnimation.Read(reader, components[componentAnimation.m_ComponentIndex]); } return(componentAnimation); }