1 #ifndef _RIVE_BLEND_ANIMATION_BASE_HPP_
2 #define _RIVE_BLEND_ANIMATION_BASE_HPP_
4 #include "core/field_types/core_uint_type.hpp"
7 class BlendAnimationBase : public Core
13 static const uint16_t typeKey = 74;
15 /// Helper to quickly determine if a core object extends another without
17 bool isTypeOf(uint16_t typeKey) const override
21 case BlendAnimationBase::typeKey:
28 uint16_t coreType() const override { return typeKey; }
30 static const uint16_t animationIdPropertyKey = 165;
33 int m_AnimationId = -1;
35 inline int animationId() const { return m_AnimationId; }
36 void animationId(int value)
38 if (m_AnimationId == value)
42 m_AnimationId = value;
46 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
50 case animationIdPropertyKey:
51 m_AnimationId = CoreUintType::deserialize(reader);
58 virtual void animationIdChanged() {}