1 #ifndef _RIVE_BLEND_ANIMATION_DIRECT_BASE_HPP_
2 #define _RIVE_BLEND_ANIMATION_DIRECT_BASE_HPP_
3 #include "animation/blend_animation.hpp"
4 #include "core/field_types/core_uint_type.hpp"
7 class BlendAnimationDirectBase : public BlendAnimation
10 typedef BlendAnimation Super;
13 static const uint16_t typeKey = 77;
15 /// Helper to quickly determine if a core object extends another without
17 bool isTypeOf(uint16_t typeKey) const override
21 case BlendAnimationDirectBase::typeKey:
22 case BlendAnimationBase::typeKey:
29 uint16_t coreType() const override { return typeKey; }
31 static const uint16_t inputIdPropertyKey = 168;
36 inline int inputId() const { return m_InputId; }
37 void inputId(int value)
39 if (m_InputId == value)
47 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
51 case inputIdPropertyKey:
52 m_InputId = CoreUintType::deserialize(reader);
55 return BlendAnimation::deserialize(propertyKey, reader);
59 virtual void inputIdChanged() {}