up-to-date submodule(rive-cpp)
[platform/core/uifw/rive-tizen.git] / submodule / include / generated / animation / blend_state_transition_base.hpp
1 #ifndef _RIVE_BLEND_STATE_TRANSITION_BASE_HPP_
2 #define _RIVE_BLEND_STATE_TRANSITION_BASE_HPP_
3 #include "animation/state_transition.hpp"
4 #include "core/field_types/core_uint_type.hpp"
5 namespace rive
6 {
7         class BlendStateTransitionBase : public StateTransition
8         {
9         protected:
10                 typedef StateTransition Super;
11
12         public:
13                 static const uint16_t typeKey = 78;
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 BlendStateTransitionBase::typeKey:
22                                 case StateTransitionBase::typeKey:
23                                 case StateMachineLayerComponentBase::typeKey:
24                                         return true;
25                                 default:
26                                         return false;
27                         }
28                 }
29
30                 uint16_t coreType() const override { return typeKey; }
31
32                 static const uint16_t exitBlendAnimationIdPropertyKey = 171;
33
34         private:
35                 int m_ExitBlendAnimationId = -1;
36         public:
37                 inline int exitBlendAnimationId() const
38                 {
39                         return m_ExitBlendAnimationId;
40                 }
41                 void exitBlendAnimationId(int value)
42                 {
43                         if (m_ExitBlendAnimationId == value)
44                         {
45                                 return;
46                         }
47                         m_ExitBlendAnimationId = value;
48                         exitBlendAnimationIdChanged();
49                 }
50
51                 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
52                 {
53                         switch (propertyKey)
54                         {
55                                 case exitBlendAnimationIdPropertyKey:
56                                         m_ExitBlendAnimationId = CoreUintType::deserialize(reader);
57                                         return true;
58                         }
59                         return StateTransition::deserialize(propertyKey, reader);
60                 }
61
62         protected:
63                 virtual void exitBlendAnimationIdChanged() {}
64         };
65 } // namespace rive
66
67 #endif