[Adaptation Layer] Added rive-tizen adaptation layer class.
[platform/core/uifw/rive-tizen.git] / submodule / include / generated / animation / transition_condition_base.hpp
1 #ifndef _RIVE_TRANSITION_CONDITION_BASE_HPP_
2 #define _RIVE_TRANSITION_CONDITION_BASE_HPP_
3 #include "core.hpp"
4 #include "core/field_types/core_uint_type.hpp"
5 namespace rive
6 {
7         class TransitionConditionBase : public Core
8         {
9         protected:
10                 typedef Core Super;
11
12         public:
13                 static const uint16_t typeKey = 67;
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 TransitionConditionBase::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 inputIdPropertyKey = 155;
31
32         private:
33                 int m_InputId = -1;
34         public:
35                 inline int inputId() const { return m_InputId; }
36                 void inputId(int value)
37                 {
38                         if (m_InputId == value)
39                         {
40                                 return;
41                         }
42                         m_InputId = value;
43                         inputIdChanged();
44                 }
45
46                 void copy(const TransitionConditionBase& object)
47                 {
48                         m_InputId = object.m_InputId;
49                 }
50
51                 bool deserialize(uint16_t propertyKey, BinaryReader& reader) override
52                 {
53                         switch (propertyKey)
54                         {
55                                 case inputIdPropertyKey:
56                                         m_InputId = CoreUintType::deserialize(reader);
57                                         return true;
58                         }
59                         return false;
60                 }
61
62         protected:
63                 virtual void inputIdChanged() {}
64         };
65 } // namespace rive
66
67 #endif