up-to-date submodule(rive-cpp)
[platform/core/uifw/rive-tizen.git] / submodule / include / generated / animation / blend_animation_base.hpp
1 #ifndef _RIVE_BLEND_ANIMATION_BASE_HPP_
2 #define _RIVE_BLEND_ANIMATION_BASE_HPP_
3 #include "core.hpp"
4 #include "core/field_types/core_uint_type.hpp"
5 namespace rive
6 {
7         class BlendAnimationBase : public Core
8         {
9         protected:
10                 typedef Core Super;
11
12         public:
13                 static const uint16_t typeKey = 74;
14
15                 /// Helper to quickly determine if a core object extends another without
16                 /// RTTI at runtime.
17                 bool isTypeOf(uint16_t typeKey) const override
18                 {
19                         switch (typeKey)
20                         {
21                                 case BlendAnimationBase::typeKey:
22                                         return true;
23                                 default:
24                                         return false;
25                         }
26                 }
27
28                 uint16_t coreType() const override { return typeKey; }
29
30                 static const uint16_t animationIdPropertyKey = 165;
31
32         private:
33                 int m_AnimationId = -1;
34         public:
35                 inline int animationId() const { return m_AnimationId; }
36                 void animationId(int value)
37                 {
38                         if (m_AnimationId == value)
39                         {
40                                 return;
41                         }
42                         m_AnimationId = value;
43                         animationIdChanged();
44                 }
45
46                 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
47                 {
48                         switch (propertyKey)
49                         {
50                                 case animationIdPropertyKey:
51                                         m_AnimationId = CoreUintType::deserialize(reader);
52                                         return true;
53                         }
54                         return false;
55                 }
56
57         protected:
58                 virtual void animationIdChanged() {}
59         };
60 } // namespace rive
61
62 #endif