private static AnimatedComponent DetermineAnimatedComponent(short type)
{
switch (type)
{
case 0x00:
return AnimatedComponent.Quaternion;
case 0x04:
case 0x0B:
case 0x11:
return AnimatedComponent.TranslationX;
case 0x05:
case 0x0C:
case 0x12:
return AnimatedComponent.TranslationY;
case 0x06:
case 0x0D:
case 0x13:
return AnimatedComponent.TranslationZ;
case 0x07:
case 0x0E:
return AnimatedComponent.ScaleX;
case 0x08:
case 0x0F:
return AnimatedComponent.ScaleY;
case 0x09:
case 0x10:
return AnimatedComponent.ScaleZ;
default:
throw new InvalidOperationException("Unknown Curve Type " + type);
}
}