1 #ifndef _RIVE_BLEND_ANIMATION1_DBASE_HPP_
2 #define _RIVE_BLEND_ANIMATION1_DBASE_HPP_
3 #include "animation/blend_animation.hpp"
4 #include "core/field_types/core_double_type.hpp"
7 class BlendAnimation1DBase : public BlendAnimation
10 typedef BlendAnimation Super;
13 static const uint16_t typeKey = 75;
15 /// Helper to quickly determine if a core object extends another without
17 bool isTypeOf(uint16_t typeKey) const override
21 case BlendAnimation1DBase::typeKey:
22 case BlendAnimationBase::typeKey:
29 uint16_t coreType() const override { return typeKey; }
31 static const uint16_t valuePropertyKey = 166;
36 inline float value() const { return m_Value; }
37 void value(float value)
47 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
51 case valuePropertyKey:
52 m_Value = CoreDoubleType::deserialize(reader);
55 return BlendAnimation::deserialize(propertyKey, reader);
59 virtual void valueChanged() {}